-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcertbot.nomad
39 lines (37 loc) · 914 Bytes
/
certbot.nomad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
job "certbot" {
region = "uk"
type = "batch"
datacenters = ["dc1"]
parameterized {
payload = "forbidden"
meta_required = ["domain", "email"]
}
group "batch" {
count = 1
task "certonly" {
env {
CONSUL_HTTP_ADDR = "http://${attr.unique.network.ip-address}:8500"
NOMAD_ADDR = "http://${attr.unique.network.ip-address}:8500"
VAULT_ADDR = "https://vault.stn.corrarello.net"
VAULT_SKIP_VERIFY = "true"
}
vault {
policies = ["letsencrypt"]
change_mode = "signal"
change_signal = "SIGUSR1"
}
driver = "docker"
config {
image = "ncorrare/certbot-he-vault:release-0.0.11"
args = ["-d ${NOMAD_META_domain}", "-m ${NOMAD_META_email}"]
}
resources {
cpu = 100 # Mhz
memory = 128 # MB
network {
mbits = 10
}
}
}
}
}