c03591d776
The Nodesource repo has Node 10.x packages for Ubuntu Xenial, so we can give that a try. Latest versions of Etherpad require at least 8.x but running newer should be fine if we can. Change-Id: Ib49a5ddaec5a4786ec8ec0042faee06b11603bee
42 lines
1.1 KiB
Puppet
42 lines
1.1 KiB
Puppet
class openstack_project::etherpad_dev (
|
|
$mysql_password,
|
|
$mysql_host = 'localhost',
|
|
$mysql_user = 'eplite',
|
|
$mysql_db_name = 'etherpad-lite',
|
|
$vhost_name = $::fqdn,
|
|
) {
|
|
class { 'etherpad_lite':
|
|
ep_ensure => 'latest',
|
|
nodejs_version => '10.x',
|
|
}
|
|
|
|
class { 'etherpad_lite::apache':
|
|
vhost_name => $vhost_name,
|
|
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':
|
|
etherpad_title => 'OpenStack Dev Etherpad',
|
|
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'],
|
|
}
|
|
|
|
mysql_backup::backup_remote { 'etherpad-lite-dev':
|
|
database_host => $mysql_host,
|
|
database_user => $mysql_user,
|
|
database_password => $mysql_password,
|
|
num_backups => '5',
|
|
require => Class['etherpad_lite'],
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|