Skip to content

Commit 45505f9

Browse files
authored
Merge pull request #1 from mutablelogic/dev
Release will openldap fixed and coredns added
2 parents d350b69 + e3f3942 commit 45505f9

24 files changed

+471
-392
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ provider "nomad" {
2020
}
2121
```
2222

23+
24+
## coredns
25+
26+
DNS server which could be used to resolve nomad services into dns records
27+
28+
* [Documentation](https://coredns.io/)
29+
* [Terraform Example](examples/coredns.tf)
30+
* [Nomad Job](coredns/nomad/coredns.hcl)
31+
32+
TODO:
33+
* [ ] In progress
34+
* [ ] Add nomad plugin
35+
* [ ] All nomad jobs will need to use the coredns service as a dns_server option
36+
2337
## nginx
2438

2539
Web server and reverse proxy, which can be placed on several nodes

_examples/coredns.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
module "coredns" {
3+
source = "github.com/mutablelogic/tf-nomad//coredns"
4+
5+
// Required parameters
6+
dc = local.datacenter // Nomad datacenter for the cluster
7+
namespace = local.namespace // Nomad namespace for the cluster
8+
9+
// Optional parameters
10+
enabled = true
11+
hosts = ["cm3"] // Host constraint for the job
12+
port = 53 // Port to expose for plaintext connections
13+
}

examples/grafana.tf renamed to _examples/grafana.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Example grafana dashboard example
33
module "grafana" {
4-
source = "github.com/mutablelogic/tf-nomad/grafana"
4+
source = "github.com/mutablelogic/tf-nomad//grafana"
55

66
// Required parameters
77
dc = local.datacenter // Nomad datacenter for the cluster
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)