Add in a parameter to help non-us devstack-gate.

Change-Id: Ia0b5c80c479f8acd5cc1e0dc0a4515d88e6b5db8
Reviewed-on: https://review.openstack.org/11091
Reviewed-by: Devananda van der Veen <devananda.vdv@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Monty Taylor 2012-08-09 15:10:02 -04:00 committed by Jenkins
parent d10c011a03
commit e5c9deed11
2 changed files with 14 additions and 5 deletions

View File

@ -1,10 +1,14 @@
class openstack_project::slave_template {
class openstack_project::slave_template(
$install_users=true,
$ssh_key=$openstack_project::jenkins_ssh_key
) {
include openstack_project
class { 'openstack_project::template':
iptables_public_tcp_ports => []
iptables_public_tcp_ports => [],
install_users => $install_users,
}
class { 'jenkins_slave':
ssh_key => $openstack_project::jenkins_ssh_key,
ssh_key => $ssh_key,
sudo => true,
bare => true
}

View File

@ -1,6 +1,8 @@
# A template host with no running services
class openstack_project::template ($iptables_public_tcp_ports) {
include openstack_project::base
class openstack_project::template (
$iptables_public_tcp_ports,
$install_users = true
) {
include ntp
include ssh
include snmpd
@ -9,4 +11,7 @@ class openstack_project::template ($iptables_public_tcp_ports) {
class { 'iptables':
public_tcp_ports => $iptables_public_tcp_ports,
}
class { 'openstack_project::base':
install_users => $install_users
}
}