Forge Home

pe_console_letsencrypt

Sets up the Puppet console to use letsencrypt provided certificates

287 downloads

287 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Mar 30th 2023
This version is compatible with:
  • Puppet Enterprise 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
  • Puppet >= 6.21.0 < 8.0.0
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'albatrossflavour-pe_console_letsencrypt', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add albatrossflavour-pe_console_letsencrypt
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install albatrossflavour-pe_console_letsencrypt --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

albatrossflavour/pe_console_letsencrypt — version 0.1.0 Mar 30th 2023

pe_console_letsencrypt

Table of Contents

  1. Description
  2. Setup - The basics of getting started with pe_console_letsencrypt
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Managing the Puppet console's SSL certificates can be automated, but it's not straightforward if you want them to be managed by Let's Encrypt.

This module will allow you request, install, and manage valid SSL certs for your console, via Let's Encrypt.

It does require that port 80 on your puppet server is accessible from the internet, and that your puppet servers has a publicly resolvable DNS name.

Setup

What pe_console_letsencrypt affects

The module will replace the autogenerated, self-signed, SSL certificates used by default. These certs are usually found in /etc/puppetlabs/puppet/ssl.

It uses the letsencrypt module from Vox Pupuli to do the hard lifting.

Setup Requirements

You MUST disable the default http_redirect vhost which is created as part of a PE install. This can be done by setting the following value in the puppet server's hiera: puppet_enterprise::profile::console::proxy::http_redirect::enable_http_redirect: false

The value can also be set in the Puppet console by adding it as "Configuration data" against the PE Console node group.

The module will check that it is disabled and will cause a catalog compilation failure if it isn't.

You should also ensure you're not specifying any certificates in hiera. Check the key puppet_enterprise::profile::console for any values matching browser_ssl_cert and browser_ssl_private_key.

Beginning with pe_console_letsencrypt

Usage

At the very basic level, you can simply:

  • Add the module and dependencies to your Puppetfile
  • Add the following hiera to common.yaml : puppet_enterprise::profile::console::proxy::http_redirect::enable_http_redirect: false
  • Classify your puppet server with : pe_console_letsencrypt

Limitations

Only works with Puppet Enterprise

Development

Fork, develop, submit a pull request

Please make sure all pull requests include testing and that the tests pass