system-config/modules/salt/manifests/init.pp
Paul Belanger 39c786ee10 Puppet lint fixes
A few trival fixes to remove puppet lint warnings

Change-Id: I414684e43b18ebbe5cad30157f587cea654c381e
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/15838
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-11-12 18:53:01 +00:00

45 lines
935 B
Puppet

# Class salt
#
class salt (
$salt_master = $::fqdn
) {
include apt
# Wrap in ! defined checks to allow minion and master installs on the
# same host.
if ! defined(Apt::Ppa['ppa:saltstack/salt']) {
apt::ppa { 'ppa:saltstack/salt': }
}
if ! defined(Package['python-software-properties']) {
package { 'python-software-properties':
ensure => present,
}
}
package { 'salt-minion':
ensure => present,
require => Apt::Ppa['ppa:saltstack/salt'],
}
file { '/etc/salt/minion':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template('salt/minion.erb'),
replace => true,
require => Package['salt-minion'],
}
service { 'salt-minion':
ensure => running,
enable => true,
require => File['/etc/salt/minion'],
subscribe => [
Package['salt-minion'],
File['/etc/salt/minion'],
],
}
}