system-config/modules/openstack_project/manifests/etherpad_dev.pp
K Jonathan Harker 10c825b3e3 Ensure that we have the latest revision
Change-Id: I8f10c0d9b28352c3861bb80b024d441c68378028
Depends-On: Ie560a00e70e428b46ac431975caa74d7d05fcad4
2015-03-09 12:06:13 -07:00

44 lines
1.1 KiB
Puppet

class openstack_project::etherpad_dev (
$mysql_password,
$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',
}
class { 'etherpad_lite::apache':
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,
require => Class['etherpad_lite'],
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79