make sure that we have the infra ca

This commit is contained in:
Johan Wassberg 2024-03-05 12:09:39 +01:00
parent 7e31ea041e
commit 0b5728f1f9
Signed by: jocar
GPG key ID: BE4EC2EEADF2C31B

View file

@ -14,6 +14,11 @@ class eid::idm_app (
mode => '0755',
}
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":