-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
Describe the Bug
Whenever a new store is created, a command is executed to create a new store. If you specify, JKS as storetype, you still get PKCS12 as type.
Expected Behavior
The store type is JKS.
Steps to Reproduce
1, Create the following configuration:
java_ks { 'some_alias':
ensure => latest,
target => '/some_path',
password => 'some_password',
certificate_content => '...'
storetype => 'jks'
}
- Run puppet and make sure the store does not exist yet.
Environment
- Java_ks version 4.3.1
- Puppet version 6.27.0
- Linux RHEL 7
Additional Context
I found the issue in the code. See keytool.rb function def create. Based on the storetype different code is executed. The else case is done when storetype is jks, but no storetype is set in this command. Adding it would solve the issue.