Allow bootstrap to specify manifest file
This commit is contained in:
parent
9db24df29b
commit
fcb8fd20e2
1 changed files with 6 additions and 3 deletions
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue