blob: 8e413da94210f3b055af48ad2d7757e8420dd347 [file] [log] [blame]
Vladislav Naumovfe2c0aa2017-08-30 19:31:15 +03001classes:
2 - system.postgresql.client
3parameters:
4 _param:
5 alertmanager_db_host: ${_param:haproxy_postgresql_bind_host}
6 alertmanager_db_user: alertmanager
7 alertmanager_db_user_password: alertmanager
8 webhook_login_id: 13
9 webhook_application_id: 24
10 postgresql:
11 client:
12 server:
13 server01:
14 database:
Mikhail Ivanovcd2359a2018-04-18 17:49:01 +040015 pushkin:
Vladislav Naumovfe2c0aa2017-08-30 19:31:15 +030016 init:
17 maintenance_db: pushkin
18 force: true
19 queries:
20 - INSERT INTO login VALUES (${_param:webhook_login_id}, ${_param:webhook_application_id}) ON CONFLICT (id) DO UPDATE SET id = excluded.id;
21 - INSERT INTO device VALUES (${_param:webhook_application_id}, ${_param:webhook_login_id}, 42, 'stacklight_alertmanager', NULL, 1, NULL) ON CONFLICT (id) DO UPDATE SET id = excluded.id;