2017-01-24 11:00:31 -08:00
|
|
|
class openstack_project::ethercalc (
|
|
|
|
$vhost_name = $::fqdn,
|
|
|
|
$ssl_cert_file = '/etc/ssl/certs/ethercalc.openstack.org.pem',
|
|
|
|
$ssl_key_file = '/etc/ssl/private/ethercalc.openstack.org.key',
|
|
|
|
$ssl_chain_file = '/etc/ssl/certs/intermediate.pem',
|
|
|
|
$ssl_cert_file_contents = '',
|
|
|
|
$ssl_key_file_contents = '',
|
|
|
|
$ssl_chain_file_contents = '',
|
|
|
|
) {
|
2017-01-25 11:58:51 -08:00
|
|
|
class { '::ethercalc': }
|
2017-01-24 11:00:31 -08:00
|
|
|
|
|
|
|
class { 'ethercalc::apache':
|
|
|
|
vhost_name => $vhost_name,
|
|
|
|
ssl_cert_file => $ssl_cert_file,
|
|
|
|
ssl_key_file => $ssl_key_file,
|
|
|
|
ssl_chain_file => $ssl_chain_file,
|
|
|
|
ssl_cert_file_contents => $ssl_cert_file_contents,
|
|
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
|
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
|
|
|
}
|
|
|
|
|
|
|
|
include ethercalc::redis
|
2017-01-26 08:55:26 -08:00
|
|
|
|
|
|
|
# Redis creates a snapshot at /var/lib/redis/dump.rdb periodically
|
|
|
|
# (at worst every 15 minutes if at least one change is made to redis)
|
|
|
|
# which can be used to recover the Redis DB. Bup will automagically
|
|
|
|
# pick this file up during its normal operation so no other DB dumping
|
|
|
|
# is required like with mysql.
|
|
|
|
include bup
|
2017-10-30 13:03:42 +11:00
|
|
|
bup::site { 'ord.rax':
|
2018-08-14 14:13:03 -07:00
|
|
|
backup_user => "bup-$::hostname",
|
2017-10-30 13:03:42 +11:00
|
|
|
backup_server => 'backup01.ord.rax.ci.openstack.org',
|
2017-01-26 08:55:26 -08:00
|
|
|
}
|
2017-01-24 11:00:31 -08:00
|
|
|
}
|