blob: a7a341f7dbba0a09f7ba4c6b8440203fa19d47e2 [file] [log] [blame]
Ilya Kharinf1398bc2017-05-25 13:22:39 +04001classes:
2 - system.postgresql.client
Volodymyr Stoiko085cc1e2017-04-23 14:01:26 +03003parameters:
4 _param:
5 secmonkey_db_host: ${_param:haproxy_postgresql_bind_host}
Volodymyr Stoiko085cc1e2017-04-23 14:01:26 +03006 secmonkey_db_user: secmonkey
7 secmonkey_db_user_password: secmonkey
Vladislav Naumov6e349702017-09-20 14:48:04 +03008 secmonkey_login_id: 11
9 secmonkey_application_id: 1
Volodymyr Stoiko085cc1e2017-04-23 14:01:26 +030010 postgresql:
11 client:
12 server:
13 server01:
Volodymyr Stoiko085cc1e2017-04-23 14:01:26 +030014 database:
15 secmonkey:
16 enabled: true
17 encoding: 'UTF8'
18 locale: 'en_US'
19 users:
20 - name: ${_param:secmonkey_db_user}
21 password: ${_param:secmonkey_db_user_password}
22 host: ${_param:secmonkey_db_host}
23 createdb: true
24 rights: all privileges
Volodymyr Stoiko0fc5dde2017-05-12 10:23:22 +030025 init:
26 maintenance_db: pushkin
27 force: true
28 queries:
Vladislav Naumov6e349702017-09-20 14:48:04 +030029 - INSERT INTO login VALUES (${_param:secmonkey_login_id}, ${_param:secmonkey_application_id}) ON CONFLICT (id) DO UPDATE SET id = excluded.id;
30 - INSERT INTO device VALUES (${_param:secmonkey_application_id}, ${_param:secmonkey_login_id}, 42, 'security_audit_service', NULL, 1, NULL) ON CONFLICT (id) DO UPDATE SET id = excluded.id;