A puppet module for managing (non-system) CA certificates.
Перейти к файлу
Phil Fenstermacher 260992d67b Increment version to 1.6.1 2017-01-29 13:28:17 -05:00
manifests Prevent empty files from being created when a wget download fails (Fixes #25) 2017-01-28 23:30:13 -05:00
spec Update tests for change to wget command 2017-01-29 13:22:11 -05:00
tests Initial commit. 2014-05-09 15:44:09 -04:00
.fixtures.yml Initial commit. 2014-05-09 15:44:09 -04:00
.gitignore Add beaker test for ca_text parameter and use electrical's docker image for testing 2015-02-26 16:29:27 -05:00
.travis.yml Fix a typo in ruby test version 2016-10-26 16:41:35 -04:00
CHANGELOG.md Increment version to 1.6.1 2017-01-29 13:28:17 -05:00
Gemfile Remove parallel_spec dependency 2016-10-19 11:39:42 -07:00
README.md Add Support for OpenSuSE 13 and 42 Leap (#14) 2016-09-14 09:28:03 -04:00
Rakefile Remove parallel_spec dependency 2016-10-19 11:39:42 -07:00
metadata.json Increment version to 1.6.1 2017-01-29 13:28:17 -05:00

README.md

ca_cert

Build Status

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 declaring ca_cert::ca once for each certificate.

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)

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.