2012-10-25 23:09:13 +00:00
|
|
|
class openstack_project::etherpad_dev (
|
2013-09-06 01:22:21 +00:00
|
|
|
$mysql_password,
|
|
|
|
$mysql_host = 'localhost',
|
|
|
|
$mysql_user = 'eplite',
|
2015-05-20 14:00:28 +00:00
|
|
|
$mysql_db_name = 'etherpad-lite'
|
2012-10-25 23:09:13 +00:00
|
|
|
) {
|
2015-03-09 19:05:26 +00:00
|
|
|
class { 'etherpad_lite':
|
2015-08-20 17:00:54 +00:00
|
|
|
ep_ensure => 'latest',
|
|
|
|
nodejs_version => 'system',
|
2015-03-09 19:05:26 +00:00
|
|
|
}
|
2012-10-25 23:09:13 +00:00
|
|
|
|
|
|
|
class { 'etherpad_lite::apache':
|
2012-11-15 22:25:13 +00:00
|
|
|
ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
|
|
|
|
ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key',
|
2012-10-25 23:09:13 +00:00
|
|
|
ssl_chain_file => '',
|
|
|
|
}
|
|
|
|
|
|
|
|
class { 'etherpad_lite::site':
|
2014-02-10 22:50:15 +00:00
|
|
|
etherpad_title => 'OpenStack Dev Etherpad',
|
2013-09-06 01:22:21 +00: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-10-25 23:09:13 +00:00
|
|
|
}
|
|
|
|
|
2013-09-06 01:22:21 +00:00
|
|
|
mysql_backup::backup_remote { 'etherpad-lite-dev':
|
|
|
|
database_host => $mysql_host,
|
|
|
|
database_user => $mysql_user,
|
|
|
|
database_password => $mysql_password,
|
|
|
|
require => Class['etherpad_lite'],
|
2012-10-25 23:09:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|