gvasalt/states/gnuviechadmin/gvaweb.sls
Jan Dittberner 2da305fb5f Update salt state for gvaweb
This commit improves the gvaweb celery worker setup based on the work
that has been done for gvaldap before. Old files have been removed and
the setup uses the macros from gnuviechadmin/gvaapp_macros.sls.
2020-03-04 00:49:58 +01:00

17 lines
491 B
Text

{% 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