hi all,
my apologies if I am asking something very obvious, since I am not a Salt expert. Recently, I upgraded an old Salt installation (3004) to 3007, and after changing one of the centrally managed files, I am no longer able to distribute it to minions.
My /etc/salt/pillar/top.sls file has the following definition:
base:
'myhost.mydomain':
- myhost
Also, /etc/salt/pillar/myhost.sls contains the following lines:
mysw:
config: salt://mysw/mysw.yaml-internal
And /etc/salt/mysw.sls contains the following lines:
Create mysw configfile:
file.managed:
- name: /etc/mysw/mysw.yaml
- source: {{ pillar['mysw']['config'] }}
That configuration worked with previous version of Salt, but after modifying /etc/salt/mysw/mysw.yaml-internal today, distributing the modified file to the minion produced an error:
salt -E 'myhost' state.apply mysw
ID: Create mysw configfile
Function: file.managed
Name: /etc/mysw/mysw.yaml
Result: False
Comment: Source file salt://mysw/mysw.yaml-internal not found in saltenv 'base'
Started: 22:55:53.307314
Duration: 5.411 ms
Changes:
Also, there are several other managed files that have not been modified, and for them no error messages are produced.
Unfortunately, I am only an occasional Salt user and it is thus fairly difficult to figure out what could be wrong here. I did google the error message above and did not get much useful information. Any ideas how to fix that problem?
kind regards,
risto