]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add script to run puppet-lint
authorHolger Levsen <holger@layer-acht.org>
Thu, 24 May 2012 11:01:54 +0000 (13:01 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 24 May 2012 11:01:54 +0000 (13:01 +0200)
puppet_lint_run.sh [new file with mode: 0644]

diff --git a/puppet_lint_run.sh b/puppet_lint_run.sh
new file mode 100644 (file)
index 0000000..ccf0c2a
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+# copyright 2012 Holger Levsen GPL2 licenced, holger@layer-acht.org
+
+for file in $(find . -iname '*.pp'); do
+  puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1;
+done;
+
+find . -iname *.pp -exec puppet-lint --no-80chars-check --log-format "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" {} \;