Jan Dittberner
2da305fb5f
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.
17 lines
491 B
Text
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
|