aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2020-02-11 23:35:53 +0100
committerGitea <gitea@fake.local>2020-02-11 23:35:53 +0100
commit9e5839765a5578fb3ca63fbe55eeba96c14969b6 (patch)
tree1a2b518ccd68cdd0fe2530041b28bfc910760eb0 /nomad
parent535d1c3aba902ec644387cb41fc7cc0bcf86fae0 (diff)
parent91032944ee47ed6b6eeb674266ec64bedeac37b7 (diff)
downloadinfrastructure-9e5839765a5578fb3ca63fbe55eeba96c14969b6.tar.gz
infrastructure-9e5839765a5578fb3ca63fbe55eeba96c14969b6.zip
Merge branch 'bottin2_upgrade' of Deuxfleurs/deuxfleurs.fr into master
Diffstat (limited to 'nomad')
-rw-r--r--nomad/bottin2.hcl4
-rw-r--r--nomad/email.hcl45
2 files changed, 34 insertions, 15 deletions
diff --git a/nomad/bottin2.hcl b/nomad/bottin2.hcl
index 5a1fa12..6221d71 100644
--- a/nomad/bottin2.hcl
+++ b/nomad/bottin2.hcl
@@ -12,7 +12,7 @@ job "directory2" {
task "bottin" {
driver = "docker"
config {
- image = "lxpz/bottin_amd64:8"
+ image = "lxpz/bottin_amd64:10"
readonly_rootfs = true
port_map {
ldap_port = 1389
@@ -61,7 +61,7 @@ job "directory2" {
task "guichet" {
driver = "docker"
config {
- image = "lxpz/guichet_amd64:2"
+ image = "lxpz/guichet_amd64:3"
readonly_rootfs = true
port_map {
web_port = 9991
diff --git a/nomad/email.hcl b/nomad/email.hcl
index 1d5c8c1..d5cdc83 100644
--- a/nomad/email.hcl
+++ b/nomad/email.hcl
@@ -131,6 +131,17 @@ job "email" {
}
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/email/dovecot/dovecot-ldap.conf.tpl?raw"
+ destination = "secrets/conf/dovecot-ldap.conf.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/conf/dovecot-ldap.conf.tpl"
+ destination = "secrets/conf/dovecot-ldap.conf"
+ perms = "400"
+ }
+
template {
data = "{{ key \"configuration/email/dovecot/dovecot.crt\" }}"
destination = "secrets/ssl/certs/dovecot.crt"
@@ -141,11 +152,6 @@ job "email" {
destination = "secrets/ssl/private/dovecot.key"
perms = "400"
}
- template {
- data = "{{ key \"configuration/email/dovecot/dovecot-ldap.conf\" }}"
- destination = "secrets/conf/dovecot-ldap.conf"
- perms = "400"
- }
}
}
@@ -328,6 +334,27 @@ job "email" {
}
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/email/postfix/ldap-account.cf.tpl?raw"
+ destination = "secrets/postfix/ldap-account.cf.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/postfix/ldap-account.cf.tpl"
+ destination = "secrets/postfix/ldap-account.cf"
+ }
+
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/email/postfix/ldap-alias.cf.tpl?raw"
+ destination = "secrets/postfix/ldap-alias.cf.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/postfix/ldap-alias.cf.tpl"
+ destination = "secrets/postfix/ldap-alias.cf"
+ }
+
+
template {
data = "{{ key \"configuration/email/postfix/postfix.crt\" }}"
destination = "secrets/ssl/certs/postfix.crt"
@@ -347,14 +374,6 @@ job "email" {
destination = "secrets/postfix/header_checks"
}
template {
- data = "{{ key \"configuration/email/postfix/ldap-account.cf\" }}"
- destination = "secrets/postfix/ldap-account.cf"
- }
- template {
- data = "{{ key \"configuration/email/postfix/ldap-alias.cf\" }}"
- destination = "secrets/postfix/ldap-alias.cf"
- }
- template {
data = "{{ key \"configuration/email/postfix/main.cf\" }}"
destination = "secrets/postfix/main.cf"
}