Skip to content
Snippets Groups Projects
Commit 94a9d32b authored by Jupiter Hu's avatar Jupiter Hu
Browse files

change account org name and secrent key to variables

parent ea568d51
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,11 @@ ...@@ -133,6 +133,11 @@
- karaage-software - karaage-software
- karaage-usage - karaage-usage
- karaage-cluster-tools - 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 # TODO: Fix it
name: "Check DB tables has been created or not" name: "Check DB tables has been created or not"
......
...@@ -168,12 +168,7 @@ LANGUAGE_CODE = 'en-au' ...@@ -168,12 +168,7 @@ LANGUAGE_CODE = 'en-au'
# A secret key for a particular Django installation. This is used to provide # A secret key for a particular Django installation. This is used to provide
# cryptographic signing, and should be set to a unique, unpredictable value. # cryptographic signing, and should be set to a unique, unpredictable value.
{% if karaageSecretKey is defined %} SECRET_KEY = ''
SECRET_KEY = '{{ karaageSecretKey }}'
{% else %}
SECRET_KEY = 'default_ZT8VsL5CoURmUbui2hDrmEK0AwPvtR5h'
{% endif %}
# A data structure containing configuration information. The contents of this # A data structure containing configuration information. The contents of this
# data structure will be passed as the argument to the configuration method # data structure will be passed as the argument to the configuration method
...@@ -275,7 +270,7 @@ LOGGING = { ...@@ -275,7 +270,7 @@ LOGGING = {
ACCOUNTS_EMAIL = '{{ karaageAdminEmail }}' ACCOUNTS_EMAIL = '{{ karaageAdminEmail }}'
# This organisation name, used in outgoing emails. # This organisation name, used in outgoing emails.
ACCOUNTS_ORG_NAME = 'Example' ACCOUNTS_ORG_NAME = '{{ karaageAcountName }}'
# Registration base URL - Used in email templates # Registration base URL - Used in email templates
# Uncomment to override default # Uncomment to override default
......
--- ---
apache_user: "{% if ansible_os_family == 'RedHat' %}apache{% else %}www-data{% endif %}" 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