Skip to content
Snippets Groups Projects
Commit c8ae66e1 authored by Chris Hines's avatar Chris Hines
Browse files

Merge pull request #107 from CVL-GitHub/hpcidbranch3

change account org name and secrent key to variables
parents be7ae3c9 94a9d32b
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,11 @@
- karaage-software
- karaage-usage
- karaage-cluster-tools
-
name: "Set Secret Key"
lineinfile: dest=/etc/karaage3/settings.py regexp="SECRET_KEY = ''" line="SECRET_KEY = '{{ karaageSecretKey }}'" state=present
sudo: true
-
# TODO: Fix it
name: "Check DB tables has been created or not"
......
......@@ -168,12 +168,7 @@ LANGUAGE_CODE = 'en-au'
# A secret key for a particular Django installation. This is used to provide
# cryptographic signing, and should be set to a unique, unpredictable value.
{% if karaageSecretKey is defined %}
SECRET_KEY = '{{ karaageSecretKey }}'
{% else %}
SECRET_KEY = 'default_ZT8VsL5CoURmUbui2hDrmEK0AwPvtR5h'
{% endif %}
SECRET_KEY = ''
# A data structure containing configuration information. The contents of this
# data structure will be passed as the argument to the configuration method
......@@ -275,7 +270,7 @@ LOGGING = {
ACCOUNTS_EMAIL = '{{ karaageAdminEmail }}'
# This organisation name, used in outgoing emails.
ACCOUNTS_ORG_NAME = 'Example'
ACCOUNTS_ORG_NAME = '{{ karaageAcountName }}'
# Registration base URL - Used in email templates
# Uncomment to override default
......
---
apache_user: "{% if ansible_os_family == 'RedHat' %}apache{% else %}www-data{% endif %}"
karaageSecretKey: "imkaraage"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment