]> gitweb.fluxo.info Git - hydra.git/commitdiff
Adding puppet-finger hydra perspective
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Sep 2011 02:11:30 +0000 (23:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Sep 2011 02:11:30 +0000 (23:11 -0300)
share/hydra/puppet-finger [new file with mode: 0755]
share/hydractl/puppet-finger

diff --git a/share/hydra/puppet-finger b/share/hydra/puppet-finger
new file mode 100755 (executable)
index 0000000..0381535
--- /dev/null
@@ -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
index 010cca1f1a4f1e0a4868acef996e1e77f7aa7a5e..2bd29c1cc4b738a030eb1a95c1c50a712083c55d 100755 (executable)
@@ -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