2023-05-07 13:15:45 +02:00
|
|
|
---
|
2020-03-04 14:03:35 +01:00
|
|
|
{% set gvaappname = salt['pillar.get']('gnuviechadmin:appname') %}
|
2020-03-04 00:10:16 +01:00
|
|
|
{% 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:
|
2023-05-07 13:15:45 +02:00
|
|
|
- python.poetry
|
2020-03-04 00:49:58 +01:00
|
|
|
|
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:
|
2023-05-07 13:15:45 +02:00
|
|
|
- python3-dev
|
2016-01-29 18:34:40 +01:00
|
|
|
- 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
|
2020-03-04 14:03:35 +01:00
|
|
|
- unless: ldapsearch -Y EXTERNAL -H ldapi:// -b "{{ salt['pillar.get']('gnuviechadmin:ldap_base_dn') }}" "cn={{ salt['pillar.get']('gnuviechadmin:gvaldap:ldap_admin_user') }}" | grep -q numEntries
|