Merged in oherrala/puppet/oherrala-array-not-string (pull request #44)
firewall, gnu, sendmail: Fix "Name must be a String not Array" errors produced by latest Puppet.
This commit is contained in:
commit
75092b2215
3 changed files with 47 additions and 20 deletions
|
@ -122,19 +122,34 @@ class firewall::common::iptables {
|
|||
}
|
||||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
'debian', 'ubuntu': {
|
||||
package { "iptables":
|
||||
ensure => installed,
|
||||
name => $::operatingsystem ? {
|
||||
"centos" => [ "iptables", "iptables-ipv6" ],
|
||||
"redhat" => [ "iptables", "iptables-ipv6" ],
|
||||
"debian" => [ "iptables", "iptables-persistent" ],
|
||||
"fedora" => $::operatingsystemrelease ? {
|
||||
/^1[0-5]/ => [ "iptables", "iptables-ipv6" ],
|
||||
/^1[6-7]/ => "iptables",
|
||||
default => [ "iptables", "iptables-services" ],
|
||||
},
|
||||
"ubuntu" => [ "iptables", "iptables-persistent" ],
|
||||
},
|
||||
require => Package["iptables-persistent"],
|
||||
}
|
||||
package { "iptables-persistent":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
'centos','redhat': {
|
||||
package { "iptables":
|
||||
ensure => installed,
|
||||
require => Package["iptables-ipv6"],
|
||||
}
|
||||
package { "iptables-ipv6":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
'fedora': {
|
||||
package { "iptables":
|
||||
ensure => installed,
|
||||
require => Package["iptables-services"],
|
||||
}
|
||||
package { "iptables-services":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { $iptables:
|
||||
|
|
|
@ -10,15 +10,24 @@ class gnu::gcc {
|
|||
}
|
||||
|
||||
if $::kernel == Linux {
|
||||
case $::operatingsystem {
|
||||
'debian', 'ubuntu': {
|
||||
package { "kernel-headers":
|
||||
name => $::operatingsystem ? {
|
||||
"debian" => "linux-libc-dev",
|
||||
"ubuntu" => "linux-libc-dev",
|
||||
default => [ "kernel-headers", "kernel-devel", ],
|
||||
},
|
||||
name => "linux-libc-dev",
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
default: {
|
||||
package { "kernel-headers":
|
||||
ensure => installed,
|
||||
require => Package["kernel-devel"],
|
||||
}
|
||||
package { "kernel-devel":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -9,8 +9,11 @@ class sendmail::common {
|
|||
if $::operatingsystem != "OpenBSD" {
|
||||
package { "sendmail":
|
||||
ensure => installed,
|
||||
name => [ "sendmail", "sendmail-cf", ],
|
||||
before => File["/etc/mail/certs"],
|
||||
require => Package["sendmail-cf"],
|
||||
}
|
||||
package { "sendmail-cf":
|
||||
ensure => installed,
|
||||
}
|
||||
service { "sendmail":
|
||||
ensure => running,
|
||||
|
|
Loading…
Add table
Reference in a new issue