$(basename $0) [options]
--help,-h This help
+ Please chose environment:
+ --environment env Environment to use for the install
+
One of the following options is necessary:
--instance-id id Id of the cloud instance
--vps-id id Id of the vps
--no-reboot-start Don't reboot to rescue at the beginning
--no-reboot-end Don't reboot to normal at the end
--git-branch branch Use another puppet branch (default: master)
- --environment env Environment to use for the install (default: production)
EOF
}
set -e
git_branch=master
-environment=production
host_user=""
password=""
T=""
shift
done
-if [ -z "$T" -o -z "$host_id" ]; then
+if [ -z "$T" -o -z "$host_id" -o -z "$environment" ]; then
usage
exit 1
fi