From fcb8fd20e22a0e79b8b7f666233f6f07b93038e0 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 1 Apr 2014 10:54:59 -0400 Subject: [PATCH] Allow bootstrap to specify manifest file --- bootstrap.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 2533559..3f99f8a 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,13 +3,16 @@ # BOOSTRAP SCRIPT # Can take a single param to allow a specific branch to be installed -usage() { echo "Usage: $0 [-s] [branch]" 1>&2; exit 1; } +usage() { echo "Usage: $0 [-s] [-m MANIFEST_FILE] [BRANCH]" 1>&2; exit 1; } -while getopts "s" o; do +while getopts "sm:" o; do case "${o}" in s) SETUP=true ;; + m) + MANIFEST=${OPTARG} + ;; *) usage ;; @@ -68,4 +71,4 @@ fi librarian-puppet install # RUN MANIFEST -puppet apply manifests/site.pp --modulepath=modules/ +puppet apply manifests/$MANIFEST --modulepath=modules/