test(pillar/repo): avoid alertmanager config where newer than package

* `smtp_hello` (v0.8.0):
  - a566036015
* `http_config` (v0.15.0-rc.0):
  - d678022fea
This commit is contained in:
Imran Iqbal 2021-02-27 21:46:23 +00:00
parent 35fad9bca6
commit 83efb0b434
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@ ignore: |
test/**/states/**/*.sls test/**/states/**/*.sls
.kitchen/ .kitchen/
prometheus/osfamilymap.yaml prometheus/osfamilymap.yaml
test/salt/pillar/repo.sls
yaml-files: yaml-files:
# Default settings # Default settings

View File

@ -49,10 +49,12 @@ prometheus:
smtp_from: 'alertmanager@example.org' smtp_from: 'alertmanager@example.org'
smtp_auth_username: 'alertmanager' smtp_auth_username: 'alertmanager'
smtp_auth_password: "multiline\nmysecret" smtp_auth_password: "multiline\nmysecret"
smtp_hello: "host.example.org"
slack_api_url: "http://mysecret.example.com/" slack_api_url: "http://mysecret.example.com/"
{%- if grains.get('oscodename', '') not in ['stretch', 'bionic'] %}
smtp_hello: "host.example.org"
http_config: http_config:
proxy_url: 'http://127.0.0.1:1025' proxy_url: 'http://127.0.0.1:1025'
{%- endif %}
route: route:
group_by: ['alertname', 'cluster', 'service'] group_by: ['alertname', 'cluster', 'service']
group_wait: 30s group_wait: 30s