gvasalt/states/gnuviechadmin/gvaweb.sls

18 lines
491 B
Text
Raw Normal View History

{% set gvaappname = salt['grains.get']('gnuviechadmin:appname') %}
{% set purpose = "for website configuration management" %}
{% from 'gnuviechadmin/gvaapp_macros.sls' import create_celery_worker with context %}
include:
- base
- python.pipenv
- python.virtualenv
{{ create_celery_worker(gvaappname, purpose) }}
/etc/sudoers.d/{{ gvaappname }}:
file.managed:
- user: root
- group: root
- source: salt://gnuviechadmin/{{ gvaappname }}/sudoers
- require:
- pkg: sudo