diff options
author | Davide Mendolia <idaf1er@gmail.com> | 2014-01-02 23:11:52 +0100 |
---|---|---|
committer | Davide Mendolia <idaf1er@gmail.com> | 2014-01-02 23:11:52 +0100 |
commit | 0e72400bfd33df651c23f2f7c71c3c5cf8bfe815 (patch) | |
tree | 226a50fb0af9d25af886b9318566951e30ebca4a /manifests/init.pp | |
parent | 80ee7bcdf5ca4287432da9d2e06c3bb6c1dd8a91 (diff) |
Replace operatingsystem test for osfamily to increase os support
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 9fe0420..54dae45 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -44,8 +44,8 @@ class python ( ) { # Module compatibility check - $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat', 'Scientific' ] - if ! ($::operatingsystem in $compatible) { + $compatible = [ 'debian', 'redhat'] + if ! ($::osfamily in $compatible) { fail("Module is not compatible with ${::operatingsystem}") } |