aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/consul/files/consul.service2
-rw-r--r--ansible/roles/nomad/files/nomad.service4
-rw-r--r--nomad/email.hcl4
3 files changed, 9 insertions, 1 deletions
diff --git a/ansible/roles/consul/files/consul.service b/ansible/roles/consul/files/consul.service
index 3993567..ffaa2a3 100644
--- a/ansible/roles/consul/files/consul.service
+++ b/ansible/roles/consul/files/consul.service
@@ -1,5 +1,7 @@
[Unit]
Description=Consul
+After=network-online.target
+Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul
diff --git a/ansible/roles/nomad/files/nomad.service b/ansible/roles/nomad/files/nomad.service
index 34dc1fc..50116be 100644
--- a/ansible/roles/nomad/files/nomad.service
+++ b/ansible/roles/nomad/files/nomad.service
@@ -1,9 +1,11 @@
[Unit]
Description=Nomad
After=network-online.target
-Wants=network-online.target
After=glusterd.service
+After=consul.service
+Wants=network-online.target
Wants=glusterd.service
+Wants=consul.service
[Service]
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad
diff --git a/nomad/email.hcl b/nomad/email.hcl
index 4b4be41..f085324 100644
--- a/nomad/email.hcl
+++ b/nomad/email.hcl
@@ -34,6 +34,7 @@ job "email" {
cpu = 100
memory = 200
network {
+ mbits = 1
port "auth_port" {
static = "1337"
}
@@ -179,6 +180,7 @@ job "email" {
cpu = 100
memory = 50
network {
+ mbits = 1
port "dkim_port" {
static = "8999"
}
@@ -261,6 +263,7 @@ job "email" {
cpu = 100
memory = 50
network {
+ mbits = 1
port "smtp_port" {
static = "25"
}
@@ -436,6 +439,7 @@ job "email" {
cpu = 200
memory = 1000
network {
+ mbits = 1
port "sogo_web_port" {}
}
}