resultsdb settings.py: Allow stg send fedmsgs
This commit is contained in:
parent
c6acc3bfdb
commit
22a9d03240
1 changed files with 4 additions and 0 deletions
|
@ -1,16 +1,20 @@
|
||||||
{%- if deployment_type == 'prod' %}
|
{%- if deployment_type == 'prod' %}
|
||||||
SECRET_KEY = '{{ prod_resultsdb_secret_key }}'
|
SECRET_KEY = '{{ prod_resultsdb_secret_key }}'
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ prod_resultsdb_db_user }}:{{ prod_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ prod_resultsdb_db_user }}:{{ prod_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
||||||
|
FEDMSG_PUBLISH = False
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- if deployment_type == 'stg' %}
|
{%- if deployment_type == 'stg' %}
|
||||||
SECRET_KEY = '{{ stg_resultsdb_secret_key }}'
|
SECRET_KEY = '{{ stg_resultsdb_secret_key }}'
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ stg_resultsdb_db_user }}:{{ stg_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ stg_resultsdb_db_user }}:{{ stg_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
||||||
|
FEDMSG_PUBLISH = True
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- if deployment_type == 'local' or deployment_type == 'dev'%}
|
{%- if deployment_type == 'local' or deployment_type == 'dev'%}
|
||||||
SECRET_KEY = '{{ resultsdb_secret_key }}'
|
SECRET_KEY = '{{ resultsdb_secret_key }}'
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ resultsdb_db_user }}:{{ resultsdb_db_password }}@{{ resultsdb_db_host_machine }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ resultsdb_db_user }}:{{ resultsdb_db_password }}@{{ resultsdb_db_host_machine }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
||||||
|
FEDMSG_PUBLISH = False
|
||||||
{% endif %}
|
{% endif %}
|
||||||
FILE_LOGGING = False
|
FILE_LOGGING = False
|
||||||
LOGFILR = '/var/log/resultsdb/resultsdb.log'
|
LOGFILR = '/var/log/resultsdb/resultsdb.log'
|
||||||
SYSLOG_LOGGING = False
|
SYSLOG_LOGGING = False
|
||||||
STREAM_LOGGING = True
|
STREAM_LOGGING = True
|
||||||
|
FEDMSG_MODNAME = 'taskotron'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue