Move out server class from subunit_worker.pp

Change-Id: Ic23472198c6a1842398c2a44de4a08ef89e1fb71
Story: 2000172
Spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.htm
This commit is contained in:
Mikhail S Medvedev 2015-07-09 14:40:01 -05:00
parent 3098617708
commit 012b5c585e
2 changed files with 4 additions and 7 deletions

View File

@ -402,8 +402,11 @@ node /^logstash-worker\d+\.openstack\.org$/ {
# Node-OS: trusty
node /^subunit-worker\d+\.openstack\.org$/ {
$group = "subunit-worker"
class { 'openstack_project::server':
iptables_public_tcp_ports => [22],
sysadmins => hiera('sysadmins', []),
}
class { 'openstack_project::subunit_worker':
sysadmins => hiera('sysadmins', []),
subunit2sql_db_host => hiera('subunit2sql_db_host', ''),
subunit2sql_db_pass => hiera('subunit2sql_db_password', ''),
}

View File

@ -15,15 +15,9 @@
# subunit2sql worker glue class.
#
class openstack_project::subunit_worker (
$sysadmins = [],
$subunit2sql_db_host,
$subunit2sql_db_pass,
) {
class { 'openstack_project::server':
iptables_public_tcp_ports => [22],
sysadmins => $sysadmins,
}
include subunit2sql
subunit2sql::worker { 'A':
config_file => 'puppet:///modules/openstack_project/logstash/jenkins-subunit-worker.yaml',