
These backups were kept locally for convenience of operation. Bup stores blobs in git so it should be effectively deduping these over time so wasn't a stress on remote backups. However now we are filling the local disk with the db backup files. Address this by reducing the number of local backups to 5 (from 10). Change-Id: I1765836784752dba2a6f2582801b860fcce4843c
40 lines
1.0 KiB
Puppet
40 lines
1.0 KiB
Puppet
class openstack_project::etherpad_dev (
|
|
$mysql_password,
|
|
$mysql_host = 'localhost',
|
|
$mysql_user = 'eplite',
|
|
$mysql_db_name = 'etherpad-lite'
|
|
) {
|
|
class { 'etherpad_lite':
|
|
ep_ensure => 'latest',
|
|
nodejs_version => '6.x',
|
|
}
|
|
|
|
class { 'etherpad_lite::apache':
|
|
ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
|
|
ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key',
|
|
ssl_chain_file => '',
|
|
}
|
|
|
|
class { 'etherpad_lite::site':
|
|
etherpad_title => 'OpenStack Dev Etherpad',
|
|
database_host => $mysql_host,
|
|
database_user => $mysql_user,
|
|
database_name => $mysql_db_name,
|
|
database_password => $mysql_password,
|
|
}
|
|
|
|
etherpad_lite::plugin { 'ep_headings':
|
|
require => Class['etherpad_lite'],
|
|
}
|
|
|
|
mysql_backup::backup_remote { 'etherpad-lite-dev':
|
|
database_host => $mysql_host,
|
|
database_user => $mysql_user,
|
|
database_password => $mysql_password,
|
|
num_backups => '5',
|
|
require => Class['etherpad_lite'],
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|