Coder Social home page Coder Social logo

puppet-ssl's Introduction

SSL

Define common SSL data and configuration

This is primarily an entry point for platform agnostic SSL data.

Usage

To simply mange the directories associated with SSL on a given system, just include the ssl class. This module can also deploy SSL certificates from your master to nodes, including combining them as haproxy and nginx prefer.

To simply manage directories:

include ssl

If you have a module that needs to use these SSL directories, you can simply reference the variables using the full name.

$ssl::ssl_dir

This is useful if you want to deploy certs, or just have a more consistent, repeatable SSL deployment.

To have this module deploy a certificate:

include ssl
ssl::cert {'puppetlabs_wildcard': }

This will copy puppetlabs_wildcard.crt, puppetlabs_wildcard.key, puppetlabs_wildcard_chain.crt, and puppetlabs_wildcard_inter.crt to ssl::params::ssl_certdir.

If you're using haproxy, these certs can be combined into one file:

include ssl
ssl::cert {'puppetlabs_wildcard':
  concat => 'haproxy',
}

More examples are provided in manifests/cert.pp.

hiera

This module was using the hiera() functions to do the lookup that has now been replaced with the ssl::params class. Now to support new platforms, you just need extend the ssl::params class. What follows is being deprecated and should no longer be used. PLEASE UPDATE YOUR MANIFESTS.

Deprecated hiera usage

Hiera is the main place to inject data into this module. To make it work out of the box you'll need to have the following hierarchy, or something equivalent:

----
hierarchy:
  - %{osfamily}

You'll also need the following files:

----
# hiera_dir/Debian.yaml
ssl::params::ssl_path: '/etc/ssl'
ssl::params::ssl_cert_file: %{ssl_path}/certs/ssl-cert-snakeoil.pem
ssl::params::ssl_key_file: %{ssl_path}/private/ssl-cert-snakeoil.key

---
# hiera_dir/RedHat.yaml
ssl::params::ssl_path: '/etc/pki'
ssl::params::ssl_cert_file: %{ssl_path}/tls/certs/localhost.crt
ssl::params::ssl_key_file: %{ssl_path}/tls/private/localhost.key

This will set up the system to use the system's self signed ssl certs.

puppet-ssl's People

Contributors

actown avatar adrienthebo avatar jabley avatar ody avatar zachfi avatar ziaunys avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.