From 7cc8f0dde9431998138c04bd22bbb83e30b37e42 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Sep 2011 23:11:30 -0300 Subject: Adding puppet-finger hydra perspective --- share/hydra/puppet-finger | 13 +++++++++++++ share/hydractl/puppet-finger | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 share/hydra/puppet-finger (limited to 'share') 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 -- cgit v1.2.3