37daa678e2
Change-Id: I6c6ad0ddd000e3f140cb08faef7dce2cb9ae7079 Reviewed-on: https://review.openstack.org/18349 Reviewed-by: Ryan Lane Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
49 lines
1.3 KiB
Puppet
49 lines
1.3 KiB
Puppet
# == Class: openstack_project::wiki
|
|
#
|
|
class openstack_project::wiki (
|
|
$mysql_root_password = '',
|
|
$sysadmins = [],
|
|
$ssl_cert_file_contents = '',
|
|
$ssl_key_file_contents = '',
|
|
$ssl_chain_file_contents = '',
|
|
) {
|
|
|
|
include openssl
|
|
include subversion
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [80, 443],
|
|
sysadmins => $sysadmins,
|
|
}
|
|
|
|
realize (
|
|
User::Virtual::Localuser['rlane'],
|
|
)
|
|
|
|
class { 'mediawiki':
|
|
role => 'all',
|
|
mediawiki_location => '/srv/mediawiki/w',
|
|
site_hostname => $::fqdn,
|
|
ssl_cert_file => "/etc/ssl/certs/${::fqdn}.pem",
|
|
ssl_key_file => "/etc/ssl/private/${::fqdn}.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 { 'memcached':
|
|
max_memory => 2048,
|
|
listen_ip => '127.0.0.1',
|
|
tcp_port => 11000,
|
|
udp_port => 11000,
|
|
}
|
|
class { 'mysql::server':
|
|
config_hash => {
|
|
'root_password' => $mysql_root_password,
|
|
'default_engine' => 'InnoDB',
|
|
'bind_address' => '127.0.0.1',
|
|
}
|
|
}
|
|
include mysql::server::account_security
|
|
}
|