This commit is contained in:
Quentin 2021-01-28 10:58:36 +01:00
parent d7b7297b00
commit e6f4d2d7cf
3 changed files with 18 additions and 1 deletions

View file

@ -21,3 +21,13 @@ resource "scaleway_instance_server" "torhs" {
cloud_init = file("${path.module}/torhs.init") cloud_init = file("${path.module}/torhs.init")
ip_id = scaleway_instance_ip.torhs_ip.id ip_id = scaleway_instance_ip.torhs_ip.id
} }
resource "scaleway_instance_ip" "torhsopt_ip" {}
resource "scaleway_instance_server" "torhsopt" {
type = "DEV1-L"
image = "ubuntu_focal"
name = "torhsopt"
cloud_init = file("${path.module}/torhsopt.init")
ip_id = scaleway_instance_ip.torhsopt_ip.id
}

View file

@ -3,5 +3,5 @@ apt-get update -y -qq
apt-get upgrade -y -qq apt-get upgrade -y -qq
apt-get install -y ca-certificates wget apt-get install -y ca-certificates wget
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/install.sh?inline=false -O - | bash 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 torhs@$i ; sleep 10 ; done) &
echo "done" echo "done"

View file

@ -0,0 +1,7 @@
#!/bin/bash
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 torhsopt@$i ; sleep 10 ; done) &
echo "done"