2020-03-04 00:10:16 +01:00
|
|
|
{% set gvaappname = salt['grains.get']('gnuviechadmin:appname') %}
|
|
|
|
{% set purpose = "for LDAP data management" %}
|
|
|
|
{% from 'gnuviechadmin/gvaapp_macros.sls' import create_celery_worker with context %}
|
2020-03-04 00:49:58 +01:00
|
|
|
include:
|
|
|
|
- python.pipenv
|
|
|
|
- python.virtualenv
|
|
|
|
|
2020-03-04 00:10:16 +01:00
|
|
|
{{ create_celery_worker(gvaappname, purpose) }}
|
2016-01-29 18:34:40 +01:00
|
|
|
|
2020-03-04 00:10:16 +01:00
|
|
|
{{ gvaappname }}-dependencies:
|
2016-01-29 18:34:40 +01:00
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
|
|
|
- libldap2-dev
|
|
|
|
- libsasl2-dev
|
|
|
|
- require_in:
|
2020-03-04 00:10:16 +01:00
|
|
|
- cmd: {{ gvaappname }}-requirements
|
2016-01-31 16:34:53 +01:00
|
|
|
|
|
|
|
base-ldap-objects:
|
|
|
|
cmd.script:
|
|
|
|
- source: salt://gnuviechadmin/gvaldap/create_base_ldap_objects.sh
|
|
|
|
- template: jinja
|
2016-09-24 23:53:49 +02:00
|
|
|
- runas: root
|
2016-01-31 16:34:53 +01:00
|
|
|
- unless: ldapsearch -Y EXTERNAL -H ldapi:// -b "{{ salt['pillar.get']('gnuviechadmin:ldap_base_dn') }}" "cn={{ salt['pillar.get']('gnuviechadmin:ldap_admin_user') }}" | grep -q numEntries
|