mcleanholmes / cert-formula

Deploy certificates.

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Deploy certificates.

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html


Languages

Language:SaltStack 43.9%Language:Ruby 26.7%Language:Python 16.1%Language:HTML 13.2%