WIP terraform

This commit is contained in:
Quentin 2021-01-28 10:17:49 +01:00
parent f6c6dae169
commit 48c41641f9
2 changed files with 17 additions and 2 deletions

View file

@ -6,8 +6,16 @@ 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}
done done
for scr in donaralt donaraltna donaraltopt donardup donardupopt tor1wcli tor2wcli torfone torfoneopt torhs 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}
done done
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
wget https://gitlab.inria.fr/qdufour/donar/-/raw/master/scripts/2021/${svc}?inline=false -O ${svc}
done
cd /root
for out in donaralt donaraltna donaraltopt donardup donardupna donardupopt tor1w tor2w torfone torfonena torfoneopt torhs torhsna torhsopt; do
mkdir ${out}
done

View file

@ -1,4 +1,11 @@
package_update: true
packages:
- ca-certificates
- wget
runcmd: runcmd:
- - '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" final_message: "done"