Finalize deployment
This commit is contained in:
parent
86d070edfe
commit
119a41a5d5
5 changed files with 116 additions and 4 deletions
7
scripts/2021/donaraltna@.service
Normal file
7
scripts/2021/donaraltna@.service
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=donaraltna
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/bin/donaraltna %i
|
||||||
|
WorkingDirectory=/root/donaraltna/
|
||||||
|
|
7
scripts/2021/donardupna@.service
Normal file
7
scripts/2021/donardupna@.service
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=donardupna
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/bin/donardupna %i
|
||||||
|
WorkingDirectory=/root/donardupna/
|
||||||
|
|
|
@ -1,23 +1,34 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /usr/local/bin/
|
cd /usr/local/bin/
|
||||||
|
|
||||||
for bin in donar measlat tor2 tor3 torecho udpecho; do
|
for bin in donar measlat tor2 tor3 torecho udpecho; do
|
||||||
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/dist/${bin}?inline=false -O ${bin}
|
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/dist/${bin}?inline=false -O ${bin}
|
||||||
chmod +x ${bin}
|
chmod +x ${bin}
|
||||||
done
|
done
|
||||||
|
|
||||||
for scr in donaralt donaraltna donaraltopt donardup donardupna donardupopt tor1wcli tor2wcli torfone torfonena torfoneopt torhs torhsna torhsopt; do
|
for scr in donaralt donaraltna donaraltopt \
|
||||||
|
donardup donardupna donardupopt \
|
||||||
|
torfone torfonena torfoneopt \
|
||||||
|
torhs torhsna torhsopt \
|
||||||
|
tor1wcli tor2wcli; do
|
||||||
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/${scr}?inline=false -O ${scr}
|
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/${scr}?inline=false -O ${scr}
|
||||||
chmod +x ${scr}
|
chmod +x ${scr}
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /etc/systemd/system/
|
cd /etc/systemd/system/
|
||||||
for svc in donaraltopt@.service donaralt@.service donardupopt@.service donardup@.service tor1wcli@.service tor1wserv.service tor2wcli@.service tor2wserv.service torfoneopt@.service torfone@.service torhsna@.service torhsopt@.service torhs@.service; do
|
for svc in donaraltna@.service donaraltopt@.service donaralt@.service \
|
||||||
|
donardupna@.service donardupopt@.service donardup@.service \
|
||||||
|
torfonena@.service torfoneopt@.service torfone@.service \
|
||||||
|
torhsna@.service torhsopt@.service torhs@.service \
|
||||||
|
tor1wcli@.service tor1wserv.service tor2wcli@.service tor2wserv.service; do
|
||||||
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/${svc}?inline=false -O ${svc}
|
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/${svc}?inline=false -O ${svc}
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /root
|
cd /root
|
||||||
for out in donaralt donaraltna donaraltopt donardup donardupna donardupopt tor1w tor2w torfone torfonena torfoneopt torhs torhsna torhsopt; do
|
for out in donaralt donaraltna donaraltopt \
|
||||||
|
donardup donardupna donardupopt \
|
||||||
|
torfone torfonena torfoneopt \
|
||||||
|
torhs torhsna torhsopt \
|
||||||
|
tor1w tor2w; do
|
||||||
mkdir ${out}
|
mkdir ${out}
|
||||||
done
|
done
|
||||||
|
|
|
@ -93,3 +93,83 @@ EOT
|
||||||
ip_id = scaleway_instance_ip.torfonena_ip.id
|
ip_id = scaleway_instance_ip.torfonena_ip.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************
|
||||||
|
* DONAR ALT
|
||||||
|
**********************/
|
||||||
|
resource "scaleway_instance_ip" "donaralt_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donaralt" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donaralt"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donaralt@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donaralt_ip.id
|
||||||
|
}
|
||||||
|
resource "scaleway_instance_ip" "donaraltopt_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donaraltopt" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donaraltopt"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donaraltopt@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donataltopt_ip.id
|
||||||
|
}
|
||||||
|
resource "scaleway_instance_ip" "donaraltna_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donaraltna" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donaraltna"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donaraltna@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donaraltna_ip.id
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********************
|
||||||
|
* DONAR DUP
|
||||||
|
**********************/
|
||||||
|
resource "scaleway_instance_ip" "donardup_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donardup" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donardup"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donardup@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donardup_ip.id
|
||||||
|
}
|
||||||
|
resource "scaleway_instance_ip" "donardupopt_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donardupopt" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donardupopt"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donardupopt@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donatdupopt_ip.id
|
||||||
|
}
|
||||||
|
resource "scaleway_instance_ip" "donardupna_ip" {}
|
||||||
|
resource "scaleway_instance_server" "donardupna" {
|
||||||
|
type = "DEV1-L"
|
||||||
|
image = "ubuntu_focal"
|
||||||
|
name = "donardupna"
|
||||||
|
cloud_init = <<-EOT
|
||||||
|
#!/bin/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 donardupna@$i ; sleep 60 ; done
|
||||||
|
EOT
|
||||||
|
ip_id = scaleway_instance_ip.donardupna_ip.id
|
||||||
|
}
|
||||||
|
|
7
scripts/2021/torfonena@.service
Normal file
7
scripts/2021/torfonena@.service
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=torfonena
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/bin/torfonena %i
|
||||||
|
WorkingDirectory=/root/torfonena/
|
||||||
|
|
Loading…
Reference in a new issue