db5a65332b
Switch to etherpad-lite 1.7.0 in production prior to the PTG. This version brings a couple more security fixes since 1.6.6 and also fixes the bullet list authorship misattribution bug. See https://github.com/ether/etherpad-lite/blob/1.7.0/CHANGELOG.md for a summary of changes. The version of NodeJS we're using now should meet the minimum requirements (but will need to be updated prior to the next etherpad-lite release). This version is the one currently served from etherpad-dev.openstack.org and can be tested there as desired. Change-Id: If52d1b1c3dc33da56133ccb5e6adf33ebd3d2428
56 lines
1.6 KiB
Puppet
56 lines
1.6 KiB
Puppet
class openstack_project::etherpad (
|
|
$mysql_password,
|
|
$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',
|
|
$ssl_cert_file_contents = '',
|
|
$ssl_key_file_contents = '',
|
|
$ssl_chain_file_contents = '',
|
|
$mysql_host = 'localhost',
|
|
$mysql_user = 'eplite',
|
|
$mysql_db_name = 'etherpad-lite'
|
|
) {
|
|
class { 'etherpad_lite':
|
|
ep_ensure => 'latest',
|
|
eplite_version => '1.7.0',
|
|
nodejs_version => '6.x',
|
|
}
|
|
|
|
class { 'etherpad_lite::apache':
|
|
ssl_cert_file => $ssl_cert_file,
|
|
ssl_key_file => $ssl_key_file,
|
|
ssl_chain_file => $ssl_chain_file,
|
|
ssl_cert_file_contents => $ssl_cert_file_contents,
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
|
}
|
|
|
|
class { 'etherpad_lite::site':
|
|
etherpad_title => 'OpenStack 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':
|
|
database_host => $mysql_host,
|
|
database_user => $mysql_user,
|
|
database_password => $mysql_password,
|
|
num_backups => '10',
|
|
require => Class['etherpad_lite'],
|
|
}
|
|
|
|
include bup
|
|
bup::site { 'ord.rax':
|
|
backup_user => 'bup-etherpad',
|
|
backup_server => 'backup01.ord.rax.ci.openstack.org',
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|