WIP terraform
This commit is contained in:
parent
f6c6dae169
commit
48c41641f9
2 changed files with 17 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue