suite_restore¤
Restore MAS Core
Overview¤
This role supports restoring the MAS Core namespace resources and supporting
resources in other namespace when provided the backup archive generated from
suite_backup role.
Important
Supported only for MAS 9.1.x.
Restore can only be made to an instance with the same MAS instance ID as the backup.
Role Variables¤
| Variable | Required | Default |
|---|---|---|
mas_instance_id |
Yes | None |
mas_backup_dir |
Yes | None |
suite_backup_version |
Yes | None |
mas_domain |
No | NO_OVERRIDE |
include_sls_from_backup |
No | true |
sls_url |
No | NO_OVERRIDE |
sls_cfg_file |
Conditional | None |
include_dro_from_backup |
No | true |
bas_url |
No | NO_OVERRIDE |
dro_cfg_file |
Conditional | None |
sls_cfg_file is required only when include_sls_from_backup is false, and dro_cfg_file only when include_dro_from_backup is false.
Backup Source¤
mas_instance_id¤
The instance ID of the Maximo Application Suite installation to restore. This must match the instance ID of the backup.
- Required
- Environment Variable:
MAS_INSTANCE_ID - Default: None
mas_backup_dir¤
The local directory path where backup files to restore are stored — for example /tmp/mas_backups.
- Required
- Environment Variable:
MAS_BACKUP_DIR - Default: None
suite_backup_version¤
The version of the backup file located in the MAS_BACKUP_DIR to be used in the restore — for example 20260116-130937.
- Required
- Environment Variable:
SUITE_BACKUP_VERSION - Default: None
Domain Override¤
mas_domain¤
The domain to use for the MAS Suite instance — for example mydomain.example.com.
- Optional
- Environment Variable:
MAS_DOMAIN - Default:
NO_OVERRIDE(uses value from backup)
Use to change the domain when restoring to a different cluster; when not provided, the domain from the backup is used.
SLS Configuration¤
include_sls_from_backup¤
Controls whether to restore the Suite SLS (Suite License Service) configuration from the backup archive.
- Optional
- Environment Variable:
INCLUDE_SLS_FROM_BACKUP - Default:
true
Set to true when the registration key stays the same, either because the same SLS service is also being restored or because you are using a centralized SLS service that has not changed. If you plan to install and use a new SLS service, set this to false and use the sls_cfg_file variable to point to the new SLS configuration file.
sls_url¤
The URL for the Suite License Service (SLS) — for example https://sls.example.com. Only applies when include_sls_from_backup is true.
- Optional
- Environment Variable:
SLS_URL - Default:
NO_OVERRIDE(uses value from backup)
Use when the domain has changed for SLS but SLS was restored from a backup, so the registration key is the same.
sls_cfg_file¤
Path to the file containing an external SLS configuration YAML file to apply — for example /tmp/sls_config/sls.yml. Only applies when include_sls_from_backup is false.
- Required when
include_sls_from_backupisfalse - Environment Variable:
SLS_CFG_FILE - Default: None
Use SLS configuration from outside the backup archive (e.g., from a separate SLS role execution).
DRO (BAS) Configuration¤
include_dro_from_backup¤
Controls whether to restore the Suite DRO configuration from the backup archive.
- Optional
- Environment Variable:
INCLUDE_DRO_FROM_BACKUP - Default:
true
Set to true when the DRO details stay the same and you are using a centralized DRO service that has not changed. If you plan to install and use a new DRO service, set this to false and use the dro_cfg_file variable to point to the new DRO configuration file.
bas_url¤
The URL for the Behavior Analytics Service (BAS) — for example https://bas.example.com. Only applies when include_dro_from_backup is true.
- Optional
- Environment Variable:
BAS_URL - Default:
NO_OVERRIDE(uses value from backup)
Use when the domain has changed for DRO but DRO was restored from a backup, so the API key is the same.
dro_cfg_file¤
Path to the file containing an external DRO (BAS) configuration YAML file to apply — for example /tmp/dro_config/dro.yml. Only applies when include_dro_from_backup is false.
- Required when
include_dro_from_backupisfalse - Environment Variable:
DRO_CFG_FILE - Default: None
Use DRO configuration from outside the backup archive (e.g., from a separate DRO role execution).
Restore Operations¤
This section provides comprehensive information about MAS Core restore operations.
Overview¤
The MAS Core restore operation performs a complete restoration of a MAS Core installation from a backup created by the suite_backup role. The restore process recreates all namespace resources and supporting resources in the correct order.
Important: Restore can only be made to an instance with the same MAS instance ID as the backup.
Restore Process¤
The MAS Core restore operation performs the following steps in sequence:
- Validation: Verifies required variables and backup archive existence
- Certificate Manager Check: Ensures cert-manager is installed in the cluster
- Projects Restoration: Restores the MAS Core namespace
- Secrets and ConfigMaps: Restores all secrets and configuration maps
- Operator Resources: Restores OperatorGroups and Subscriptions
- Subscription Wait: Waits for subscriptions to be ready (up to 30 minutes)
- Certificate Manager Resources: Restores ClusterIssuers, Issuers, and Certificates
- MAS Addon Resources: Restores MVIEdge, ReplicaDB, and GenericAddon resources
- MAS Configuration Resources: Restores all config.mas.ibm.com resources with optional overrides:
- BasCfg (if
include_dro_from_backupis true, with optionalbas_urloverride) - SlsCfg (if
include_sls_from_backupis true, with optionalsls_urloverride) - AppCfg, IDPCfg, JdbcCfg, KafkaCfg, MongoCfg, ObjectStorageCfg, etc.
- MAS Internal Resources: Restores CoreIDP resources
- Suite Restoration: Restores the Suite CR with optional
mas_domainoverride - Suite Wait: Waits for Suite to be ready (up to 60 minutes)
- Workspace Restoration: Restores all Workspace CRs
- Workspace Wait: Waits for all Workspaces to be ready (up to 60 minutes)
Configuration Override Options¤
The restore process supports several override options to adapt the backup to a new environment:
Domain Override:
- Use
mas_domainto change the domain when restoring to a different cluster - Default: Uses the domain from the backup
SLS Configuration:
- If
include_sls_from_backup=true: Restores SlsCfg from backup - Use
sls_urlto override the SLS URL if the domain changed - If
include_sls_from_backup=false: Usesls_cfg_fileto provide external SLS configuration
DRO Configuration:
- If
include_dro_from_backup=true: Restores BasCfg from backup - Use
bas_urlto override the BAS URL if the domain changed - If
include_dro_from_backup=false: Usedro_cfg_fileto provide external DRO configuration
When to Use¤
Full Restore Scenarios:
- Disaster recovery after cluster failure
- Migrating MAS Core to a new cluster
- Recreating a deleted MAS Core instance
- Setting up a new environment from backup
- Testing backup integrity in non-production
Partial Configuration Scenarios:
- Restoring with new SLS service (set
include_sls_from_backup=false) - Restoring with new DRO service (set
include_dro_from_backup=false) - Restoring to cluster with different domain (use
mas_domainoverride)
Important Considerations¤
Prerequisites:
- Target cluster must have Certificate Manager installed
- Target cluster must have the same MAS instance ID as the backup
- Required dependencies (MongoDB, Db2, etc.) must be available and accessible
- Sufficient cluster resources (CPU, memory, storage) must be available
Instance ID Requirement:
- Restore can only be made to an instance with the same MAS instance ID
- The instance ID is embedded in resource names and cannot be changed
Storage Requirements:
- Ensure backup directory is accessible from the restore environment
- Verify backup archive integrity before starting restore
Security:
- Backup files contain sensitive data including credentials and certificates
- Ensure secure transfer of backup files to restore environment
- Verify backup file permissions and access controls
Configuration Dependencies:
- If using external SLS/DRO configuration files, ensure they are valid and accessible
- Coordinate with database restore operations to ensure data consistency
- Verify network connectivity to external services (SLS, DRO, databases)
Restore Best Practices¤
- Pre-Restore Validation:
- Verify backup archive exists and is complete
- Confirm Certificate Manager is installed
- Ensure target cluster has sufficient resources
-
Verify MAS instance ID matches the backup
-
Dependency Coordination:
- Restore databases (MongoDB, Db2) before MAS Core
- Restore SLS before MAS Core if using separate SLS
- Restore DRO before MAS Core if using separate DRO
-
Ensure all external services are accessible
-
Configuration Planning:
- Determine if domain override is needed
- Decide whether to use backup SLS/DRO or new services
- Prepare external configuration files if needed
-
Document any configuration changes
-
Post-Restore Verification:
- Verify Suite status is Ready
- Verify all Workspaces are Ready
- Test application connectivity
- Verify database connections
-
Test user authentication
-
Disaster Recovery:
- Test restore procedures regularly in non-production
- Document restore procedures and configuration
- Maintain backup version identifiers
- Keep external configuration files secure and accessible
Example Playbook¤
After installing the Ansible Collection you can include this role in your own custom playbooks.
- hosts: localhost
vars:
mas_instance_id: "{{ lookup('env', 'MAS_INSTANCE_ID') }}"
mas_backup_dir: /tmp/mas_backups
suite_backup_version: 20260116-130937
roles:
- ibm.mas_devops.suite_restore
License¤
EPL-2.0