system-config/modules/openstack_project/manifests/etherpad.pp
Jeremy Stanley 708ed24975 Upgrade etherpad to Ubuntu Trusty
Upgrade etherpad to Ubuntu Trusty and switch from node.js compiled
from source to the nodejs/npm distro packages there, and switch to
the current latest "develop" branch tip tested and known working
from the etherpad-dev server.

Change-Id: I5ce02ad5424c3f6cf0dbd1bc067babacf13a3b2f
2015-09-05 19:34:06 +00:00

55 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 => 'cc9f88e7ed4858b72feb64c99beb3e13445ab6d9',
nodejs_version => 'system',
}
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,
require => Class['etherpad_lite'],
}
include bup
bup::site { 'rs-ord':
backup_user => 'bup-etherpad',
backup_server => 'ci-backup-rs-ord.openstack.org',
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79