Allow bootstrap to specify manifest file

This commit is contained in:
Andrew Tomaka 2014-04-01 10:54:59 -04:00
parent 9db24df29b
commit fcb8fd20e2

View file

@ -3,13 +3,16 @@
# BOOSTRAP SCRIPT # BOOSTRAP SCRIPT
# Can take a single param to allow a specific branch to be installed # 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 case "${o}" in
s) s)
SETUP=true SETUP=true
;; ;;
m)
MANIFEST=${OPTARG}
;;
*) *)
usage usage
;; ;;
@ -68,4 +71,4 @@ fi
librarian-puppet install librarian-puppet install
# RUN MANIFEST # RUN MANIFEST
puppet apply manifests/site.pp --modulepath=modules/ puppet apply manifests/$MANIFEST --modulepath=modules/