Skip to content

myii/cert-formula

 
 

Repository files navigation

cert

https://travis-ci.org/saltstack-formulas/cert-formula.svg?branch=master

Formula to deploy certificates.

Available states

Deploys or removes given certificates and keys.

Example

Put certificates to /srv/salt/files/cert/ or any other cert directory under file_roots (this configuration can be changed with pillar) and list them in pillar. Private keys are deployed via pillar. See cert/pillar.example.

Available modules

A helper function to find certificate files that match certificate contents. Useful if a certificate file gets renamed to something you don't remember and have trouble finding a certificate you wish to remove.

Example

Example that finds all certificate files in /usr/local/share/ca-certificates matching the certificate contents found in the pillar data in cert:certlist:cert.filename:cert

salt-call cert_formula_helper.get_filenames_matching_content /usr/local/share/ca-certificates  pillar_key="cert:certlist:cert.filename:cert"

Testing

For integration testing, use kitchen

# Bundler is used to ensure correct library versions
bundle exec kitchen test

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 29.3%
  • SaltStack 28.4%
  • Ruby 19.1%
  • Python 9.3%
  • HTML 8.0%
  • Shell 5.9%