summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-02-24 11:19:10 +0100
committerLeif Johansson <leifj@sunet.se>2015-02-24 11:19:10 +0100
commite2cc0bc80fa8cfab7fecb04677a45a4f51cb561e (patch)
tree09d540d53a1d9fa49fea52d4b1339d7a51846ac4 /apt
parentc3415f304e2f11bdbf153bdb8e810e89311fc7a4 (diff)
parent7863ad617033064d6b5758d3d1f4bba32b9cc5dd (diff)
merge multiversesunet-ops-2015-02-24-v01
Diffstat (limited to 'apt')
l---------apt1
-rwxr-xr-xapt/bootstrap-cosmos.sh42
-rw-r--r--apt/cosmos_1.2-2_all.debbin11724 -> 0 bytes
3 files changed, 1 insertions, 42 deletions
diff --git a/apt b/apt
new file mode 120000
index 0000000..fb02c87
--- /dev/null
+++ b/apt
@@ -0,0 +1 @@
+global/overlay/etc/cosmos/apt \ No newline at end of file
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
diff --git a/apt/cosmos_1.2-2_all.deb b/apt/cosmos_1.2-2_all.deb
deleted file mode 100644
index 9fe4434..0000000
--- a/apt/cosmos_1.2-2_all.deb
+++ /dev/null
Binary files differ