RHEL support for salt.
Updates to the salt modules so that they run on RHEL. Change-Id: Ibdbc35594a018a7f49f3785d527e5c1a71a92a2e Reviewed-on: https://review.openstack.org/23188 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Khai Do <zaro0508@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
2f609a7223
commit
926bf44fe6
@ -3,6 +3,8 @@
|
||||
class salt (
|
||||
$salt_master = $::fqdn
|
||||
) {
|
||||
|
||||
if ($::operatingsystem == 'Ubuntu') {
|
||||
include apt
|
||||
|
||||
# Wrap in ! defined checks to allow minion and master installs on the
|
||||
@ -17,9 +19,12 @@ class salt (
|
||||
}
|
||||
}
|
||||
|
||||
Apt::Ppa['ppa:saltstack/salt'] -> Package['salt-minion']
|
||||
|
||||
}
|
||||
|
||||
package { 'salt-minion':
|
||||
ensure => present,
|
||||
require => Apt::Ppa['ppa:saltstack/salt'],
|
||||
ensure => present
|
||||
}
|
||||
|
||||
file { '/etc/salt/minion':
|
||||
|
@ -1,6 +1,8 @@
|
||||
# Class salt::master
|
||||
#
|
||||
class salt::master {
|
||||
|
||||
if ($::operatingsystem == 'Ubuntu') {
|
||||
include apt
|
||||
|
||||
# Wrap in ! defined checks to allow minion and master installs on the
|
||||
@ -15,9 +17,12 @@ class salt::master {
|
||||
}
|
||||
}
|
||||
|
||||
Apt::Ppa['ppa:saltstack/salt'] -> Package['salt-master']
|
||||
|
||||
}
|
||||
|
||||
package { 'salt-master':
|
||||
ensure => present,
|
||||
require => Apt::Ppa['ppa:saltstack/salt'],
|
||||
ensure => present
|
||||
}
|
||||
|
||||
group { 'salt':
|
||||
|
Loading…
Reference in New Issue
Block a user