Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.0.0 < 9.0.0
- Archlinux , , , ,
This module has been deprecated by its author since Jul 2nd 2024.
The author has suggested puppet-ca_cert as its replacement.
Start using this module
Documentation
ca_cert
Overview
The ca_cert module tries to provide a simple way to manage Certificate Authority (CA) certificates on a Linux system. (Patches are welcome to help support other operating sytems)
Usage
After the ca_cert
module has been declared add CA certificates with the ca_cert::ca
definition.
ca_cert
ca_cert
ensures that the locations and tools needed to manage the CAs are present on
your system.
Optional parameters:
always_update_certs
: Run your system's update CA command even when there are no updates needed. (defaults to false)purge_unmanaged_CAs
: Purge non-OS default CAs from the system. This will only remove CAs that might be installed using your OS's default management method. (defaults to false)install_package
: Whether or not this module should install the ca_certificates package. The package contains the default trusted (typically Mozilla) CA certificates, as well as the tools required for this module to manage other installed CA certificates. (defaults to true)ca_certs
: A hash of certificates you would like added. These may also be defined by declaringca_cert::ca
once for each certificate.force_enable
: For RHEL 6 and earlier. When set to true, creates backups of the legacy config, removes it, and creates symlinks to the new config.
ca_cert::ca
CAs can be added as URLs, text, or a puppet managed file
ca_cert::ca { 'GlobalSign-OrgSSL-Intermediate':
ensure => 'trusted',
source => 'http://secure.globalsign.com/cacert/gsorganizationvalsha2g2r1.crt',
}
ca_cert::ca { 'GlobalSign-OrgSSL-Intermediate':
ensure => 'trusted',
source => 'puppet:///modules/profiles/CAs/InCommon.crt',
}
ca_cert::ca
:
-
ca_text
: The text of the CA certificate to install. Required if text is the source (default). If a different source is specified this parameter is ignored. -
source
: Where the CA certificate should be retrieved from. text, http, https, ftp, file, and puppet protocols/sources are supported. If text, then the ca_text parameter is also required. Defaults to text.**Warning**: certificates delivered via http, https, or ftp won't be updated if the upstream source changes. **SLES 11 Specific Detail**: Cert File must be in `.pem` format
-
ensure
: Whether or not the CA certificate should be on the system or not. Valid values are trusted, present, distrusted, and absent. Trusted is the same as present. On Debian systems untrusted is the same as absent. On RedHat based systems untrusted certificates are placed in a different path before calling the update command. (defaults to trusted) -
verify_https_cert
: If a certificate is retrieved over HTTPS, whether or not the server's certificate should be validated against the fetching machine's trusted CA list or not. (defaults to true) -
checksum
: The file will be downloaded if the checksum does not match this value. See thechecksum
parameter at lwf/puppet-remote_file for details.
Supported Platforms
This module has been tested on Ubuntu 14.04, Ubuntu 12.04, CentOS 6, SLES 11, SLES 12, OpenSuSE 13.1, OpenSuSE 13.2 and OpenSuSE 42.1 Leap.
Changelog
Unreleased
v2.5.0
- Add support for Kali Linux #82
- Switch to namespaced functions for stdlib #83
- Improve testing capabilities #79, #84
v2.4.0
- Support Puppet 8 by replacing references to legacy facts #75
- Add support for RHEL8 #73
- Add support for Solaris 11 #72
- Add support for AIX #71
- Use puppet/archive instead of remote_file #69
v2.3.2
- Fix dependency setting #70
v2.3.1
- Update stdlib dependency #68
v2.3.0
v2.2.0
- Allow
package_ensure
to be set to latest #62
v2.1.5
- Remove dependency on deprecated string check #59
v2.1.4
- Upgrade PDK
- Note support for puppetlabs/stdlib <= 7.0
v2.1.3
- Fix dependency issue with dropping certificate #55
v2.1.2
- Fix an accidental dependency cycle #50
v2.1.1
- Fix the package dependency when
install_package
is set to false #47 - Update the stdlib dependency constraint. #48
v2.1.0
- Enable vs. force-enable for RHEL versions 6 and older #45
v2.0.0
This release has potentially breaking changes
- Move type validation from validate_type to Puppet data types (removes support for Puppet 3) #42
v1.8.0
- Don't run enable_ca_trust on RHEL7 #37
v1.7.1
- Set better default folder permissions #37
v1.7.0
- CA File modes passed as parameters #33
- Use remote_file instead of exec with curl/wget #32
- Don't purge managed CAs #30
v1.6.1
v1.6.0
- Add SLES10 support (exodusftw) #22
Dependencies
- puppetlabs/stdlib (>= 9.0.0 < 10.0.0)
- puppet/archive (>= 6.0.0 < 8.0.0)