Skip to content

Use of __env__ in file_roots master configuration declaration #67045

Discussion options

You must be logged in to vote

A follow up -- this is obviously some failing in our janky Salt configuration. Testing out the most minimal test case does not reproduce the problem -- it works as documented.

For anyone else who was seeing anything similar:

[root@salt-devel ~]# cat /etc/salt/master.d/custom.conf
auto_accept: True
top_file_merging_strategy: same
state_top_saltenv: base
state_verbose: true
state_output: changes

fileserver_backend:
  - roots

file_roots:
  __env__:
    - /test-srv/salt/__env__

pillar_roots:
  __env__:
    - /test-srv/pillar/__env__

[root@salt-devel ~]# find /test-srv/ -type f -exec grep -Hn . '{}' \;
/test-srv/salt/base/top.sls:1:"{{ saltenv }}":
/test-srv/salt/base/top.sls:2:  '*':
/tes…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fs-nicola-worthington
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant