Merge "Extract init of server01 into postgres.client"
diff --git a/postgresql/client/init.yml b/postgresql/client/init.yml
new file mode 100644
index 0000000..95fdcdb
--- /dev/null
+++ b/postgresql/client/init.yml
@@ -0,0 +1,15 @@
+parameters:
+ _param:
+ postgresql_client_user: none
+ postgresql_client_password: none
+ postgresql_client_host: ${_param:control_vip_address}
+ postgresql_client_port: 5432
+ postgresql:
+ client:
+ server:
+ server01:
+ admin:
+ host: ${_param:postgresql_client_host}
+ port: ${_param:postgresql_client_port}
+ user: ${_param:postgresql_client_user}
+ password: ${_param:postgresql_client_password}
diff --git a/postgresql/client/pushkin.yml b/postgresql/client/pushkin.yml
index 12b5906..d768464 100644
--- a/postgresql/client/pushkin.yml
+++ b/postgresql/client/pushkin.yml
@@ -1,18 +1,14 @@
+classes:
+ - system.postgresql.client
parameters:
_param:
pushkin_db_host: ${_param:haproxy_postgresql_bind_host}
- pushkin_db_port: ${_param:haproxy_postgresql_bind_port}
pushkin_db_user: pushkin
pushkin_db_user_password: pushkin
postgresql:
client:
server:
server01:
- admin:
- host: ${_param:pushkin_db_host}
- port: ${_param:pushkin_db_port}
- user: ${_param:postgresql_admin_user}
- password: ${_param:postgresql_admin_user_password}
database:
pushkin:
enabled: true
diff --git a/postgresql/client/security_monkey.yml b/postgresql/client/security_monkey.yml
index 428753d..43e48d2 100644
--- a/postgresql/client/security_monkey.yml
+++ b/postgresql/client/security_monkey.yml
@@ -1,18 +1,14 @@
+classes:
+ - system.postgresql.client
parameters:
_param:
secmonkey_db_host: ${_param:haproxy_postgresql_bind_host}
- secmonkey_db_port: ${_param:haproxy_postgresql_bind_port}
secmonkey_db_user: secmonkey
secmonkey_db_user_password: secmonkey
postgresql:
client:
server:
server01:
- admin:
- host: ${_param:secmonkey_db_host}
- port: ${_param:secmonkey_db_port}
- user: ${_param:postgresql_admin_user}
- password: ${_param:postgresql_admin_user_password}
database:
secmonkey:
enabled: true