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

gencfg_mongo¤

This role is used to generate mongo configuration in Maximo Application Suite This generated mongo configuration can be used as an input to the suite_config role, to configure a MAS instance to connect with an existing Mongo cluster

Role Variables¤

mongodb_namespace¤

The generated Mongo Config file name will be suffixed with this namespace value eg, mongo-<>.yml

mongodb_admin_username¤

Required. MongoDB admin username

mongodb_admin_password¤

Required. MongoDB admin password

mongodb_authentication_mechanism¤

Required. MongoDB authentication mechanism. Specify DEFAULT for SCRAM-SHA-256 or SCRAM-SHA-1. For LDAP authentication use PLAIN

mongodb_authentication_database¤

Required. MongoDB authentication database. This value must be $external if PLAIN has been specified for mongodb_authentication_mechanism

mongodb_hosts¤

Required. In case if there are multiple instances, the host address should be seperated by a ,. Example: docdb-1.abc.ca-central-1.docdb.amazonaws.com:27017,docdb-2.def.ca-central-1.docdb.amazonaws.com:27017

mongodb_retry_writes¤

Set to true if MongoDB support retryable writes. In case if retryable writes is not supported (like in case of Amazon DocumentDB), set to false

mongodb_ca_pem_local_file¤

Required. defines the CA pem file's local file path

mas_instance_id¤

Required. The instance ID of Maximo Application Suite for which the MongoCfg configuration will generate

mas_config_dir¤

Required. Local directory to save the generated MongoCfg resource definition. This can be used as an input to the suite_config role, to configure a MAS instance to connect with an existing Mongo cluster

Example Playbook¤

---

- hosts: localhost
  any_errors_fatal: true 
  vars:
    mongodb_namespace: mongoce
    mongodb_admin_username: mongoadmin
    mongodb_admin_password: mongo-strong-password
    mongodb_hosts: docdb-1.abc.ca-central-1.docdb.amazonaws.com:27017,docdb-2.def.ca-central-1.docdb.amazonaws.com:27017
    mongodb_retry_writes: false
    mongodb_ca_pem_local_file: /tmp/mongo-ca.pem
    mas_instance_id: masinst1
    mas_config_dir: ~/masconfig  
  roles:
    - ibm.mas_devops.gencfg_mongo

License¤

EPL-2.0