diff options
author | Vik Bhatti <vik@vikbhatti.com> | 2014-04-08 14:50:52 +0100 |
---|---|---|
committer | Vik Bhatti <vik@vikbhatti.com> | 2014-04-08 14:50:52 +0100 |
commit | 8d9ea35a00f133083e752d199a1102b00827876f (patch) | |
tree | f86cad23c5c5f842442b15a905ea3c92262cf254 /manifests/init.pp | |
parent | 275cd8672ac5a0144f4d96ba39f0db6705786fc4 (diff) | |
parent | c3a5a8f338776255859d50f4b906642f540cb162 (diff) |
Pulled from upstream
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 2a9a44c..4797b11 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,11 +14,15 @@ # Install python-dev. Default: false # # [*virtualenv*] -# Install python-virtualenv. Default: false +# Install python-virtualenv. Default: false, also accepts 'pip' which will +# install latest virtualenv from pip rather than package manager # # [*gunicorn*] # Install Gunicorn. Default: false # +# [*manage_gunicorn*] +# Allow Installation / Removal of Gunicorn. Default: true +# # === Examples # # class { 'python': @@ -34,16 +38,18 @@ # Sergey Stankevich # class python ( - $version = 'system', - $pip = false, - $dev = false, - $virtualenv = false, - $gunicorn = false + $version = 'system', + $pip = false, + $dev = false, + $virtualenv = false, + $gunicorn = false, + $manage_gunicorn = true, + $provider = undef ) { # Module compatibility check - $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat' ] - if ! ($::operatingsystem in $compatible) { + $compatible = [ 'Debian', 'RedHat'] + if ! ($::osfamily in $compatible) { fail("Module is not compatible with ${::operatingsystem}") } |