From 0e01b3d162860ec76d17fb4c10089f6bc832bd92 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 22 Nov 2012 17:46:41 +0100 Subject: removed deploy.sh cause leap init-node is taking is takeing care of installing prerequisites --- deploy.sh | 61 ------------------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100755 deploy.sh (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 9a8fcccf..00000000 --- a/deploy.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -# -# missing: header, license - -bad_usage() { usage 1>&2; [ $# -eq 0 ] || echo "$@"; exit 1; } - -usage() { - cat < /dev/null 2>&1 - if [ ! $? -eq 0 ] - then - apt-get update - apt-get install -y $PACKAGES - fi - - # lsb is needed for a first puppet run - puppet apply $PUPPET_ENV --execute 'include lsb' -} - - -# main - -PUPPET_ENV='--confdir=puppet' - -long_opts="init" -getopt_out=$(getopt --name "${0##*/}" \ - --options "${short_opts}" --long "${long_opts}" -- "$@") && \ - eval set -- "${getopt_out}" || bad_usage -while [ $# -ne 0 ]; do - cur=${1}; next=${2}; - case "$cur" in - --help) usage ; exit 0;; - --init) install_prerequisites ; exit 0;; - --) shift; break;; - esac - shift; -done - -[ $# -gt 0 ] && bad_usage "too many arguments" - -# keep repository up to date -git pull -git submodule init -git submodule update - -# run puppet without irritating deprecation warnings -puppet apply $PUPPET_ENV puppet/manifests/site.pp $@ | grep -v 'warning:.*is deprecated' -- cgit v1.2.3