You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: