blob: bf010131941bd1cb2ad022daab95789b63127fb1 [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
Vladislav Naumovfe2c0aa2017-08-30 19:31:15 +03007 webhook_login_id: 13
8 webhook_application_id: 24
9 postgresql:
10 client:
11 server:
12 server01:
13 database:
Mikhail Ivanovcd2359a2018-04-18 17:49:01 +040014 pushkin:
Vladislav Naumovfe2c0aa2017-08-30 19:31:15 +030015 init:
16 maintenance_db: pushkin
17 force: true
18 queries:
19 - INSERT INTO login VALUES (${_param:webhook_login_id}, ${_param:webhook_application_id}) ON CONFLICT (id) DO UPDATE SET id = excluded.id;
20 - 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;