From a3d87c09d370e3f842a9dd08241e86e26eaf3e06 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Tue, 5 Mar 2024 12:14:34 +0100 Subject: [PATCH] Pass is required by multiple operations --- global/overlay/etc/puppet/modules/eid/manifests/idm_app.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/global/overlay/etc/puppet/modules/eid/manifests/idm_app.pp b/global/overlay/etc/puppet/modules/eid/manifests/idm_app.pp index 8ef7f82c..be3aea23 100644 --- a/global/overlay/etc/puppet/modules/eid/manifests/idm_app.pp +++ b/global/overlay/etc/puppet/modules/eid/manifests/idm_app.pp @@ -19,13 +19,12 @@ class eid::idm_app ( ensure => latest } + $pass = 'qwerty123' exec { 'infra.p12': command => "keytool -import -noprompt -deststorepass ${pass} -file /etc/ssl/certs/infra.crt -keystore /etc/ssl/certs/infra.p12", onlyif => 'test ! -f /etc/ssl/certs/infra.p12' } - # Unwanted password - but hey Java! - $pass = 'qwerty123' exec { "${facts['networking']['fqdn']}_infra.p12": command => "openssl pkcs12 -export -in /etc/ssl/certs/${facts['networking']['fqdn']}_infra.crt -inkey /etc/ssl/private/${facts['networking']['fqdn']}_infra.pem -name 'infra' -out /etc/ssl/private/${facts['networking']['fqdn']}_infra.p12 -passout pass:${pass}", onlyif => "test ! -f /etc/ssl/private/${facts['networking']['fqdn']}_infra.p12"