-
Notifications
You must be signed in to change notification settings - Fork 32
FOSDEM 2022 hetzner
Mark Van den Borre edited this page Jan 6, 2022
·
4 revisions
apt install hcloud-cli
for n in {0..15}
do
echo "Creating streamfrontend$n.video.fosdem.org"
hcloud server create --name streamfrontend$n.video.fosdem.org --image debian-11 --datacenter fsn1-dc14 --type cx21 --network fosdem-internal --ssh-key wouter-vasil-mark-gerry
done
for n in ns1 ns2 web0 validate
do
echo "Creating $n.video.fosdem.org"
hcloud server create --name $n.video.fosdem.org --image debian-11 --datacenter fsn1-dc14 --type cx21 --network fosdem-internal --ssh-key wouter-vasil-mark-gerry
done
echo "Creating mon.video.fosdem.org"
hcloud server create --name mon.video.fosdem.org --image debian-11 --datacenter fsn1-dc14 --type cpx21 --network fosdem-internal --ssh-key wouter-vasil-mark-gerry
while IFS= read -r line; do
echo "Creating $line"
hcloud server create --name "$line" --image debian-11 --datacenter fsn1-dc14 --type ccx21 --network fosdem-internal --ssh-key wouter-vasil-mark-gerry
done < /tmp/ansible_hosts_voctos
echo "Creating streamdump0.video.fosdem.org"
hcloud server create --name streamdump0.video.fosdem.org --image debian-11 --datacenter fsn1-dc14 --type ccx11 --network fosdem-internal --ssh-key wouter-vasil-mark-gerry
echo "Creating volumes"
hcloud volume create --server streamdump0.video.fosdem.org --name streamdump --size 4096 --format ext4 --automount
hcloud volume create --server validate.video.fosdem.org --name validate --size 1024 --format ext4 --automount
hcloud server list| tr -s ' '| cut -d' ' -f 2,4,5 > ip_mappings.txt