mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
nuancier: split out prod and stg access/passwords.
Currently both prod and stg were using the same credentials. Move to using different for each. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -11,7 +11,11 @@ script_location = /usr/share/nuancier/alembic
|
||||
# the 'revision' command, regardless of autogenerate
|
||||
# revision_environment = false
|
||||
|
||||
{% if env == "staging" %}
|
||||
sqlalchemy.url = postgresql://{{ nuancier_stg_db_admin_user }}:{{ nuancier_stg_db_admin_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}
|
||||
{% else %}
|
||||
sqlalchemy.url = postgresql://{{ nuancier_db_admin_user }}:{{ nuancier_db_admin_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
# Logging configuration
|
||||
|
||||
@@ -3,10 +3,18 @@
|
||||
import os
|
||||
|
||||
### Secret key for the Flask application
|
||||
{% if env == "staging" %}
|
||||
SECRET_KEY='{{ nuancier_stg_secret_key }}'
|
||||
{% else %}
|
||||
SECRET_KEY='{{ nuancier_secret_key }}'
|
||||
{% endif %}
|
||||
|
||||
### url to the database server:
|
||||
{% if env == "staging" %}
|
||||
DB_URL='postgresql://{{ nuancier_stg_db_user }}:{{ nuancier_stg_db_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}'
|
||||
{% else %}
|
||||
DB_URL='postgresql://{{ nuancier_db_user }}:{{ nuancier_db_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}'
|
||||
{% endif %}
|
||||
|
||||
### The FAS groups in which the admin of nuancier are
|
||||
### This can either be a single group or multiple, defined between
|
||||
|
||||
@@ -3,10 +3,18 @@
|
||||
import os
|
||||
|
||||
### Secret key for the Flask application
|
||||
{% if env == "staging" %}
|
||||
SECRET_KEY='{{ nuancier_stg_secret_key }}'
|
||||
{% else %}
|
||||
SECRET_KEY='{{ nuancier_secret_key }}'
|
||||
{% endif %}
|
||||
|
||||
### url to the database server:
|
||||
{% if env == "staging" %}
|
||||
DB_URL='postgresql://{{ nuancier_stg_db_admin_user }}:{{ nuancier_stg_db_admin_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}'
|
||||
{% else %}
|
||||
DB_URL='postgresql://{{ nuancier_db_admin_user }}:{{ nuancier_db_admin_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}'
|
||||
{% endif %}
|
||||
|
||||
### The FAS groups in which the admin of nuancier are
|
||||
### This can either be a single group or multiple, defined between
|
||||
|
||||
Reference in New Issue
Block a user