Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt_minion_extra_config and salt_minion_config_dropin_files does not work as expected #314

Open
vskubriev opened this issue Jul 23, 2020 · 0 comments

Comments

@vskubriev
Copy link

salt_minion_extra_config and salt_minion_config_dropin_files does not work as expected.

There is two separate issues:

  1. 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
  1. 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 file 98-enforce.conf like 99-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant