summaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2014-07-29 19:08:36 +0200
committerkwadronaut <kwadronaut@leap.se>2014-07-29 19:08:36 +0200
commitba32e368e22078cac65d27531a1cf7d0962ec984 (patch)
treed28ae4bd79d5d4f61ecf3d8b8cd55c9e306b960d /manifests/config.pp
parent78c4e8d748138833ba07b71bcfc1ea538c4a2dfb (diff)
parent1696203589b66cc374bd8f5f21e82d5b92eb391b (diff)
Update: Merge remote-tracking branch 'upstream/master'HEADmaster
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp35
1 files changed, 26 insertions, 9 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 49e5230..c7196f2 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -1,3 +1,18 @@
+# == Define: python::config
+#
+# Optionally installs the gunicorn service
+#
+# === Examples
+#
+# include python::config
+#
+# === Authors
+#
+# Sergey Stankevich
+# Ashley Penney
+# Fotis Gimian
+#
+
class python::config {
Class['python::install'] -> Python::Pip <| |>
@@ -6,17 +21,19 @@ class python::config {
Python::Virtualenv <| |> -> Python::Pip <| |>
- if $python::gunicorn {
- Class['python::install'] -> Python::Gunicorn <| |>
+ if $python::manage_gunicorn {
+ if $python::gunicorn {
+ Class['python::install'] -> Python::Gunicorn <| |>
- Python::Gunicorn <| |> ~> Service['gunicorn']
+ Python::Gunicorn <| |> ~> Service['gunicorn']
- service { 'gunicorn':
- ensure => running,
- enable => true,
- hasrestart => true,
- hasstatus => false,
- pattern => '/usr/bin/gunicorn',
+ service { 'gunicorn':
+ ensure => running,
+ enable => true,
+ hasrestart => true,
+ hasstatus => false,
+ pattern => '/usr/bin/gunicorn',
+ }
}
}