Access all cluster nodes
This commit is contained in:
parent
e45fc02a01
commit
1a82e90607
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,9 @@ class eid::idm_app (
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$redises = lookup('redis_cluster_nodes', undef, undef, [])
|
$redises = lookup('redis_cluster_nodes', undef, undef, [])
|
||||||
$dbs = lookup('sql_cluster_nodes', undef, undef, undef)
|
$dbs = lookup('mariadb_cluster_nodes', undef, undef, [])
|
||||||
|
$dbs_string = join($dbs,',')
|
||||||
|
|
||||||
$sql_password = lookup('sql_password', undef, undef, undef)
|
$sql_password = lookup('sql_password', undef, undef, undef)
|
||||||
|
|
||||||
ensure_resource('sunet::misc::create_dir', '/opt/idm_app/config/', { owner => 'root', group => 'root', mode => '0750'})
|
ensure_resource('sunet::misc::create_dir', '/opt/idm_app/config/', { owner => 'root', group => 'root', mode => '0750'})
|
||||||
|
|
|
@ -40,6 +40,6 @@ spring:
|
||||||
password: qwerty123
|
password: qwerty123
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mariadb:loadbalance://<%= @dbs %>/idm
|
url: jdbc:mariadb:loadbalance://<%= @dbs_string %>/idm
|
||||||
username: idm
|
username: idm
|
||||||
password: <%= scope.call_function('safe_hiera', ['sql_password']) %>
|
password: <%= scope.call_function('safe_hiera', ['sql_password']) %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue