view modules/python/manifests/gunicorn.pp @ 157:c6b1b42f3e4b puppet-3.6

Move all sites to separate LetsEncrypt certs to make adding future domains easier
author IBBoard <dev@ibboard.co.uk>
date Thu, 30 Mar 2017 20:41:18 +0100
parents 956e484adc12
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,
    }
  }
}