2012-09-06 10:32:48 -07:00
|
|
|
class openstack_project::etherpad (
|
2013-09-05 18:22:21 -07:00
|
|
|
$mysql_password,
|
2015-01-13 11:55:23 +00:00
|
|
|
$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',
|
2012-10-13 08:55:30 -07:00
|
|
|
$ssl_cert_file_contents = '',
|
|
|
|
$ssl_key_file_contents = '',
|
|
|
|
$ssl_chain_file_contents = '',
|
2013-09-05 18:22:21 -07:00
|
|
|
$mysql_host = 'localhost',
|
|
|
|
$mysql_user = 'eplite',
|
|
|
|
$mysql_db_name = 'etherpad-lite',
|
2012-09-06 10:32:48 -07:00
|
|
|
$sysadmins = []
|
|
|
|
) {
|
2012-07-20 19:38:57 -07:00
|
|
|
class { 'openstack_project::server':
|
2012-09-06 10:32:48 -07:00
|
|
|
iptables_public_tcp_ports => [22, 80, 443],
|
2012-09-26 13:40:42 -04:00
|
|
|
sysadmins => $sysadmins
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
include etherpad_lite
|
2012-09-26 13:40:42 -04:00
|
|
|
|
2012-08-04 13:10:26 -05:00
|
|
|
class { 'etherpad_lite::apache':
|
2015-01-13 11:55:23 +00:00
|
|
|
ssl_cert_file => $ssl_cert_file,
|
|
|
|
ssl_key_file => $ssl_key_file,
|
|
|
|
ssl_chain_file => $ssl_chain_file,
|
2012-10-13 08:55:30 -07:00
|
|
|
ssl_cert_file_contents => $ssl_cert_file_contents,
|
|
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
|
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2012-09-26 13:40:42 -04:00
|
|
|
|
2012-07-20 19:38:57 -07:00
|
|
|
class { 'etherpad_lite::site':
|
2014-02-10 14:50:15 -08:00
|
|
|
etherpad_title => 'OpenStack Etherpad',
|
2013-09-05 18:22:21 -07:00
|
|
|
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'],
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2012-09-26 13:40:42 -04:00
|
|
|
|
2013-09-05 18:22:21 -07:00
|
|
|
mysql_backup::backup_remote { 'etherpad-lite':
|
|
|
|
database_host => $mysql_host,
|
|
|
|
database_user => $mysql_user,
|
|
|
|
database_password => $mysql_password,
|
|
|
|
require => Class['etherpad_lite'],
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2013-10-14 13:22:19 -07:00
|
|
|
|
|
|
|
include bup
|
|
|
|
bup::site { 'rs-ord':
|
|
|
|
backup_user => 'bup-etherpad',
|
|
|
|
backup_server => 'ci-backup-rs-ord.openstack.org',
|
|
|
|
}
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2012-09-26 13:40:42 -04:00
|
|
|
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|