system-config/modules/openstack_project/manifests/etherpad.pp
Clark Boylan 290bd6ad8f Ensure latest on etherpad vcsrepo
Due to some implementation details in our vcsrepo puppet module in order
to get the specified revision you must ensure latest on the repo. This
poses a small problem where the repo is reset to that revision each
puppet run, but we can negate that problem by hosting the robots.txt
from apache directly which is where the depends on dependency in this
change comes from.

Note that we also bump the git sha1 to the latest version that has been
tested on etherpad-dev. This catches us up on all of the most recent
etherpad-lite updates.

Change-Id: Ibcfb03cf9ff6f7686e5dbd69905d34009adf9157
Depends-On: Iccccf1ef194060490512e6550c22bdb9d3478ba8
2015-04-13 13:51:10 -07:00

60 lines
1.7 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',
$sysadmins = []
) {
class { 'openstack_project::server':
iptables_public_tcp_ports => [22, 80, 443],
sysadmins => $sysadmins
}
class { 'etherpad_lite':
ep_ensure => 'latest',
eplite_version => '24b0712d77abb91ebea2d67f06f565861ec008f0',
}
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