Skip to content

Instantly share code, notes, and snippets.

@agadelshin
agadelshin / sign_cert_from_puppetserver.sh
Last active April 11, 2017 10:30
Generate private key and sign on puppetserver
#!/usr/bin/env bash
set -e
# Mandatory variables
if [ -z ${FQDN+x} ]; then
echo "\$FQDN is unset"
exit 1
fi
@agadelshin
agadelshin / get_puppetserver_ca.sh
Created September 10, 2016 11:37
Get puppetserver CA certificate
#!/usr/bin/env bash
set -e
# Mandatory variables
if [ -z ${PUPPETMASTER+x} ]; then
echo "\$PUPPETMASTER is unset"
exit 1
fi
# tee /etc/systemd/system/docker.service.d/start.conf <<-'EOF'
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1
EOF