commit | 17726aeb011416bf5bb577790832521251daab41 | [log] [tgz] |
---|---|---|
author | Michal Kobus <mkobus@mirantis.com> | Tue Nov 27 12:59:55 2018 +0100 |
committer | Michal Kobus <mkobus@mirantis.com> | Tue Nov 27 14:02:50 2018 +0100 |
tree | 23a67417d01ced7435da5f1737519175991f2fb9 | |
parent | ee36c42d5edbf746c08c6096e1475c02c78ec695 [diff] |
Add production settings + correct setting sandbox_enabled Change-Id: I92bd99676fe0d3b4bc0de10e180e5a2e82ab2ef7 Related-bug: PROD-24880 (PROD:24880)
Prometheus Alertmanager webhook receiver sending alert notification to Salesforce.
Install Python dependencies:
$ virtualenv venv $ venv/bin/pip install -e . $ source sf_notifier/vars/development
Add to settings/development.py
credentials for your Salesforce customer (not engineering) account:
SF_CONFIG = { 'AUTH_URL': 'xxx', 'USERNAME': 'xxx', 'PASSWORD': 'xxx', 'ORGANIZATION_ID': 'xxx', 'ENVIRONMENT_ID': 'xxx', 'SANDBOX_ENABLED': True }
You may also specify environment variables to override Python settings:
export SFDC_AUTH_URL="xxx" export SFDC_USERNAME="xxx" export SFDC_PASSWORD="xxx" export SFDC_ORGANIZATION_ID="xxx" export SFDC_ENVIRONMENT_ID="xxx" export SFDC_SANDBOX_ENABLED=true
Run server:
$ venv/bin/flask run
Check in browser:
http://127.0.0.1:5000/health