diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-13 23:38:17 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-13 23:38:17 -0400 |
commit | 8739443da3bf2fb5394a5330700ed6970994f871 (patch) | |
tree | db760ee55dba8e69b3a42f6605355cd36af0107e /bootstrap | |
parent | 2d7386ad1608042efaeaab908ac376298b6895d3 (diff) | |
download | puppet-tozt-8739443da3bf2fb5394a5330700ed6970994f871.tar.gz puppet-tozt-8739443da3bf2fb5394a5330700ed6970994f871.zip |
move scripts into a bin directory
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/bootstrap b/bootstrap deleted file mode 100755 index bd7929f..0000000 --- a/bootstrap +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -set -eux -set -o pipefail - -host="${1:-new.tozt.net}" -conf_location="/usr/local/share/puppet-tozt" -conf_repo="git://github.com/doy/puppet-tozt" - -remote() { - # shellcheck disable=SC2029 - ssh root@"$host" "$@" -} - -ensure_conf_exists() { - if remote test -d "$conf_location"; then - remote "cd '$conf_location' && git pull" - else - remote "mkdir -p '$conf_location'" - remote "cd '$conf_location' && git clone '$conf_repo' ." - fi - remote "cd '$conf_location' && git submodule update --init --recursive" -} - -if remote test ! -e /usr/bin/pacman; then - remote apt-get -y update - remote apt-get -y install git - ensure_conf_exists - remote "cd '$conf_location/digitalocean-debian-to-arch' && bash install.sh --i_understand_that_this_droplet_will_be_completely_wiped --extra_packages 'puppet git ruby-shadow'" - sleep 30 - while ! remote true; do - sleep 30 - done -fi - -ensure_conf_exists -scp -r /mnt/puppet/ root@"$host":/usr/local/share/puppet-tozt/modules/secret/files -remote "cd '$conf_location' && puppet apply --modulepath=./modules -e 'include tozt'" |