Mercurial > repos > other > Puppet
diff modules/python/manifests/gunicorn.pp @ 0:956e484adc12
Initial public release of Puppet configs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 16 Aug 2014 19:47:38 +0000 |
parents | |
children | c42fb28cff86 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/python/manifests/gunicorn.pp Sat Aug 16 19:47:38 2014 +0000 @@ -0,0 +1,21 @@ +class python::gunicorn($ensure=present, $owner=undef, $group=undef) { + + $rundir = "/var/run/gunicorn" + $logdir = "/var/log/gunicorn" + + if $ensure == "present" { + file { [$rundir, $logdir]: + ensure => directory, + owner => $owner, + group => $group, + } + + } elsif $ensure == 'absent' { + + file { $rundir: + ensure => $ensure, + owner => $owner, + group => $group, + } + } +}