Add a Jenkins slave for triggering salt commands
This is the skeleton we'll fill out with any additional functionality needed by the salt-trigger slave. Change-Id: I928c2fa4c64e69140b673615a8c18e4eea79e952
This commit is contained in:
parent
1f6f6574d5
commit
ef399b91af
@ -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