Mercurial > repos > other > Puppet
view 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 source
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, } } }