MAS DevOps Ansible Collection Ansible CLI
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_contentsourcepolicy 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

suite_app_install¤

This role is used to install a specified application in Maximo Application Suite.

Role Variables - General¤

mas_instance_id¤

Defines the instance id that was used for the MAS installation

mas_app_id¤

Defines the kind of application that is intended for installation such as assist, health, iot, manage, monitor, mso, predict, or safety

mas_app_catalog_source¤

Defines the catalog to be used to install the MAS app. You can set it to ibm-operator-catalog for release install or ibm-mas-{mas_app_id}-operators for development, where {mas_app_id} will be manage for the Manage and Health app installation, for example.

mas_app_channel¤

Defines which channel of the MAS application to subscribe to

custom_labels¤

Optional. List of comma separated key=value pairs for setting custom labels on instance specific resources.

Role Variables - Pre-Release Support¤

artifactory_username¤

Required when using this role for development versions of the MAS application.

artifactory_token¤

Required when using this role for development versions of the MAS application

mas_entitlement_username¤

Username for entitled registry. This username will be used to create the image pull secret. Set to cp when installing release or use your w3Id for dev

mas_entitlement_key¤

API Key for entitled registry. This password will be used to create the image pull secret. Set to with IBM entitlement key when installing release or use your artifactory apikey for dev.

Role Variables - Application Configuration¤

mas_app_spec¤

Use of mas_app_spec will override all other application configuration variables.

mas_app_bindings_jdbc¤

Set the binding scope for the application's JDBC binding (system or application)

mas_app_plan¤

Optional: Defines what plan will be used in application install.

mas_pod_templates_dir¤

Provide the directory where supported pod templates configuration files are defined. For application specifics read the information for `mas_pod_templates_dir`` below.

Role Variables - Visual Inspection Configuration¤

mas_app_settings_visualinspection_storage_class¤

Optional: Storage class used for user data. This must support ReadWriteMany(RWX).

mas_app_settings_visualinspection_storage_size¤

Optional: Size of data persistent volume.

Role Variables - IoT Configuration¤

mas_app_settings_iot_deployment_size¤

Optional: The IoT deployment size, one of dev, small or large.

mas_app_settings_iot_fpl_pvc_storage_class¤

Optional: The persistent volume storage class used by the iot fpl component for transient state storage. The storage class can be used to dynamically provision a persistent volume with access mode RWO (ReadWriteOnce). - Environment Variable: MAS_APP_SETTINGS_IOT_FPL_PVC_STORAGE_CLASS - Default: Auto-selected from storage classes installed in the cluster. - Application Support: - IoT 8.6+

mas_app_settings_iot_fpl_router_pvc_size¤

Optional: The persistent volume size used by the iot fpl pipeline router for transient state storage

mas_app_settings_iot_fpl_executor_pvc_size¤

Optional: The persistent volume size used by the iot fpl pipeline router for transient state storage

mas_app_settings_iot_mqttbroker_pvc_storage_class¤

Optional: The persistent volume storage class used by the iot mqtt broker (messagesight) The storage class can be used to dynamically provision a persistent volume with access mode RWO (ReadWriteOnce). - Environment Variable: MAS_APP_SETTINGS_IOT_MQTTBROKER_PVC_STORAGE_CLASS - Default: Auto-selected from storage classes installed in the cluster, if a default compatible one is found. - Application Support: - IoT 8.3+

mas_app_settings_iot_mqttbroker_pvc_size¤

Optional: The persistent volume size used by the iot mqtt broker (messagesight)

mas_pod_templates_dir¤

This role will look for a configuration files named:

The content of the configuration file should be the yaml block that you wish to be inserted into the IoT CR. ibm-mas-iot-iot.yml will be inserted into the main IoT CR spec -> podTemplates whereas the component ones e.g, ibm-mas-iot-actions.yml will be under spec -> components -> {componentName} -> podTemplates. The ibm-mas-iot operator will then pass this on to the corresponding component CR when available.

This is an example of one of the components (actions) - refer to the BestEfforts reference configuration in the MAS CLI. For full documentation of the supported options refer to the Customizing Pod Templates in the product documentation.

Role Variables - Manage Configuration¤

mas_pod_templates_dir¤

This role will look for a configuration files named for manage:

The content of the configuration file should be the yaml block that you wish to be inserted into the ManageApp CR. ibm-mas-manage-manageapp.yml will be inserted into the ManageApp CR spec -> podTemplates. The ibm-mas-manage operator will then pass this on to the corresponding deployments when available.

For full documentation of the supported options refer to the Customizing Pod Templates in the product documentation.

Role Variables - Monitor Configuration¤

mas_app_settings_monitor_deployment_size¤

Optional, The Monitor deployment size, one of dev, small or large.

Example Playbook¤

- hosts: localhost
  any_errors_fatal: true
  vars:
    # Choose which catalog source to use for the MAS install, default to the IBM operator catalog
    mas_app_catalog_source: "{{ lookup('env', 'MAS_APP_CATALOG_SOURCE') | default('ibm-operator-catalog', true) }}"

    # Which MAS channel to subscribe to
    mas_app_channel: "{{ lookup('env', 'MAS_APP_CHANNEL') | default('8.x', true) }}"

    # MAS configuration
    mas_instance_id: "{{ lookup('env', 'MAS_INSTANCE_ID') }}"

    # MAS configuration - Entitlement
    mas_entitlement_username: "{{ lookup('env', 'MAS_ENTITLEMENT_USERNAME') | default('cp', true) }}"
    mas_entitlement_key: "{{ lookup('env', 'MAS_ENTITLEMENT_KEY') }}"

    # MAS application configuration
    mas_app_id: "{{ lookup('env', 'MAS_APP_ID') }}"

    # Application Configuration - Spec
    mas_app_spec:
      bindings:
        jdbc: system
        mongo: system
        kafka: system
      settings:
        messagesight:
          storage:
            class: block1000p
            size: 100Gi
        deployment:
          size: medium

    # Application Configuration - Install Plan
    mas_app_plan: "{{ lookup('env', 'MAS_APP_PLAN') | default('full', true) }}"

  roles:
    - ibm.mas_devops.suite_app_install

License¤

EPL-2.0