MAS DevOps Ansible Collection Ansible CLI
Edit on GitHub
Home Ansible Automation Platform OCP Install Cloud Pak For Data Install Core Add AIBroker Add IoT Add Manage Add Monitor Add Optimizer Add Predict Add Visual Inspection Update Upgrade Uninstall Core Backup & Restore ocp_cluster_monitoring ocp_config ocp_deprovision ocp_efs ocp_github_oauth ocp_login ocp_node_config ocp_provision ocp_roks_upgrade_registry_storage ocp_upgrade ocp_verify appconnect aws_bucket_access_point aws_documentdb_user aws_policy aws_route53 aws_user_creation aws_vpc cert_manager cis common-services configure_manage_eventstreams cos cos_bucket cp4d_admin_pwd_update cp4d cp4d_service db2 dro eck grafana ibm_catalogs kafka nvidia_gpu mongodb ocs sls turbonomic uds mirror_case_prepare mirror_extras_prepare mirror_images mirror_ocp ocp_idms ocp_simulate_disconnected_network registry suite_app_config suite_app_install suite_app_uninstall suite_app_upgrade suite_app_rollback suite_app_backup_restore suite_certs suite_config suite_db2_setup_for_manage suite_dns suite_install suite_manage_attachments_config suite_manage_birt_report_config suite_manage_bim_config suite_manage_customer_files_config suite_manage_imagestitching_config suite_manage_import_certs_config suite_manage_load_dbc_scripts suite_manage_logging_config suite_manage_pvc_config suite_uninstall suite_upgrade suite_rollback suite_verify suite_backup_restore ansible_version_check entitlement_key_rotation gencfg_jdbc gencfg_watsonstudio gencfg_workspace gencfg_mongo

cis¤

This role provides support for Configuring IBM Cloud Internet Services.During CIS provisioning it performs four tasks during provisioning in given order:

1. Provision CIS Instance in customer account
2. Add customer domain to customer's CIS Instance
3. Configure Domain settings in customer CIS Instance
4. Add DNS Records of type `NS` for customer's Domain nameservers to Master CIS Account

During CIS Instance deprovisioing role will perform following tasks:

1. Delete DNS Record from Master Account
2. Delete Domain from Customer Account
3. Delete Customer CIS Instance

Role Variables¤

cis_action¤

Required. Action to be performed by CIS role. Valid values are provision or deprovision

cis_plan¤

Required. The plan type of the service

ibmcloud_apikey¤

Required. Provide your IBM Cloud API Key.

ibmcloud_resourcegroup¤

Provide the name of the resource group which will own the CIS instance.

master_ibmcloud_api_key¤

Required. Provide IBM Cloud API Key for Account where Master CIS Instance is running.

master_cis_resource_group¤

Required. Provide the name of the resource group which owns the Master CIS instance.

master_cis_resource_name¤

Required. Master CIS Instance name

master_cis_base_domain¤

Required. Domain from Master CIS Instance - Environment Variable: MASTER_CIS_BASE_DOMAIN

mas_instance_id¤

Used as suffix string to define CIS Service name.

cluster_name¤

Used as prefix string to define CIS Service name.

mas_config_dir¤

Local directory to save the generated CIS Instance details as ConfigMap.

Example Playbook¤

Create CIS Instance alongwith save Instance details in MAS_CONFIG_DIR path as ConfigMap

- hosts: localhost
  any_errors_fatal: true
  vars:
    cis_action: provision
    mas_instance_id: masinst1
    mas_config_dir: ~/masconfig
    ibmcloud_apikey: "****"
    master_ibmcloud_api_key: "******"
    cluster_name: "test"
  roles:
    - ibm.mas_devops.cis