Puppet Class: profile::mediabackup::worker
- Defined in:
- modules/profile/manifests/mediabackup/worker.pp
Overview
SPDX-License-Identifier: Apache-2.0 mediabackup worker installs the software and sets up the schedule needed to trigger the generation and recovery of media (swift) backups for wikis.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'modules/profile/manifests/mediabackup/worker.pp', line 5
class profile::mediabackup::worker (
Hash $mediabackup_config = lookup('mediabackup'),
){
# Setup the media backups worker in production.
# Some of the static configuration used here should probably
# be moved later to the db to allow for more dynamic
# configuration.
class { 'mediabackup::worker':
sections => $mediabackup_config['sections'],
mw_db_user => $mediabackup_config['mw_db_user'],
mw_db_password => $mediabackup_config['mw_db_password'],
dblists_path => $mediabackup_config['dblists_path'],
mw_db_config_file => $mediabackup_config['mw_db_config_file'],
batchsize => $mediabackup_config['batchsize'],
db_config_file => $mediabackup_config['db_config_file'],
db_host => $mediabackup_config['db_host'],
db_port => $mediabackup_config['db_port'],
db_user => $mediabackup_config['db_user'],
db_password => $mediabackup_config['db_password'],
db_schema => $mediabackup_config['db_schema'],
encryption_key => $mediabackup_config['encryption_key'],
storage_root_user => $mediabackup_config['storage_root_user'],
storage_root_password => $mediabackup_config['storage_root_password'],
storage_hosts => $mediabackup_config['storage_hosts'],
storage_port => $mediabackup_config['storage_port'],
access_key => $mediabackup_config['access_key'],
secret_key => $mediabackup_config['secret_key'],
recovery_access_key => $mediabackup_config['recovery_access_key'],
recovery_secret_key => $mediabackup_config['recovery_secret_key'],
}
}
|