blob: c47e241da8efc89b396dd8ea2c6433692226fd0f [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
8 postgresql:
9 client:
10 server:
11 server01:
Volodymyr Stoiko085cc1e2017-04-23 14:01:26 +030012 database:
13 secmonkey:
14 enabled: true
15 encoding: 'UTF8'
16 locale: 'en_US'
17 users:
18 - name: ${_param:secmonkey_db_user}
19 password: ${_param:secmonkey_db_user_password}
20 host: ${_param:secmonkey_db_host}
21 createdb: true
22 rights: all privileges
Volodymyr Stoiko0fc5dde2017-05-12 10:23:22 +030023 init:
24 maintenance_db: pushkin
25 force: true
26 queries:
Vladislav Naumov6e349702017-09-20 14:48:04 +030027 - INSERT INTO login VALUES (${_param:secmonkey_login_id}, ${_param:secmonkey_application_id}) ON CONFLICT (id) DO UPDATE SET id = excluded.id;
28 - 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;