summaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorSergey Stankevich <sergey.stankevich@gmail.com>2012-09-09 18:36:30 -0400
committerSergey Stankevich <sergey.stankevich@gmail.com>2012-09-09 18:36:30 -0400
commited137893babebabdfdb5adf44d1a52272093ce8b (patch)
treef611108dc849fe8f4372aac981d7e242d59b957b /manifests/config.pp
Initial import
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..43da22e
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,24 @@
+class python::config {
+
+ Class['python::install'] -> Python::Pip <| |>
+ Class['python::install'] -> Python::Requirements <| |>
+ Class['python::install'] -> Python::Virtualenv <| |>
+
+ Python::Virtualenv <| |> -> Python::Pip <| |>
+ Python::Virtualenv <| |> -> Python::Requirements <| |>
+
+ if $python::gunicorn {
+ Class['python::install'] -> Python::Gunicorn <| |>
+
+ Python::Gunicorn <| |> ~> Service['gunicorn']
+
+ service { 'gunicorn':
+ ensure => running,
+ enable => true,
+ hasrestart => true,
+ hasstatus => false,
+ pattern => '/usr/bin/gunicorn',
+ }
+ }
+
+}