From ed137893babebabdfdb5adf44d1a52272093ce8b Mon Sep 17 00:00:00 2001 From: Sergey Stankevich Date: Sun, 9 Sep 2012 18:36:30 -0400 Subject: Initial import --- manifests/config.pp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 manifests/config.pp (limited to 'manifests/config.pp') 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', + } + } + +} -- cgit v1.2.3