Classes
windows_puppet_certificates
: Add Puppet Master CA and Agent certificates to the Windows Certificate Store.
Defined types
This module takes the Puppet Master CA certificate and Puppet Agent client certificate and imports them into the Windows Certificate Store and marks the private key as Not Exportable. This is useful to allow Windows applications to consume these certificates in a Windows way. For example:
- for client certificate based authentication in EAP in 802.1x
- for automatically trusting the PE Console in web browsers
- for encrypting secrets for the client to consume, for example Hiera eYaml
- for encrypting secrets for the server to consume, for example encrypting Bitlocker keys
include windows_puppet_certificates
class { 'windows_puppet_certificates':
manage_master_cert => true,
manage_client_cert => true,
}
class { 'windows_puppet_certificates':
'confdir_path' => 'c:/programdata/puppetlabs/puppet/etc',
}
The following parameters are available in the windows_puppet_certificates
class.
Data type: Enum['present', 'absent']
Valid options are present
and absent
Default: present
Default value: 'present'
Data type: Boolean
When set to true the module will import the Puppet Master CA certificate into the computer Trusted Root CA certificate store. Default: true
Default value: true
Data type: Boolean
When set to true the module will import the Puppet Client certificate, and private key, into the computer Personal certificate store. Default: false - importing a private key should be an explicit decision.
Default value: false
Data type: Stdlib::Windowspath
The path to the Puppet config directory.
Default: the value of $facts['puppet_cert_paths']['confdir']
Default value: $facts['puppet_cert_paths']['confdir']
The windows_puppet_certificates::windows_certificate class.
The following parameters are available in the windows_puppet_certificates::windows_certificate
defined type.
Data type: Stdlib::Windowspath
The path to the certificate file
Data type: Enum['trusted_root_ca', 'personal']
The type of certificate being acted upon.
Valid values are trusted_root_ca
and personal
Data type: Enum['present']
Currently only present
is supported
Default: present
Default value: 'present'
Data type: Optional[Stdlib::Windowspath]
The path to the key file