Moved out the server class from the etherpad and etherpad-dev classes
Change-Id: If08e1eb8bacfbbf88546813b8b6dcd2ae2e7c8ee Story: 2000172 Spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.html
This commit is contained in:
parent
a88ebb863f
commit
655328bb2f
@ -281,6 +281,11 @@ node 'eavesdrop.openstack.org' {
|
||||
|
||||
# Node-OS: precise
|
||||
node 'etherpad.openstack.org' {
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80, 443],
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
}
|
||||
|
||||
class { 'openstack_project::etherpad':
|
||||
ssl_cert_file_contents => hiera('etherpad_ssl_cert_file_contents', 'XXX'),
|
||||
ssl_key_file_contents => hiera('etherpad_ssl_key_file_contents', 'XXX'),
|
||||
@ -288,17 +293,20 @@ node 'etherpad.openstack.org' {
|
||||
mysql_host => hiera('etherpad_db_host', 'localhost'),
|
||||
mysql_user => hiera('etherpad_db_user', 'username'),
|
||||
mysql_password => hiera('etherpad_db_password', 'XXX'),
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
}
|
||||
}
|
||||
|
||||
# Node-OS: precise
|
||||
node 'etherpad-dev.openstack.org' {
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80, 443],
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
}
|
||||
|
||||
class { 'openstack_project::etherpad_dev':
|
||||
mysql_host => hiera('etherpad-dev_db_host', 'localhost'),
|
||||
mysql_user => hiera('etherpad-dev_db_user', 'username'),
|
||||
mysql_password => hiera('etherpad-dev_db_password', 'XXX'),
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,14 +8,8 @@ class openstack_project::etherpad (
|
||||
$ssl_chain_file_contents = '',
|
||||
$mysql_host = 'localhost',
|
||||
$mysql_user = 'eplite',
|
||||
$mysql_db_name = 'etherpad-lite',
|
||||
$sysadmins = []
|
||||
$mysql_db_name = 'etherpad-lite'
|
||||
) {
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80, 443],
|
||||
sysadmins => $sysadmins
|
||||
}
|
||||
|
||||
class { 'etherpad_lite':
|
||||
ep_ensure => 'latest',
|
||||
eplite_version => '24b0712d77abb91ebea2d67f06f565861ec008f0',
|
||||
|
@ -2,14 +2,8 @@ class openstack_project::etherpad_dev (
|
||||
$mysql_password,
|
||||
$mysql_host = 'localhost',
|
||||
$mysql_user = 'eplite',
|
||||
$mysql_db_name = 'etherpad-lite',
|
||||
$sysadmins = []
|
||||
$mysql_db_name = 'etherpad-lite'
|
||||
) {
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80, 443],
|
||||
sysadmins => $sysadmins
|
||||
}
|
||||
|
||||
class { 'etherpad_lite':
|
||||
ep_ensure => 'latest',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user