diff options
-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, } |