Ilya Kharin | f1398bc | 2017-05-25 13:22:39 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.postgresql.client |
Volodymyr Stoiko | 085cc1e | 2017-04-23 14:01:26 +0300 | [diff] [blame] | 3 | parameters: |
| 4 | _param: |
| 5 | secmonkey_db_host: ${_param:haproxy_postgresql_bind_host} |
Volodymyr Stoiko | 085cc1e | 2017-04-23 14:01:26 +0300 | [diff] [blame] | 6 | secmonkey_db_user: secmonkey |
| 7 | secmonkey_db_user_password: secmonkey |
Vladislav Naumov | 6e34970 | 2017-09-20 14:48:04 +0300 | [diff] [blame] | 8 | secmonkey_login_id: 11 |
| 9 | secmonkey_application_id: 1 |
Volodymyr Stoiko | 085cc1e | 2017-04-23 14:01:26 +0300 | [diff] [blame] | 10 | postgresql: |
| 11 | client: |
| 12 | server: |
| 13 | server01: |
Volodymyr Stoiko | 085cc1e | 2017-04-23 14:01:26 +0300 | [diff] [blame] | 14 | 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 Stoiko | 0fc5dde | 2017-05-12 10:23:22 +0300 | [diff] [blame] | 25 | init: |
| 26 | maintenance_db: pushkin |
| 27 | force: true |
| 28 | queries: |
Vladislav Naumov | 6e34970 | 2017-09-20 14:48:04 +0300 | [diff] [blame] | 29 | - 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; |