Cleanup
This commit is contained in:
parent
dfdf308c4d
commit
4e36c99901
|
@ -13,7 +13,7 @@ job "[[ .pg.instance ]]-manage[[ $c.consul.suffix ]]" {
|
||||||
}
|
}
|
||||||
[[- end ]]
|
[[- end ]]
|
||||||
|
|
||||||
[[ template "common/job_start.tpl" $c ]]
|
[[ template "common/job_start" $c ]]
|
||||||
|
|
||||||
group "manage" {
|
group "manage" {
|
||||||
network {
|
network {
|
||||||
|
@ -26,10 +26,10 @@ job "[[ .pg.instance ]]-manage[[ $c.consul.suffix ]]" {
|
||||||
|
|
||||||
service {
|
service {
|
||||||
name = "[[ .pg.instance ]]-manage[[ $c.consul.suffix ]]"
|
name = "[[ .pg.instance ]]-manage[[ $c.consul.suffix ]]"
|
||||||
[[ template "common/connect.tpl" $c ]]
|
[[ template "common/connect" $c ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ template "common/task.wait_for.tpl" $c ]]
|
[[ template "common/task.wait_for" $c ]]
|
||||||
|
|
||||||
task "postgres-manage" {
|
task "postgres-manage" {
|
||||||
driver = [[ $c.nomad.driver | toJSON ]]
|
driver = [[ $c.nomad.driver | toJSON ]]
|
||||||
|
@ -72,7 +72,7 @@ job "[[ .pg.instance ]]-manage[[ $c.consul.suffix ]]" {
|
||||||
[[- end ]]
|
[[- end ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ template "common/file_env.tpl" $c.env ]]
|
[[ template "common/file_env" $c.env ]]
|
||||||
|
|
||||||
template {
|
template {
|
||||||
data =<<_EOF
|
data =<<_EOF
|
||||||
|
@ -82,10 +82,10 @@ PGUSER=postgres
|
||||||
PGPASSWORD={{ with secret "[[ .vault.prefix ]]kv/service/[[ .pg.instance ]]" }}{{ .Data.data.pg_pwd | sprig_squote }}{{ end }}
|
PGPASSWORD={{ with secret "[[ .vault.prefix ]]kv/service/[[ .pg.instance ]]" }}{{ .Data.data.pg_pwd | sprig_squote }}{{ end }}
|
||||||
_EOF
|
_EOF
|
||||||
destination = "secrets/pg-manage.env"
|
destination = "secrets/pg-manage.env"
|
||||||
uid = 100000
|
uid = 100000
|
||||||
gid = 100000
|
gid = 100000
|
||||||
perms = 0400
|
perms = 0400
|
||||||
env = true
|
env = true
|
||||||
}
|
}
|
||||||
|
|
||||||
template {
|
template {
|
||||||
|
@ -96,12 +96,12 @@ rules:
|
||||||
[[ (coll.Slice $c.rules $c.default_rules) | flatten | toYAML | strings.Indent 2]]
|
[[ (coll.Slice $c.rules $c.default_rules) | flatten | toYAML | strings.Indent 2]]
|
||||||
_EOF
|
_EOF
|
||||||
destination = "secrets/ldap2pg.yml"
|
destination = "secrets/ldap2pg.yml"
|
||||||
uid = 100000
|
uid = 100000
|
||||||
gid = 100000
|
gid = 100000
|
||||||
perms = 0400
|
perms = 0400
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ template "common/resources.tpl" $c.resources ]]
|
[[ template "common/resources" $c.resources ]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user