From 523f86e2e99d8cc5df759f8933724cd6422c5cf2 Mon Sep 17 00:00:00 2001 From: computer Date: Wed, 10 Nov 2021 12:17:56 -0500 Subject: [PATCH] documented --- hasql.nixc.us/user-data.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/hasql.nixc.us/user-data.sh b/hasql.nixc.us/user-data.sh index 5514f19..e28af5a 100644 --- a/hasql.nixc.us/user-data.sh +++ b/hasql.nixc.us/user-data.sh @@ -8,18 +8,28 @@ hostname -F /etc/hostname hostname -f export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address) export PUBLIC_IPV6=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address) + +## Installing Salt for Ubuntu 20.04 curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest/salt-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest focal main" | sudo tee /etc/apt/sources.list.d/salt.list -echo |add-apt-repository ppa:gluster/glusterfs-7 -apt-get update -apt-get dist-upgrade -y mkdir -P /etc/salt/minion.d/ echo 'master: nacl.nixc.us' > /etc/salt/minion.d/99-master-address.conf + +## Installing Glusterfs-7 https://www.digitalocean.com/community/tutorials/how-to-create-a-redundant-storage-pool-using-glusterfs-on-ubuntu-20-04 +echo |add-apt-repository ppa:gluster/glusterfs-7 + +## Installing packages +apt-get update +apt-get dist-upgrade -y apt-get install -y iftop htop glances zsh glusterfs-server glusterfs-client salt-minion + +## Setup ZSH and ohmyzsh theme cd /root/ #sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended echo y|sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sed -i 's/ZSH_THEME="robbyrussel"/ZSH_THEME="pygmalion"/g' /root/.zshrc + +## Install docker-compose and docker using convenience scripts curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose curl -fsSL https://get.docker.com -o get-docker.sh