cd9e56e6e6
The jenkins slave template manifest depends on having the jenkins ssh key variable in scope. To make this happen have openstack_project::slave_template inherit openstack_project which includes the ssh key variable. Change-Id: I231f030e42e7bb2cf780f04f2a3ca1e668cf61f9 Reviewed-on: https://review.openstack.org/14186 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
15 lines
356 B
Puppet
15 lines
356 B
Puppet
class openstack_project::slave_template (
|
|
$install_users=true,
|
|
$ssh_key=$openstack_project::jenkins_ssh_key
|
|
) inherits openstack_project {
|
|
class { 'openstack_project::template':
|
|
iptables_public_tcp_ports => [],
|
|
install_users => $install_users,
|
|
}
|
|
class { 'jenkins::slave':
|
|
ssh_key => $ssh_key,
|
|
sudo => true,
|
|
bare => true
|
|
}
|
|
}
|