Skip to content

Instantly share code, notes, and snippets.

View jay7x's full-sized avatar

Yury Bushmelev jay7x

View GitHub Profile
@ananace
ananace / fake_aio.pp
Created March 1, 2023 10:00
Faking an AIO install for modern Puppet on Raspberry Pi
class profiles::raspberry_pi::fake_aio {
file {
default:
ensure => file;
'/etc/facter/facts.d/aio_agent_version.txt':
content => "aio_agent_version=${fact('puppetversion')}";
'/etc/facter/facts.d/aio_fake_agent.txt':
content => "aio_fake_agent=true";
}
#!/usr/bin/env bash
set -euo pipefail
PUPPET_CRL=$(/opt/puppetlabs/bin/puppet config print hostcrl)
PUPPET_CRL_DIR=$(dirname "$PUPPET_CRL")
PUPPET_CA_CRL=$(/opt/puppetlabs/bin/puppet config print cacrl)
PUPPET_CA_CRL_DIR=$(dirname "$PUPPET_CA_CRL")
if [[ -d $PUPPET_CA_CRL_DIR ]]; then
SERVER="yes"
@chadh
chadh / README.md
Last active December 13, 2021 15:21
Puppet Server with AWS Certificate Manager as External Root CA

Here are the set of steps I ultimately came up with when trying to set up Puppet 6 servers in AWS using an ACM private CA for the Root.

  1. Create Private CA in AWS Certificate Manager

    • Type: Root
    • Common Name: domain.int (whatever you want)
    • Key Algorithm: RSA 2048
    • provide S3 Bucket for storing CRL
  2. Generate Private Key and CSR for each Puppet Server’s Intermediate CA certificate:

    • configuration for openssl command (certreq.cnf):
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active March 14, 2026 21:19
Conventional Commits Cheatsheet