Added support for RHEL and did some syntax cleaning

Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
Ossi Salmi 2012-09-05 16:42:02 +03:00
parent e9aae1dcf6
commit 24ecb51f6f
63 changed files with 544 additions and 497 deletions

View file

@ -2,15 +2,15 @@
#
class adobe::common {
case $operatingsystem {
"centos","fedora": {
case $::operatingsystem {
"centos","redhat","fedora": {
include yum::repo::adobe
}
"ubuntu": {
include apt::repo::partner
}
default: {
fail("Adobe products via puppet not supported on ${operatingsystem}")
fail("Adobe products via puppet not supported on ${::operatingsystem}")
}
}
@ -36,7 +36,7 @@ class adobe::flash {
include adobe::common
package { "adobe-flash-plugin":
name => $operatingsystem ? {
name => $::operatingsystem ? {
"ubuntu" => "adobe-flashplugin",
default => "flash-plugin",
},
@ -53,7 +53,7 @@ class adobe::reader {
include adobe::common
package { "acroread":
name => $operatingsystem ? {
name => $::operatingsystem ? {
"ubuntu" => "acroread",
default => "AdobeReader_enu",
},