Puppet Class: uhosting::profiles::uwsgi
- Defined in:
- manifests/profiles/uwsgi.pp
Overview
Class: uhosting::profiles::uwsgi
Installs and manages uWSGI application server in emperor mode
Authors
Tobias Brunner <tobias.brunner@vshn.ch>
Copyright
Copyright 2015 Tobias Brunner, VSHN AG
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/profiles/uwsgi.pp', line 13
class uhosting::profiles::uwsgi {
# We run in Emperor mode!
package { [
'uwsgi-core',
'uwsgi-emperor',
'uwsgi-infrastructure-plugins' ]:
ensure => installed,
} ->
file { '/etc/uwsgi-emperor/emperor.ini':
source => 'puppet:///modules/uhosting/emperor.ini',
owner => 'root',
group => 'root',
mode => '0644',
} ->
file { '/etc/uwsgi-emperor/vassals':
ensure => directory,
purge => true,
recurse => true,
} ~>
service { 'uwsgi-emperor':
ensure => running,
enable => true,
}
# a world accessible spooler dir
file { '/var/spool/uwsgi':
ensure => directory,
mode => '0777',
}
}
|