diff options
-rwxr-xr-x | share/hydra/puppet-finger | 13 | ||||
-rwxr-xr-x | share/hydractl/puppet-finger | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/share/hydra/puppet-finger b/share/hydra/puppet-finger new file mode 100755 index 0000000..0381535 --- /dev/null +++ b/share/hydra/puppet-finger @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Check puppet fingerprints, hydra perspective. +# + +# Load +source $APP_BASE/lib/hydra/functions || exit 1 +hydra_config_load + +# Command line arguments +BASENAME="`basename $0`" + +hydra $HYDRA mass hydractl puppet-finger diff --git a/share/hydractl/puppet-finger b/share/hydractl/puppet-finger index 010cca1..2bd29c1 100755 --- a/share/hydractl/puppet-finger +++ b/share/hydractl/puppet-finger @@ -27,7 +27,7 @@ function puppet_openssl { if [ -d "/var/lib/puppetmaster/ssl" ]; then if [ -d "/var/lib/puppetmaster/ssl/ca/signed" ]; then for file in `ls /var/lib/puppetmaster/ssl/ca/signed`; do - fp="`puppet_openssl $file`" + fp="`puppet_openssl /var/lib/puppetmaster/ssl/ca/signed/$file`" echo "`basename $file .pem`: $fp" done fi |