From e5dcb167d570a9c3dd32d73affe4307b7ffdcf09 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 4 Mar 2014 18:56:08 +0100 Subject: make wget present and use tee to show progress --- apt/bootstrap-cosmos.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apt/bootstrap-cosmos.sh') diff --git a/apt/bootstrap-cosmos.sh b/apt/bootstrap-cosmos.sh index 6b4454a..28cbde0 100755 --- a/apt/bootstrap-cosmos.sh +++ b/apt/bootstrap-cosmos.sh @@ -22,7 +22,7 @@ fi set -x -apt-get -y install rsync git-core +apt-get -y install rsync git-core wget dpkg -i cosmos_1.2-2_all.deb if ! test -d /var/cache/cosmos/repo; then @@ -36,6 +36,7 @@ perl -pi -e "s,#COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=.*,COSMOS_UPDATE_VERIFY_GIT env COSMOS_BASE=/var/cache/cosmos COSMOS_KEYS=/var/cache/cosmos/repo/global/overlay/etc/cosmos/keys /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust -(date; nohup cosmos -v update && nohup cosmos -v apply; date) > /var/log/cosmos.log 2>&1 +(date; nohup cosmos -v update && nohup cosmos -v apply; date) 2>&1 | tee /var/log/cosmos.log + exit 0 -- cgit v1.1 From 4f300ca63268f73a63e01f5528ecdc5e6f46d67e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 22 Oct 2014 14:28:05 +0200 Subject: simple kvm builder using cloud images --- apt/bootstrap-cosmos.sh | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 apt/bootstrap-cosmos.sh (limited to 'apt/bootstrap-cosmos.sh') diff --git a/apt/bootstrap-cosmos.sh b/apt/bootstrap-cosmos.sh deleted file mode 100755 index 28cbde0..0000000 --- a/apt/bootstrap-cosmos.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -e - -cmd_hostname="$1" -if test -z "$cmd_hostname"; then - echo "Usage: $0 HOSTNAME REPO TAGPATTERN" - exit 1 -fi - -cmd_repo="$2" -if test -z "$cmd_repo"; then - echo "Usage $0 HOSTNAME REPO TAGPATTERN" - exit 2 -fi - -cmd_tags="$3" -if test -z "$cmd_tags"; then - echo "Usage $0 HOSTNAME REPO TAGPATTERN" - exit 3 -fi - -set -x - -apt-get -y install rsync git-core wget -dpkg -i cosmos_1.2-2_all.deb - -if ! test -d /var/cache/cosmos/repo; then - cosmos clone "$cmd_repo" -fi - -hostname $cmd_hostname - -perl -pi -e "s,#COSMOS_REPO_MODELS=.*,COSMOS_REPO_MODELS=\"\\\$COSMOS_REPO/global/:\\\$COSMOS_REPO/$cmd_hostname/\"," /etc/cosmos/cosmos.conf -perl -pi -e "s,#COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=.*,COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=\"${cmd_tags}*\"," /etc/cosmos/cosmos.conf - -env COSMOS_BASE=/var/cache/cosmos COSMOS_KEYS=/var/cache/cosmos/repo/global/overlay/etc/cosmos/keys /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust - -(date; nohup cosmos -v update && nohup cosmos -v apply; date) 2>&1 | tee /var/log/cosmos.log - - -exit 0 -- cgit v1.1