MAS DevOps Ansible Collection Ansible CLI
Home Roles: Suite Mgmt suite_dns MAS vs AI Service Mode DNS Management Let's Encrypt Integration Role Variables Example Playbook License

suite_dns¤

This role manages DNS provider integration for both IBM Maximo Application Suite (MAS) and AI Service. IBM Cloud Internet Services, Cloudflare, and AWS Route 53 are the supported DNS providers. It will also create a secure route (https://cp4d.) to the CP4D web client using the custom domain used in this role.

Note: this role will take no action when mas_manual_cert_mgmt is set to True

MAS vs AI Service Mode¤

This role automatically detects whether it's being used for MAS or AI Service based on the presence of AISERVICE_INSTANCE_ID:

  • MAS Mode: Uses ClusterIssuer (cluster-wide certificate issuer) and supports multiple workspaces
  • AI Service Mode: Uses namespace-scoped Issuer within the AI Service namespace (aiservice-{instance_id})

The key difference is that AI Service creates the certificate Issuer within its own namespace rather than using a shared ClusterIssuer.

DNS Management¤

There are two different ways this role controls DNS entries in the provider:

Top Level DNS Entries¤

This mode will create the entries directly under your DNS zone. Use this when the DNS zone matches the MAS domain exactly. If your MAS installation will be using the domain mymas.mycompany.com and you have a DNS zone for mymas.mycompany.com then you will be creating top-level DNS entries for MAS, e.g. admin, home, & api.

Subdomain DNS Entries¤

This mode will create DNS entries in the zone under a subdomain. Use this when your DNS zone will be used for more than just one MAS instance. If your MAS installation will be using the domain mymas.mycompany.com and you have a DNS zone for mycompany.com then you will be creating subdomain DNS entries for MAS, e.g. admin.mymas, home.mymas, & api.mymas.

CIS and Cloudflare integrations support both modes of DNS management. A single optional variable is required to enable subdomain DNS management, in the examples above you would set these to mymas:

Let's Encrypt Integration¤

Both the CIS and Cloudflare options also enable integration with Let's Encrypt for automatic certificate management via IBM Certificate Manager. Each will create a new ClusterIssuer which can be used when installing Maximo Application Suite:

  • Cloudflare Let's Encrypt ClusterIssuer: {{ mas_instance_id }}-cloudflare-le-prod
  • IBM Cloud Internet Services Let's Encrypt ClusterIssuer: {{ mas_instance_id }}-cis-le-prod

If you want to use Let's Encrypt certificates in your MAS installation you will need to configure the mas_cluster_issuer variable in the suite_install role, setting it to the name of the ClusterIssuer as documented above.

Note

There are issues with how cert-manager works with LetsEncrypt staging servers. It creates a secret for the certificate that doesn't contain the LetsEncrypt CA, but the staging service does not use a well known cert so we end up with MAS unable to trust the certificates generated by LetsEncrypt staging.

At present there is no workaround for this, so do not use the LetsEncrypt staging certificate issuer.

HTTP-01 (path-based routing extension)¤

When mas_routing_mode is path and mas_le_email is set, this role additionally creates a Let's Encrypt HTTP-01 issuer. This is an opt-in extension — existing DNS-01 behaviour is unchanged when mas_le_email is not set.

The issuer kind is controlled by mas_issuer_kind (ClusterIssuer or Issuer) and the issuer name defaults to {{ mas_instance_id }}-http01-le-prod (override via MAS_CLUSTER_ISSUER).

Note

HTTP-01 requires the cluster to be publicly reachable from the internet. It cannot be used in private network environments.

Role Variables¤

Variable Required Default
aiservice_instance_id Conditional None
aiservice_domain No None
dns_provider Yes None
mas_manual_cert_mgmt No false
cert_manager_namespace No Auto-detected
mas_instance_id Conditional None
mas_workspace_id Conditional None
mas_domain Conditional None
ocp_ingress No Auto-detected
mas_le_email No None
mas_issuer_kind No ClusterIssuer
mas_ingress_controller_name No default
custom_labels No None
output_dir No .
cloudflare_email Conditional None
cloudflare_apitoken Conditional None
cloudflare_zone Conditional None
cloudflare_subdomain No None
cis_email Conditional None
cis_apikey Conditional None
cis_crn Conditional None
cis_subdomain No None
cis_enhanced_security No false
cis_service_name No {ClusterName}-cis-{mas_instance_id}
cis_waf No true
cis_proxy No false
cis_allowed_ips No None
update_dns No true
delete_wildcards No false
override_edge_certs No true
cis_entries_to_add No all
route53_hosted_zone_name Conditional None
route53_hosted_zone_region No AWS_REGION, else us-east-2
route53_subdomain No None
route53_email No None
aws_access_key_id Conditional None
aws_secret_access_key Conditional None
cpd_instance_namespace No None
cpd_prod_issuer_name No {mas_instance_id}-{dns_provider}-le-prod
cpd_custom_domain No mas_domain
cpd_public_route_enabled No false

Variables marked Conditional are only required in specific circumstances: in MAS mode you must set mas_instance_id, mas_workspace_id, and mas_domain (they are not required in AI Service mode, where aiservice_instance_id is required instead), and each DNS provider requires its own credentials — cloudflare requires cloudflare_email, cloudflare_apitoken, and cloudflare_zone; cis requires cis_email, cis_apikey, and cis_crn; route53 requires route53_hosted_zone_name plus the AWS credentials.

AI Service Variables¤

aiservice_instance_id¤

Unique identifier for the AI Service instance requiring DNS configuration — a lowercase alphanumeric string (e.g. aiservice1, prod, dev) that must match the instance ID used during AI Service installation.

  • Required for AI Service mode
  • Environment Variable: AISERVICE_INSTANCE_ID
  • Default: None

When set, the role operates in AI Service mode: DNS entries are created for the aiservice-{aiservice_instance_id} namespace, and a namespace-scoped Issuer (not a ClusterIssuer) is created in that namespace with the name format {aiservice_instance_id}-{provider}-le-prod. When this is set, mas_instance_id and mas_workspace_id are not required.

aiservice_domain¤

Custom domain name for accessing AI Service APIs and interfaces — any valid DNS domain name (e.g. aiservice.mycompany.com, ai.example.org).

  • Optional
  • Environment Variable: AISERVICE_DOMAIN
  • Default: None (uses the cluster's default application domain)

All AI Service routes and DNS entries are constructed from this domain, and it must align with your DNS provider zone configuration (cloudflare_zone, cis_crn, etc.). If not set, the cluster's default application domain is used for AI Service routes.

DNS Provider and Certificate Management¤

dns_provider¤

Specifies which DNS provider to use for managing MAS domain DNS entries — cis (IBM Cloud Internet Services), cloudflare (Cloudflare DNS), or route53 (AWS Route 53).

  • Required
  • Environment Variable: DNS_PROVIDER
  • Default: None

The selected provider determines which additional variables are required and which features are available — for example, Let's Encrypt integration is available for CIS and Cloudflare but not Route 53. This role takes no action when mas_manual_cert_mgmt is set to true.

mas_manual_cert_mgmt¤

Controls whether to disable automatic DNS and certificate management.

  • Optional
  • Environment Variable: MAS_MANUAL_CERT_MGMT
  • Default: false

When true, this role takes no action and all other DNS provider variables are ignored — you are responsible for creating all required DNS entries and managing certificates manually (or through alternative methods) before MAS installation. When false (default), the role automatically creates DNS entries and optionally configures Let's Encrypt integration.

cert_manager_namespace¤

OpenShift namespace where Certificate Manager is installed — any valid Kubernetes namespace name.

  • Optional
  • Environment Variable: CERT_MANAGER_NAMESPACE
  • Default: None (automatically detected)

ClusterIssuer resources for Let's Encrypt integration are created referencing this namespace, so an incorrect value will cause ClusterIssuer creation to fail. Automatic detection typically finds Certificate Manager in standard namespaces; only override it when using a custom installation or when detection fails.

MAS Domain and Routes¤

mas_instance_id¤

Unique identifier for the MAS instance requiring DNS configuration — a lowercase alphanumeric string, 3-12 characters (e.g. prod, dev, inst1), that must match the instance ID used during MAS core installation.

  • Required for MAS mode
  • Environment Variable: MAS_INSTANCE_ID
  • Default: None

This ID is embedded in DNS record names and ClusterIssuer names (e.g. {mas_instance_id}-cloudflare-le-prod), so an incorrect ID will create DNS entries for the wrong instance. Works with mas_domain to construct full DNS names for MAS routes.

mas_workspace_id¤

Workspace identifier for the MAS installation requiring DNS configuration — a lowercase alphanumeric string (e.g. masdev, prod, ws1) that must match an existing workspace in your MAS instance, typically the primary workspace.

  • Required for MAS mode
  • Environment Variable: MAS_WORKSPACE_ID
  • Default: None

This ID is used together with mas_instance_id and mas_domain to generate workspace-specific DNS entries and routes; an incorrect workspace ID may result in DNS entries that don't match your MAS workspace configuration.

mas_domain¤

Custom domain name for accessing MAS web interfaces and APIs — any valid DNS domain name (e.g. mas.mycompany.com, prod-mas.example.org).

  • Required for MAS mode
  • Environment Variable: MAS_DOMAIN
  • Default: None

All MAS URLs and DNS entries are constructed from this domain (e.g. admin.{mas_domain}, home.{mas_domain}, api.{mas_domain}), and it must be the same domain used in MAS core installation and be properly configured in your DNS provider's zone before running this role. Subdomain mode is available via cloudflare_subdomain or cis_subdomain. DNS propagation may take time after entries are created.

ocp_ingress¤

Override for the OpenShift cluster ingress domain used as the target for DNS CNAME records — e.g. apps.cluster-name.domain.com.

  • Optional
  • Environment Variable: OCP_INGRESS
  • Default: None (automatically detected from the cluster)

Leave unset to allow automatic detection (recommended); set only when automatic detection fails, when using a non-default ingress controller, or in airgap or restricted network environments where detection may not work. An incorrect value will cause DNS entries to point to the wrong location.

Let's Encrypt HTTP-01¤

mas_le_email¤

Contact email for Let's Encrypt HTTP-01 certificate issuance. Setting this is the sole signal that enables HTTP-01 mode — no separate flag is needed.

  • Optional — only required when using Let's Encrypt HTTP-01 with path-based routing
  • Environment Variable: MAS_LE_EMAIL
  • Default: None

Only applies when mas_routing_mode is path; existing DNS-01 behaviour is unchanged when this is not set.

mas_issuer_kind¤

Kind of cert-manager issuer resource to create for Let's Encrypt HTTP-01 (ClusterIssuer or Issuer).

  • Optional
  • Environment Variable: MAS_ISSUER_KIND
  • Default: ClusterIssuer

mas_ingress_controller_name¤

Name of the OpenShift IngressController used for the HTTP-01 ACME challenge solver.

  • Optional
  • Environment Variable: MAS_INGRESS_CONTROLLER_NAME
  • Default: default

Only relevant when mas_le_email is set.

Resource Labels and Output¤

custom_labels¤

Comma-separated list of key=value labels to apply to DNS-related resources (e.g. env=prod,team=platform,component=dns).

  • Optional
  • Environment Variable: CUSTOM_LABELS
  • Default: None

Labels are for organization, selection, filtering, resource tracking, cost allocation, and custom automation; they do not affect DNS functionality.

output_dir¤

Local directory path where the edge routes output file will be saved — any valid local filesystem path (e.g. /home/user/mas-output, ~/masconfig, ./output).

  • Optional
  • Environment Variable: OUTPUT_DIR
  • Default: . (current directory)

The edge-routes-{mas_instance_id}.txt file containing information about the DNS entries and routes created by this role is written to this directory; it is useful for verifying DNS configuration and troubleshooting connectivity issues. Ensure the directory exists and is writable.

Cloudflare DNS Integration¤

cloudflare_email¤

Email address associated with your Cloudflare account, used together with cloudflare_apitoken to authenticate Cloudflare API requests.

  • Required if dns_provider is set to cloudflare
  • Environment Variable: CLOUDFLARE_EMAIL
  • Default: None

The account must have permissions to create and manage DNS records in the target zone (cloudflare_zone); an incorrect email will cause authentication failures.

cloudflare_apitoken¤

API token for authenticating with the Cloudflare API, used together with cloudflare_email.

  • Required if dns_provider is set to cloudflare
  • Environment Variable: CLOUDFLARE_APITOKEN
  • Default: None

Generate the token from the Cloudflare dashboard with DNS edit permissions for the target zone, following the Cloudflare documentation. Keep this token secure and do not commit it to source control.

cloudflare_zone¤

DNS zone name managed by Cloudflare where MAS DNS entries will be created — e.g. mydomain.com, example.org.

  • Required if dns_provider is set to cloudflare
  • Environment Variable: CLOUDFLARE_ZONE
  • Default: None

Must be an active zone configured in your Cloudflare account and the parent domain of mas_domain (or equal to it for top-level entries); the credentials used must have access to this zone. Ensure the zone is active and DNS is properly delegated before running this role.

cloudflare_subdomain¤

Subdomain within the Cloudflare zone for MAS DNS entries (subdomain mode).

  • Optional
  • Environment Variable: CLOUDFLARE_SUBDOMAIN
  • Default: None (uses top-level DNS entries)

Use when your DNS zone will host multiple MAS instances or other services, i.e. when mas_domain is a subdomain of cloudflare_zone. When set, DNS entries are created as admin.{cloudflare_subdomain}, home.{cloudflare_subdomain}, etc.; when unset, entries are created directly in the zone as admin, home, etc. The relationship must be {cloudflare_subdomain}.{cloudflare_zone} = mas_domain — for example, if the zone is mycompany.com and mas_domain is mas.mycompany.com, set the subdomain to mas.

IBM Cloud Internet Services DNS Integration¤

Note

When using CIS integration, some resources will be installed in the cluster such as RBACs, API Services and CIS Webhook deployments. In OCP 4.12+, to avoid CIS webhook deployment failure at start up, this role will grant anyuid permission to cert-manager-webhook-ibm-cis service account so it can fully access the cert-manager-webhook-ibm-cis deployment pod as a workaround:

oc adm policy add-scc-to-user anyuid -z cert-manager-webhook-ibm-cis -n ibm-common-services

cis_email¤

Email address for Let's Encrypt ClusterIssuer registration when using IBM CIS.

  • Required if dns_provider is set to cis
  • Environment Variable: CIS_EMAIL
  • Default: None

This email is embedded in the {mas_instance_id}-cis-le-prod ClusterIssuer and registered with Let's Encrypt, which uses it for certificate expiration notifications and account recovery — use a monitored team or service email address rather than a personal one.

cis_apikey¤

IBM Cloud API key for authenticating with IBM Cloud Internet Services.

  • Required if dns_provider is set to cis
  • Environment Variable: CIS_APIKEY
  • Default: None

Generate the key from IBM Cloud IAM with permissions for the CIS instance specified by cis_crn; it authenticates all CIS API operations including DNS record management and ClusterIssuer configuration. Keep this key secure and do not commit it to source control.

cis_crn¤

Cloud Resource Name (CRN) identifying the IBM Cloud Internet Services instance — format crn:v1:bluemix:public:internet-svcs:....

  • Required if dns_provider is set to cis
  • Environment Variable: CIS_CRN
  • Default: None

Obtain the CRN from the IBM Cloud console under your CIS instance details; it must correspond to the instance containing your target DNS zone. All DNS operations target this CIS instance, so an incorrect CRN will cause operations to fail or target the wrong instance.

cis_subdomain¤

Subdomain within the CIS zone for MAS DNS entries (subdomain mode).

  • Optional
  • Environment Variable: CIS_SUBDOMAIN
  • Default: None (uses top-level DNS entries)

Use when your CIS zone will host multiple MAS instances or other services, i.e. when mas_domain is a subdomain of your CIS zone domain. When set, DNS entries are created as admin.{cis_subdomain}, home.{cis_subdomain}, etc.; when unset, entries are created directly in the zone as admin, home, etc. The relationship must be {cis_subdomain}.{cis_zone_domain} = mas_domain — for example, if the CIS zone is mycompany.com and mas_domain is mas.mycompany.com, set the subdomain to mas.

cis_enhanced_security¤

Enables enhanced security features for IBM CIS DNS integration.

  • Optional
  • Environment Variable: CIS_ENHANCED_SECURITY
  • Default: false

When enabled, this configures a WAF firewall with rules optimized for MAS (cis_waf), proxy mode for DNS entries so traffic is routed through CIS (cis_proxy), an expanded list of DNS entries for comprehensive coverage, prevention of wildcard DNS entries, and edge certificates in the CIS instance. Recommended for production environments requiring WAF and proxy protection; leave false for development/test environments. See the IBM Cloud CIS security documentation for details — enhanced security may impact performance due to proxy routing.

cis_service_name¤

Custom name for the CIS service resources created in the cluster — a valid Kubernetes resource name (lowercase alphanumeric with hyphens).

  • Optional
  • Environment Variable: CIS_SERVICE_NAME
  • Default: {ClusterName}-cis-{mas_instance_id} (auto-generated)

Leave unset to use the auto-generated name (recommended); set only when you need a specific naming convention or when the auto-generated name conflicts with existing resources. Changing it after initial deployment may cause issues with resource management.

Enhanced IBM CIS Security¤

cis_waf¤

Controls Web Application Firewall (WAF) configuration for CIS.

  • Optional
  • Environment Variable: CIS_WAF
  • Default: true

When true, the WAF is configured with rules specifically tuned to protect MAS while allowing required application functionality; when false, the WAF is not configured (less security protection). Set to false only if WAF causes issues or conflicts with other security tools. Typically used in conjunction with cis_enhanced_security and cis_proxy.

cis_proxy¤

Controls whether DNS entries use CIS proxy mode (traffic routed through CIS).

  • Optional
  • Environment Variable: CIS_PROXY
  • Default: false

When true, traffic routes through CIS (orange cloud icon in the CIS console), enabling DDoS protection and CIS security features but adding latency; when false, DNS entries point directly to the OpenShift ingress (grey cloud icon) — lower latency but no CIS protection. Proxy mode is required for WAF and other CIS security features to function, so consider the latency vs. security tradeoff for your use case.

cis_allowed_ips¤

Comma-separated list of IP addresses or CIDR ranges (IPv4 and IPv6) that are permitted to access the MAS instance, e.g. 10.0.0.0/8,192.168.1.0/24,2405:201:d000:9060::/64,49.37.171.108.

  • Optional
  • Environment Variable: CIS_ALLOWED_IPS
  • Default: None

When set, a CIS WAF custom block rule is created with the expression not ip.src in {<ip1> <ip2> ...} and http.host contains "<mas_domain>", denying all traffic not originating from the specified IPs on the MAS domain. When unset or empty, any existing WAF block rule for this instance is removed, restoring unrestricted access.

  • Supported MAS versions: 9.1.x and above only; ignored when mas_channel is 9.0.x or earlier

Requires dns_provider=cis with CIS enhanced security enabled (cis_enhanced_security and cis_waf); the rule is scoped to mas_domain and identified in CIS by the description mas-ip-allowlist-<mas_domain>. IP allowlisting requires MAS 9.1.x or above — when mas_channel is 9.0.x or earlier, the WAF allowlist task is automatically skipped regardless of whether this variable is set.

Feature status reporting (SaaS)

When the allowlist is added, updated or removed, the role records the progress of the change in the SaaS feature status MongoDB by calling mas-devops-feature-status-update. Status is written only when all of the following are true:

  • MAS mode is enabled
  • cis_waf is enabled and mas_channel is 9.1.x or above
  • devops_mongo_uri, account_id, cluster_id and region_id are all set (no status call is made when any of them is empty)
  • The WAF rule in CIS differs from the requested cis_allowed_ips (no status call is made when the allowlist is already in the desired state)

Status is only ever written for the MAS instance; in AI Service mode the allowlist rule is still managed, but no status is written.

Status Written when
REQUESTED An allowlist change is detected, before any other CIS work starts
IN_PROGRESS Just before the WAF rule is created, updated or deleted
ACTIVE The WAF rule was created or updated successfully
DEACTIVATED The WAF rule was deleted successfully (cis_allowed_ips unset or empty)
ERROR A failure occurs after REQUESTED and the allowlist change has not completed successfully, including a failed WAF rule call after its retries. A failure after ACTIVE / DEACTIVATED has been reached does not write ERROR

Whether or not status reporting is active, a failed CIS call (including a failed WAF rule create / update / delete after its retries) always fails the job. The call made for each status is:

bash mas-devops-feature-status-update status-update \ --region "<region_id>" \ --instance-id "<mas_instance_id>" \ --account "<account_id>" \ --cluster "<cluster_id>" \ --subscription-id "<subscription_id>" \ --type allow-list \ --feature-details '{"ips": ["<ip1>", "<ip2>"]}' \ --deployment-start "<start timestamp>" \ --status <REQUESTED|IN_PROGRESS|ACTIVE|DEACTIVATED|ERROR> \ --status-details '{"message": "<message>", "request_configuration": "<ip1>, <ip2>"}' \ --deployment-end "<end timestamp>"

  • --feature-details carries the requested IPs ([] when the allowlist is being removed).
  • --subscription-id is optional and is only passed when subscription_id is set.
  • --deployment-start is the time the change was detected (taken when the change is detected, not when the play started) and is passed unchanged on every call.
  • --deployment-end is only passed for ACTIVE, DEACTIVATED and ERROR, and is taken when that status is written.
  • The JSON passed to --status-details and --feature-details is built in Ansible and shell-quoted, so quotes, newlines and backslashes in CIS output are safe.
  • For ERROR, --status-details also includes error_code and an error_source object (gitops_version, filename, log_file and stacktrace).

The following variables are used when writing the status:

Variable Environment variable Default
devops_mongo_uri DEVOPS_MONGO_URI None. Status updates are skipped when empty
account_id ACCOUNT_ID None. Status updates are skipped when empty
cluster_id CLUSTER_ID None. Status updates are skipped when empty
region_id REGION_ID None. Status updates are skipped when empty
subscription_id SLS_SUBSCRIPTION_ID None. Optional, --subscription-id is omitted when empty

account_id, cluster_id, region_id and subscription_id identify the MAS instance the status is recorded for — they are not the account, region or cluster of the CIS instance.

Warning

Failures while disabling WAF rules (cis_waf_rule.yml) or managed ruleset rules (cis_managed_ruleset.yml) used to be tolerated and now fail the job in MAS mode, so that they are reported as ERROR and are not silently ignored.

IBM CIS DNS Entries and Edge Certificates¤

update_dns¤

Whether to update DNS entries if they already exist.

  • Optional
  • Environment Variable: UPDATE_DNS_ENTRIES
  • Default: true

Set to false to leave existing DNS entries untouched.

delete_wildcards¤

Whether to force deletion of wildcard DNS entries in CIS.

  • Optional
  • Environment Variable: DELETE_WILDCARDS
  • Default: false

override_edge_certs¤

Whether to override and delete any existing edge certificates in the CIS instance when creating new edge certificates.

  • Optional
  • Environment Variable: OVERRIDE_EDGE_CERTS
  • Default: true

Set to false to keep existing edge certificates.

cis_entries_to_add¤

Comma separated list of entries to add for edge certificates, broken down into functional areas of MAS: all (include all entries — default), core (MAS Core), health (MAS Health App), iot (MAS IoT app), manage (MAS Manage app), monitor (MAS Monitor app), predict (MAS Predict app), visualinspection (MAS VisualInspection app), optimizer (MAS Optimizer app), assist (MAS Assist app), arcgis (MAS Arcgis), reportdb (MAS ReportDB), facilities (MAS Facilities app), cpd-public (CP4D public route — creates cpd-public.<mas_domain> DNS CNAME and edge certificate for VPN-free CP4D access).

  • Optional
  • Environment Variable: CIS_ENTRIES_TO_ADD
  • Default: all

AWS Route 53¤

Prerequisites: To run this role successfully you must have already installed the AWS CLI. Also, you need to have AWS user credentials configured via aws configure command or simply export AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables with your corresponding AWS username credentials prior running this role.

Note

In some cases, the Route 53 zone may not resolve the certificate challenges generated by IBM Certificate Manager, which could cause a problem while issuing the public certificates via Let's Encrypt. In this case, a manual workaround might be needed in cert-manager-controller pod to enable recursive nameservers.

For more details on how to apply this workaround, refer to this documentation.

This workaround is not automated, as most of the times this is not needed, but when it is, it requires the cert-manager-controller pod to be stopped, thus we want to avoid making this behavior as standard approach.

route53_hosted_zone_name¤

AWS Route53 Hosted Zone name.

  • Required if dns_provider is set to route53
  • Environment Variable: ROUTE53_HOSTED_ZONE_NAME
  • Default: None

route53_hosted_zone_region¤

AWS Route53 Hosted Zone region.

  • Optional
  • Environment Variable: ROUTE53_HOSTED_ZONE_REGION
  • Default: Same value as defined in AWS_REGION, or us-east-2 if none is defined

route53_subdomain¤

Subdomain used to create the corresponding CNAME entries in the targeted Route53 hosted zone.

  • Optional
  • Environment Variable: ROUTE53_SUBDOMAIN
  • Default: None

The Route53 subdomain combined with the Route53 hosted zone name must match the chosen MAS domain, otherwise the DNS records won't be able to get resolved — e.g. MAS top level domain my-mas-instance.mycompany.com, AWS Route53 hosted zone name mycompany.com, AWS Route53 subdomain my-mas-instance.

route53_email¤

AWS Route53 contact e-mail. Will be set in the cluster issuer created in order to receive alerts.

  • Optional
  • Environment Variable: ROUTE53_EMAIL
  • Default: None

aws_access_key_id¤

AWS access key ID for authentication.

  • Required if dns_provider is set to route53
  • Environment Variable: AWS_ACCESS_KEY_ID
  • Default: None

aws_secret_access_key¤

AWS secret access key for authentication.

  • Required if dns_provider is set to route53
  • Environment Variable: AWS_SECRET_ACCESS_KEY
  • Default: None

CloudPak for Data¤

cpd_instance_namespace¤

Namespace where the Cloud Pak for Data is installed and the cpd route exists.

  • Optional
  • Environment Variable: CPD_INSTANCE_NAMESPACE
  • Default: None

If set, then this role will also attempt to configure public certificates to the CPD route using the DNS provider defined.

cpd_prod_issuer_name¤

Certificate issuer responsible for generating the public certificate for your CPD route.

  • Optional
  • Environment Variable: CPD_PROD_ISSUER_NAME
  • Default: {mas_instance_id}-{dns_provider}-le-prod (the same production issuer used to set up the MAS instance)

cpd_custom_domain¤

Custom domain for your CPD route.

  • Optional
  • Environment Variable: CPD_CUSTOM_DOMAIN
  • Default: Value of mas_domain; the CPD route and certificate are then created for cp4d.{{ cpd_custom_domain }}

cpd_public_route_enabled¤

Whether to create the cpd-public DNS entry and edge certificate providing VPN-free public access to the CP4D route (cpd-public.<mas_domain>).

  • Optional
  • Environment Variable: CPD_PUBLIC_ROUTE_ENABLED
  • Default: false

Example Playbook¤

MAS with CIS or Cloudflare¤

- hosts: localhost
  any_errors_fatal: true
  vars:
    dns_provider: cis  # or cloudflare
    mas_instance_id: inst1
    mas_workspace_id: masdev
    mas_domain: mydomain.com
    cis_crn: xxx
    cis_apikey: xxx
    cis_email: xxx
  roles:
    - ibm.mas_devops.suite_dns

MAS with AWS Route 53¤

- hosts: localhost
  any_errors_fatal: true
  vars:
    dns_provider: route53
    mas_instance_id: inst1
    mas_workspace_id: masdev
    mas_domain: inst1.mydomain.com
    aws_access_key_id: xxx
    aws_secret_access_key: xxx
    route53_hosted_zone_name: mydomain.com
    route53_hosted_zone_region: us-east-2
    route53_subdomain: inst1
    route53_email: anyemail@test.com
  roles:
    - ibm.mas_devops.suite_dns

AI Service with CIS¤

- hosts: localhost
  any_errors_fatal: true
  vars:
    dns_provider: cis
    aiservice_instance_id: aiservice1
    aiservice_domain: aiservice.mydomain.com
    cis_crn: xxx
    cis_apikey: xxx
    cis_email: xxx
  roles:
    - ibm.mas_devops.suite_dns

AI Service with AWS Route 53¤

- hosts: localhost
  any_errors_fatal: true
  vars:
    dns_provider: route53
    aiservice_instance_id: aiservice1
    aiservice_domain: aiservice.mydomain.com
    aws_access_key_id: xxx
    aws_secret_access_key: xxx
    route53_hosted_zone_name: mydomain.com
    route53_hosted_zone_region: us-east-2
    route53_subdomain: aiservice
    route53_email: anyemail@test.com
  roles:
    - ibm.mas_devops.suite_dns

License¤

EPL-2.0