Fix
This commit is contained in:
parent
d7b7297b00
commit
e6f4d2d7cf
3 changed files with 18 additions and 1 deletions
|
@ -21,3 +21,13 @@ resource "scaleway_instance_server" "torhs" {
|
|||
cloud_init = file("${path.module}/torhs.init")
|
||||
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
|
||||
}
|
||||
|
|
|
@ -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 torhs@$i ; sleep 10 ; done) &
|
||||
echo "done"
|
||||
|
|
7
scripts/2021/torhsopt.init
Normal file
7
scripts/2021/torhsopt.init
Normal 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"
|
Loading…
Reference in a new issue