From 0c80c98ca718d88096a0b227e1390fbc91fcd1c2 Mon Sep 17 00:00:00 2001 From: Klas Arvidsson <klas.arvidsson@liu.se> Date: Mon, 13 Jan 2020 12:08:06 +0100 Subject: [PATCH] updated validate script --- validate.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/validate.sh b/validate.sh index 09d5ee5..deee0a9 100755 --- a/validate.sh +++ b/validate.sh @@ -1 +1,13 @@ -puppet parser validate --strict_variables --modulepath="$(pwd)/.." manifests/ +#!/bin/bash + +modulepath="$(pwd)/.." + +set -x + +puppet parser validate --strict_variables --modulepath="$modulepath" manifests/ + +for file in $* +do + class=$(basename $file .pp) + puppet apply --noop --test --modulepath="$modulepath" -e "include aes::$class" +done -- GitLab