Terraform WIP

This commit is contained in:
Quentin 2021-01-28 10:41:09 +01:00
parent 1ae5b0eb2f
commit b8afb9fa5d
3 changed files with 3 additions and 2 deletions

View File

@ -2,3 +2,4 @@
*.swp
.terraform/*
*.lock.hcl
terraform.*

View File

@ -18,6 +18,6 @@ resource "scaleway_instance_server" "torhs" {
type = "DEV1-L"
image = "ubuntu_focal"
name = "torhs"
cloud_init = file("${path.module}/torhs.yml")
cloud_init = file("${path.module}/torhs.init")
ip_id = scaleway_instance_ip.torhs_ip.id
}

View File

@ -3,5 +3,5 @@ apt-get update -y -qq
apt-get upgrade -y -qq
apt-get install -y ca-certificates wget
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/install.sh?inline=false -O - | bash
for i in $(seq 1 8); do echo start $i ; systemctl start torfone@$i ; sleep 10 ; done
(for i in $(seq 1 8); do echo start $i ; systemctl start torfone@$i ; sleep 10 ; done) &
echo "done"