Prepare for the Dogtag backup

Prepare for the Dogtag backup

This section describes how to prepare your environment for the backup of the Dogtag server files and database.

To prepare for the Dogtag backup:

  1. Log in to the Salt Master node.

  2. Open the cluster Reclass level of your deployment.

  3. Verify that the cluster/<cluster_name>/infra/backup/client_dogtag.yml file with the Backupninja configuration for Dogtag exists. Otherwise, create such file with the following content:

    classes:
    - system.backupninja.client.single
    - cluster.<cluster_name>.infra.backup.allow_root_ssh
    parameters:
      _param:
        backupninja_backup_host: ${_param:infra_kvm_node03_address}
      backupninja:
        client:
          target:
            home_dir: /srv/volumes/backup/backupninja
            engine: rsync
            engine_opts: "-av --delete --recursive --safe-links"
          log:
            color: ${_param:backupninja_color_log}
    
  4. In openstack/barbican.yml, add the client_dogtag file if it is not included:

    - cluster.<cluster_name>.infra.backup.client_dogtag
    
  5. Refresh grains:

    salt -C '*' state.sls salt.minion.grains
    salt -C '*' mine.update
    
  6. Apply the openssh state on the Dogtag server nodes:

    salt -C 'I@dogtag:server and I@backupninja:client' state.sls openssh
    
  7. Apply the backupninja state on the Dogtag server nodes:

    salt -C 'I@dogtag:server and I@backupninja:client' state.sls backupninja
    
  8. Apply the backupninja state on the Backupninja server node:

    salt -C 'I@backupninja:server' state.sls backupninja
    

Now, you can proceed with Back up the Dogtag server files and database.