env/prod: Collect common tempates in module
In order to simplify the process of adding new template render instructions to all hosts, I've created a list of templates in the `env/prod` module. This way, I only have to add templates there, and all hosts that "inherit" from it will automatically get them.
This commit is contained in:
13
env/prod/instructions.cue
vendored
Normal file
13
env/prod/instructions.cue
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package prod
|
||||
|
||||
import (
|
||||
"list"
|
||||
|
||||
"du5t1n.me/cfg/app/ssh"
|
||||
"du5t1n.me/cfg/app/sudo"
|
||||
)
|
||||
|
||||
templates: list.Concat([
|
||||
ssh.templates,
|
||||
sudo.templates,
|
||||
])
|
||||
@@ -1,9 +1,9 @@
|
||||
import (
|
||||
"list"
|
||||
|
||||
"du5t1n.me/cfg/app/sudo"
|
||||
"du5t1n.me/cfg/env/prod"
|
||||
)
|
||||
|
||||
render: list.Concat([
|
||||
sudo.templates,
|
||||
prod.templates,
|
||||
])
|
||||
|
||||
@@ -5,8 +5,7 @@ import (
|
||||
|
||||
"du5t1n.me/cfg/app/collectd"
|
||||
"du5t1n.me/cfg/app/nut"
|
||||
"du5t1n.me/cfg/app/ssh"
|
||||
"du5t1n.me/cfg/app/sudo"
|
||||
"du5t1n.me/cfg/env/prod"
|
||||
)
|
||||
|
||||
render: list.Concat([
|
||||
@@ -14,6 +13,5 @@ render: list.Concat([
|
||||
nut.templates,
|
||||
nut.monitor.templates,
|
||||
nut.collectd.templates,
|
||||
ssh.templates,
|
||||
sudo.templates,
|
||||
prod.templates,
|
||||
])
|
||||
|
||||
@@ -4,13 +4,11 @@ import (
|
||||
"list"
|
||||
|
||||
"du5t1n.me/cfg/app/nut"
|
||||
"du5t1n.me/cfg/app/ssh"
|
||||
"du5t1n.me/cfg/app/sudo"
|
||||
"du5t1n.me/cfg/env/prod"
|
||||
)
|
||||
|
||||
render: list.Concat([
|
||||
nut.sysusers.templates,
|
||||
nut.monitor.templates,
|
||||
ssh.templates,
|
||||
sudo.templates,
|
||||
prod.templates,
|
||||
])
|
||||
|
||||
@@ -4,12 +4,10 @@ import (
|
||||
"list"
|
||||
|
||||
"du5t1n.me/cfg/app/collectd"
|
||||
"du5t1n.me/cfg/app/ssh"
|
||||
"du5t1n.me/cfg/app/sudo"
|
||||
"du5t1n.me/cfg/env/prod"
|
||||
)
|
||||
|
||||
render: list.Concat([
|
||||
collectd.templates,
|
||||
ssh.templates,
|
||||
sudo.templates,
|
||||
prod.templates,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user