This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# The base of where our SSL stuff lives. | |
base="/etc/ssl/private" | |
# Were we would like to store keys... in this case we take the username given | |
# to us and store everything there. | |
mkdir -p $base/users/$1/ | |
# Let's create us a key for this user... | |
# yeah not sure why people want to use DES3 but at least let's make us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage example: ./get_compiles 2017-09-27 05 06 07 08 | |
DATE="$1" | |
shift | |
for x in "$@" | |
do | |
egrep "'Compiled catalog'|'Compiled static catalog'" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l |