system-config/modules/openstack_project/manifests/etherpad.pp
Clark Boylan f30ea0aad9 Switch etherpad_lite backups to mysql_backup.
* .../openstack_project/manifests/etherpad.pp:
Use the new mysql_backup module to backup the etherpad DB. Note that
this change is not sufficient to completely clean out the old logrotate
config and cron for the old etherpad DB backups. This should be merged
in a coordinated manner where the other logrotate configs and cron are
removed by hand.

Change-Id: Ide60ce13a454f72865d697ee736beada76850f32
2013-08-14 16:53:49 -07:00

37 lines
1.0 KiB
Puppet

class openstack_project::etherpad (
$ssl_cert_file_contents = '',
$ssl_key_file_contents = '',
$ssl_chain_file_contents = '',
$database_password = '',
$sysadmins = []
) {
class { 'openstack_project::server':
iptables_public_tcp_ports => [22, 80, 443],
sysadmins => $sysadmins
}
include etherpad_lite
mysql_backup::backup { 'etherpad-lite':
require => Class['etherpad_lite'],
}
class { 'etherpad_lite::apache':
ssl_cert_file => '/etc/ssl/certs/etherpad.openstack.org.pem',
ssl_key_file => '/etc/ssl/private/etherpad.openstack.org.key',
ssl_chain_file => '/etc/ssl/certs/intermediate.pem',
ssl_cert_file_contents => $ssl_cert_file_contents,
ssl_key_file_contents => $ssl_key_file_contents,
ssl_chain_file_contents => $ssl_chain_file_contents,
}
class { 'etherpad_lite::site':
database_password => $database_password,
}
class { 'etherpad_lite::mysql':
database_password => $database_password,
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79