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',
|
2018-08-10 09:58:42 -07:00
|
|
|
$mysql_db_name = 'etherpad-lite',
|
|
|
|
$vhost_name = $::fqdn,
|
2012-09-06 10:32:48 -07:00
|
|
|
) {
|
2015-03-11 07:59:29 -07:00
|
|
|
class { 'etherpad_lite':
|
2015-03-13 12:42:15 -07:00
|
|
|
ep_ensure => 'latest',
|
2018-08-29 14:22:13 +00:00
|
|
|
eplite_version => '1.7.0',
|
2018-04-12 20:05:32 +00:00
|
|
|
nodejs_version => '6.x',
|
2015-03-11 07:59:29 -07:00
|
|
|
}
|
2012-09-26 13:40:42 -04:00
|
|
|
|
2012-08-04 13:10:26 -05:00
|
|
|
class { 'etherpad_lite::apache':
|
2018-08-10 09:58:42 -07:00
|
|
|
vhost_name => $vhost_name,
|
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,
|
2018-10-03 06:44:58 -07:00
|
|
|
num_backups => '5',
|
2013-09-05 18:22:21 -07:00
|
|
|
require => Class['etherpad_lite'],
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2013-10-14 13:22:19 -07:00
|
|
|
|
|
|
|
include bup
|
2017-10-30 13:03:42 +11:00
|
|
|
bup::site { 'ord.rax':
|
2013-10-14 13:22:19 -07:00
|
|
|
backup_user => 'bup-etherpad',
|
2017-10-30 13:03:42 +11:00
|
|
|
backup_server => 'backup01.ord.rax.ci.openstack.org',
|
2013-10-14 13:22:19 -07:00
|
|
|
}
|
2012-07-20 19:38:57 -07:00
|
|
|
}
|
2012-09-26 13:40:42 -04:00
|
|
|
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|