I'm currently facing some issue using saltstack to enroll my landscape.
I would like that salt manages the /etc/hosts file on all my minions/servers.
Therefor I added the hostsfile-formular to my saltstack via a Git-remoteFS
but it seems to have no effect. No hosts file gets placed anywhere, Please also see:
What i'm doing wrong here?
base: # Apply SLS files from the directory root for the 'base' environment
'*':
- timezone # Set the general timezone
- hostsfile # Set the /etc/hosts file
'salt': # For salt master node as there is only one
- toolstack # Apply basic toolstack to node
...
Finally my hostsfile.sls pillar at /srv/pillar/hostsfile.sls:
hostsfile:
domain: local
hosts:
salt: 10.10.10.2
master1: 10.10.10.3
only:
127.0.0.1:
- localhost
- localhost.localdomain
# Removes all entries for 127.0.1.1:
127.0.1.1: []
Can smb explain to me why my hostsfile has no effect at all. What do I miss here?
I'm currently facing some issue using saltstack to enroll my landscape. I would like that salt manages the /etc/hosts file on all my minions/servers. Therefor I added the hostsfile-formular to my saltstack via a Git-remoteFS but it seems to have no effect. No hosts file gets placed anywhere, Please also see: What i'm doing wrong here?
my tree:
/etc/salt/minion (same on all minions):
/etc/salt/master (salt master only)
/etc/salt/top.sls:
Finally my hostsfile.sls pillar at /srv/pillar/hostsfile.sls:
Can smb explain to me why my hostsfile has no effect at all. What do I miss here?