feat(check_cmd): run in config directory

This commit is contained in:
Alexander Weidinger 2021-04-19 00:31:26 +02:00
parent bbc1a0e5b5
commit 6718b2a861
24 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -7,6 +7,7 @@ values:
added_in_pillar: pillar_value added_in_pillar: pillar_value
arch: amd64 arch: amd64
config: /etc/unbound/unbound.conf config: /etc/unbound/unbound.conf
config_dir: /etc/unbound
lookup: lookup:
added_in_lookup: lookup_value added_in_lookup: lookup_value
master: template-master master: template-master

View File

@ -23,6 +23,7 @@ unbound-config-file-file-managed:
- makedirs: True - makedirs: True
- template: jinja - template: jinja
- check_cmd: unbound-checkconf - check_cmd: unbound-checkconf
- tmp_dir: {{ unbound.config_dir }}
- require: - require:
- sls: {{ sls_package_install }} - sls: {{ sls_package_install }}
- context: - context:

View File

@ -8,6 +8,7 @@ values:
name: unbound name: unbound
rootgroup: root rootgroup: root
config: '/etc/unbound/unbound.conf' config: '/etc/unbound/unbound.conf'
config_dir: '/etc/unbound'
service: service:
name: unbound name: unbound
# Just here for testing # Just here for testing

View File

@ -14,4 +14,5 @@
values: values:
rootgroup: wheel rootgroup: wheel
config: '/usr/local/etc/unbound/unbound.conf' config: '/usr/local/etc/unbound/unbound.conf'
config_dir: '/usr/local/etc/unbound'
... ...

View File

@ -13,4 +13,5 @@
--- ---
values: values:
config: /etc/unbound.conf config: /etc/unbound.conf
config_dir: /etc
... ...