Ansible Role objectstore_backup

This role configures a backup service/timer for an objectstore to objectstore backup using the ‚MinIO‘ client mc.

Available since LFOps 2.0.0.

Mandatory Requirements

If you use the Objectstore Backup Playbook, this is automatically done for you.

Tags

objectstore_backup

  • Installs and configures the objectstore backup.

  • Triggers: objectstore_backup: systemctl daemon-reload.

Mandatory Role Variables

objectstore_backup__destination_access_key

  • S3 and Elastic Compute Cloud (EC2) Access Key for the destination objectstore.

  • Type: String.

objectstore_backup__destination_secret_key

  • S3 and Elastic Compute Cloud (EC2) Access Secret for the destination objectstore.

  • Type: String.

objectstore_backup__source_access_key

  • S3 and Elastic Compute Cloud (EC2) Access Key for the source objectstore.

  • Type: String.

objectstore_backup__source_secret_key

  • S3 and Elastic Compute Cloud (EC2) Access Secret for the source objectstore.

  • Type: String.

Example:

# mandatory
objectstore_backup__destination_access_key: 'linuxfabrik'
objectstore_backup__destination_secret_key: 'linuxfabrik'
objectstore_backup__source_access_key: 'linuxfabrik'
objectstore_backup__source_secret_key: 'linuxfabrik'

Optional Role Variables

objectstore_backup__destination_bucket

  • The name of the bucket to be backed-up to at the destination objectstore. Will be created if it does not exist.

  • Type: String.

  • Default: 'objstore-{{ ansible_nodename }}'

objectstore_backup__destination_name

  • A unique name (alias) for the destination objectstore.

  • Type: String.

  • Default: 'swissbackup'

objectstore_backup__destination_url

  • The URL that identifies a host and port as the entry point for the destination S3 objectstore web service.

  • Type: String.

  • Default: 'https://s3.swiss-backup03.infomaniak.com'

objectstore_backup__on_calendar

  • The OnCalendar definition for when the backup should occur. Have a look at man systemd.time(7) for the format.

  • Type: String.

  • Default: 'Sun *-*-* 22:00:00'

objectstore_backup__source_bucket

  • The name of the bucket to be backed-up from the source objectstore.

  • Type: String.

  • Default: '{{ ansible_nodename }}'

objectstore_backup__source_name

  • A unique name (alias) for the source objectstore.

  • Type: String.

  • Default: 'swisscloud'

objectstore_backup__source_url

  • The URL that identifies a host and port as the entry point for the source S3 objectstore web service.

  • Type: String.

  • Default: 'https://s3.pub1.infomaniak.cloud'

Example:

# optional
objectstore_backup__destination_bucket: 'objstore-{{ ansible_nodename }}'
objectstore_backup__destination_name: 'swissbackup'
objectstore_backup__destination_url: 'https://s3.swiss-backup03.infomaniak.com'
objectstore_backup__on_calendar: 'Sun *-*-* 22:00:00'
objectstore_backup__source_bucket: '{{ ansible_nodename }}'
objectstore_backup__source_name: 'swisscloud'
objectstore_backup__source_url: 'https://s3.pub1.infomaniak.cloud'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich