f30ea0aad9
* .../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
42 lines
1.1 KiB
Puppet
42 lines
1.1 KiB
Puppet
class openstack_project::etherpad_dev (
|
|
$database_password = '',
|
|
$sysadmins = []
|
|
) {
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [22, 80, 443],
|
|
sysadmins => $sysadmins
|
|
}
|
|
|
|
class { 'etherpad_lite':
|
|
# Use the version running on the prod server.
|
|
eplite_version => '4195e11a41c5992bc555cef71246800bceaf1915',
|
|
# Use the version running on the prod server.
|
|
nodejs_version => 'v0.6.16',
|
|
# Once dev install is working replace the above parameters with
|
|
# the following to test automated upgrade by puppet.
|
|
# eplite_version => '1.1.4',
|
|
# nodejs_version => 'v0.8.14',
|
|
ep_headings => true
|
|
}
|
|
|
|
mysql_backup::backup { 'etherpad-lite':
|
|
require => Class['etherpad_lite'],
|
|
}
|
|
|
|
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':
|
|
database_password => $database_password,
|
|
}
|
|
|
|
class { 'etherpad_lite::mysql':
|
|
database_password => $database_password,
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|