Configure SQL
This commit is contained in:
parent
28dc0bab70
commit
cc43ea5b7f
2 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,9 @@ class eid::idm_app (
|
|||
) {
|
||||
|
||||
$redises = lookup('redis_cluster_nodes', undef, undef, [])
|
||||
$dbs = lookup('sql_cluster_nodes', 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'})
|
||||
file { '/opt/idm_app/config/idm.yml':
|
||||
content => template('eid/idm/idm.yml.erb'),
|
||||
|
|
|
@ -38,3 +38,8 @@ spring:
|
|||
trust:
|
||||
resource: file:/etc/ssl/certs/infra.p12
|
||||
password: qwerty123
|
||||
|
||||
datasource:
|
||||
url: jdbc:mariadb:loadbalance://<%= @dbs %>/idm
|
||||
username: idm
|
||||
password: <%= scope.call_function('safe_hiera', ['sql_password']) %>
|
||||
|
|
Loading…
Add table
Reference in a new issue