diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-07 23:37:53 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-07 23:37:53 +0200 |
commit | b54c7754d915b5b379ef1fac3d47e591f0bdcff1 (patch) | |
tree | 0194a2350b0fb9e94bbbd9af585f6db2ae010940 | |
parent | Hopefully fix uwsgi + pgadmin. (diff) | |
download | uwsgi-b54c7754d915b5b379ef1fac3d47e591f0bdcff1.tar.gz uwsgi-b54c7754d915b5b379ef1fac3d47e591f0bdcff1.tar.xz |
uwsgi work.
Diffstat (limited to '')
-rw-r--r-- | manifests/emperor.pp | 5 | ||||
-rw-r--r-- | manifests/vassal.pp | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/manifests/emperor.pp b/manifests/emperor.pp index d1adbb7..f1ad5bf 100644 --- a/manifests/emperor.pp +++ b/manifests/emperor.pp @@ -3,6 +3,11 @@ class uwsgi::emperor ( Optional[String] $listen = undef, ) { + # TODO user, and group + # arch package created group uwsgi (with hardcoded gid 53) + # + # TODO master? + include ::uwsgi::package file { $path: diff --git a/manifests/vassal.pp b/manifests/vassal.pp index 0d5af77..271147d 100644 --- a/manifests/vassal.pp +++ b/manifests/vassal.pp @@ -1,10 +1,12 @@ define uwsgi::vassal ( String $path, String $vassal_name = $name, + # https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html#ini-files + Enum['ini', 'xml', 'json', 'yaml'] $type = stdlib::extname($path), # TODO strip leading period, and handle empty string Enum['present', 'absent'] $ensure = 'present', ) { include ::uwsgi::emperor - file { "${uwsgi::emperor::path}/${vassal_name}.ini": + file { "${uwsgi::emperor::path}/${name}.${type}": ensure => $ensure ? { 'present' => 'link', 'absent' => 'absent' }, target => $path, } |