aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-01 22:32:02 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-01 22:32:02 +0100
commitbc88622ea29b01e480ea6920fcbbb7279d2e25ec (patch)
tree90b9f98fde6cbe1a46908404198b347e27d0fed3
parentd3fac34e633611aecbb6c3d70beeff33aedadbc4 (diff)
downloadnixcfg-bc88622ea29b01e480ea6920fcbbb7279d2e25ec.tar.gz
nixcfg-bc88622ea29b01e480ea6920fcbbb7279d2e25ec.zip
Staging: run diplonat as nix job
-rw-r--r--cluster/staging/app/core/deploy/core.hcl18
1 files changed, 9 insertions, 9 deletions
diff --git a/cluster/staging/app/core/deploy/core.hcl b/cluster/staging/app/core/deploy/core.hcl
index f57f21d..e604c24 100644
--- a/cluster/staging/app/core/deploy/core.hcl
+++ b/cluster/staging/app/core/deploy/core.hcl
@@ -15,16 +15,16 @@ job "core" {
group "network" {
task "diplonat" {
- driver = "docker"
+ driver = "nix2"
config {
- image = "lxpz/amd64_diplonat:3"
- network_mode = "host"
- readonly_rootfs = true
- volumes = [
- "secrets:/etc/diplonat",
+ packages = [
+ "#iptables",
+ "git+https://git.deuxfleurs.fr/Deuxfleurs/diplonat.git?ref=main&rev=f306e8dc8d0e93478353ce39b6064e8c06a8bca6"
]
+ command = "diplonat"
}
+ user = "root"
restart {
interval = "30m"
@@ -35,17 +35,17 @@ job "core" {
template {
data = "{{ key \"secrets/consul/consul-ca.crt\" }}"
- destination = "secrets/consul-ca.crt"
+ destination = "etc/diplonat/consul-ca.crt"
}
template {
data = "{{ key \"secrets/consul/consul-client.crt\" }}"
- destination = "secrets/consul-client.crt"
+ destination = "etc/diplonat/consul-client.crt"
}
template {
data = "{{ key \"secrets/consul/consul-client.key\" }}"
- destination = "secrets/consul-client.key"
+ destination = "etc/diplonat/consul-client.key"
}
template {