forked from latenighttales/alcali-formula
-
Notifications
You must be signed in to change notification settings - Fork 20
/
pillar.example
61 lines (56 loc) · 2.11 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
alcali:
service:
name: alcali
init_delay: null # Gunicorn may take some delay to pop, adjust here
deploy:
repository: https://github.com/latenighttales/alcali.git
rev: v3003.1.0 # You can specify branch or tag
force_reset: False
user: alcali
group: alcali
directory: /opt/alcali
runtime: python3
gunicorn:
name: 'config.wsgi:application'
host: '0.0.0.0'
port: 5000
workers: {{ grains['num_cpus'] }}
timeout: 300
# All the items under this section will be converted into an environment file.
config:
allowed_hosts: '*'
db_backend: mysql
db_name: salt
db_user: alcali
db_pass: alcali
db_host: db
db_port: 3306
master_minion_id: master
secret_key: 'thisisnotagoodsecret.orisit?'
salt_url: 'https://master:8080'
salt_auth: alcali
# auth_backend: ldap
# For Alcali's LDAP settings, go check config/setup_ldap.py
# A complete list of settings can be found here:
# https://django-auth-ldap.readthedocs.io/en/latest/reference.html
# auth_ldap_server_uri: ldap://ldap.example.com:389
# auth_ldap_start_tls: False
# auth_ldap_bind_dn: cn=admin,dc=ldap,dc=example,dc=com
# auth_ldap_bind_password=CHANGEME
# Caution: these to ldapSearch methods below are mutually exclusive:
# - If users can be found by their DN, use (ex. POSIX LDAP), use:
# auth_ldap_user_template_dn: ou=uid=%(user)s,ou=Users,dc=example,dc=com
# - else if users can't be found by their DN (ex. Active Directory), use:
# auth_ldap_user_base_cn: ou=People,dc=example,dc=com
# auth_ldap_user_search_filter: "(sAMAccountName=%(user)s)"
# Simple group restrictions
# auth_ldap_require_group: cn=enabled,ou=alcali,ou=groups,dc=example,dc=com
# auth_ldap_deny_group: cn=disabled,ou=alcali,ou=groups,dc=example,dc=com
# Default mappings: django attributes <-> LDAP user attributes
# auth_ldap_user_attr_map_username: sAMAccountName
# auth_ldap_user_attr_map_first_name: givenName
# auth_ldap_user_attr_map_last_name: sn
# auth_ldap_user_attr_map_email: mail