From: Silvio Rhatto Date: Fri, 30 Sep 2011 02:11:30 +0000 (-0300) Subject: Adding puppet-finger hydra perspective X-Git-Tag: 0.1~227 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7cc8f0dde9431998138c04bd22bbb83e30b37e42;p=hydra.git Adding puppet-finger hydra perspective --- 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