Merge "Add a Jenkins slave for triggering salt commands"
This commit is contained in:
commit
397a8244ff
@ -474,6 +474,13 @@ node 'pypi.slave.openstack.org' {
|
||||
}
|
||||
}
|
||||
|
||||
node 'salt-trigger.slave.openstack.org' {
|
||||
include openstack_project
|
||||
class { 'openstack_project::salt_trigger_slave':
|
||||
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
||||
}
|
||||
}
|
||||
|
||||
node /^precise-?\d+.*\.slave\.openstack\.org$/ {
|
||||
include openstack_project
|
||||
include openstack_project::puppet_cron
|
||||
|
13
modules/openstack_project/manifests/salt_trigger_slave.pp
Normal file
13
modules/openstack_project/manifests/salt_trigger_slave.pp
Normal file
@ -0,0 +1,13 @@
|
||||
# Slave used for automatically triggering commands on the salt master.
|
||||
#
|
||||
# == Class: openstack_project::salt_trigger_slave
|
||||
#
|
||||
class openstack_project::salt_trigger_slave (
|
||||
$jenkins_ssh_public_key = ''
|
||||
) {
|
||||
|
||||
class { 'openstack_project::slave':
|
||||
jenkins_ssh_public_key => $jenkins_ssh_public_key,
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user