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:
parent
3098617708
commit
012b5c585e
@ -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', ''),
|
||||
}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user