17bc1cfbf6
Change-Id: Ib3c65ef28f07b382664b0774dc70012db11bd0dd
23 lines
526 B
Puppet
23 lines
526 B
Puppet
# 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':
|
|
ssh_key => $jenkins_ssh_public_key,
|
|
}
|
|
|
|
file { '/etc/sudoers.d/salt-trigger':
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0440',
|
|
source => 'puppet:///modules/openstack_project/salt-trigger.sudoers',
|
|
replace => true,
|
|
}
|
|
|
|
}
|