ansible/roles/django-cas/templates/cas/settings_local.py.j2

21 lines
536 B
Django/Jinja

{{ ansible_header | comment }}
SECRET_KEY = '{{ cas_secret_key }}'
# Settings for the CAS server
CAS_LDAP_SERVER = "172.16.10.90"
CAS_LDAP_USER = "cn=cas,ou=service-users,dc=crans,dc=org"
CAS_LDAP_PASSWORD = "{{ cas_ldap_password }}"
CAS_LDAP_BASE_DN = "cn=Utilisateurs,dc=crans,dc=org"
# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'cas',
'HOST': 'pgsql.adm.crans.org',
'USER': 'cas',
'PASSWORD': '{{ cas_database_password }}',
}
}