-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
salt_minion_extra_config and salt_minion_config_dropin_files does not work as expected.
There is two separate issues:
- First with layout lists from salt_minion_extra_config in final rendered file
salt_minion_extra_config/99-minion.conf
There is no difference how to specify list (both generates wrong yaml without indents).
E.g:
salt_minion_extra_config:
log_level: trace
use_superseded: ['module.run']
#or
salt_minion_extra_config:
log_level: trace
use_superseded:
- module.run
Rendered into:
use_superseded:
- module.run
- Second issue is that kitchen creates config file in desired place
/tmp/kitchen/etc/salt/minion.d/98-enforce.conf, but minion shouldn't load it. Minion log files does not have a line with file98-enforce.conflike99-minion.confconfig from first issue:
2020-07-22 13:05:10,247 [salt.config :1897][DEBUG ][15758] Reading configuration from /tmp/kitchen/etc/salt/minion
2020-07-22 13:05:10,248 [salt.config :2048][DEBUG ][15758] Including configuration from '/tmp/kitchen/etc/salt/minion.d/99-minion.conf'
2020-07-22 13:05:10,249 [salt.config :1897][DEBUG ][15758] Reading configuration from /tmp/kitchen/etc/salt/minion.d/99-minion.conf
Used config section:
salt_minion_config_dropin_files:
- enforce.conf
It's strange of course. But it is true.
Full provisioner config section:
provisioner:
name: salt_solo
log_level: trace
salt_install: bootstrap
require_chef: false
formula: ubuntu
salt_copy_filter:
- .kitchen
- .git
- .vagrant
salt_minion_extra_config:
log_level: trace
use_superseded: ['module.run']
salt_minion_config_dropin_files:
- enforce.conf
state_top:
base:
'*':
- ubuntu
pillars:
top.sls:
base:
'*':
- ubuntu
pillars_from_files:
ubuntu.sls: test/salt/pillar/ubuntu.pillar
verifier:
inspec_tests:
- path: test/integration/default
Metadata
Metadata
Assignees
Labels
No labels