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}/${name}.${type}": ensure => $ensure ? { 'present' => 'link', 'absent' => 'absent' }, target => $path, } }