Update script
This commit is contained in:
parent
48c41641f9
commit
1ae5b0eb2f
3 changed files with 14 additions and 15 deletions
|
@ -4,10 +4,12 @@ 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}
|
||||||
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 tor1wcli tor2wcli torfone torfonena torfoneopt torhs torhsna torhsopt; 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 ${bin}
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /etc/systemd/system/
|
cd /etc/systemd/system/
|
||||||
|
|
|
@ -10,13 +10,14 @@ terraform {
|
||||||
provider "scaleway" {
|
provider "scaleway" {
|
||||||
zone = "fr-par-1"
|
zone = "fr-par-1"
|
||||||
region = "fr-par"
|
region = "fr-par"
|
||||||
|
project_id = "1915f95a-dea4-4222-8e6b-a90b6125d1f4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "scaleway_instance_ip" "torhs_ip" {}
|
||||||
resource "scaleway_instance_server" "torhs" {
|
resource "scaleway_instance_server" "torhs" {
|
||||||
type = "DEV1-L"
|
type = "DEV1-L"
|
||||||
image = "ubuntu_focal"
|
image = "ubuntu_focal"
|
||||||
|
name = "torhs"
|
||||||
user_data {
|
cloud_init = file("${path.module}/torhs.yml")
|
||||||
cloud-init = file("${path.module}/torhs.yml")
|
ip_id = scaleway_instance_ip.torhs_ip.id
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
package_update: true
|
#!/bin/bash
|
||||||
|
apt-get update -y -qq
|
||||||
packages:
|
apt-get upgrade -y -qq
|
||||||
- ca-certificates
|
apt-get install -y ca-certificates wget
|
||||||
- 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
|
||||||
runcmd:
|
echo "done"
|
||||||
- '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 ; done '
|
|
||||||
|
|
||||||
final_message: "done"
|
|
||||||
|
|
Loading…
Reference in a new issue