274489ab9e
As copied from jenkins. Both old and new names for the cert contents are in hiera. Change-Id: Ic6d8258479c260ac37346c49c1ecde8339c96a37 Reviewed-on: https://review.openstack.org/14432 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
35 lines
1005 B
Puppet
35 lines
1005 B
Puppet
class openstack_project::etherpad (
|
|
$ssl_cert_file_contents = '',
|
|
$ssl_key_file_contents = '',
|
|
$ssl_chain_file_contents = '',
|
|
$database_password,
|
|
$sysadmins = []
|
|
) {
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [22, 80, 443],
|
|
sysadmins => $sysadmins
|
|
}
|
|
|
|
include etherpad_lite
|
|
include etherpad_lite::backup
|
|
|
|
class { 'etherpad_lite::apache':
|
|
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_cert_file_contents,
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
|
}
|
|
|
|
class { 'etherpad_lite::site':
|
|
database_password => $database_password,
|
|
}
|
|
|
|
class { 'etherpad_lite::mysql':
|
|
database_password => $database_password,
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|