salt stack - What's wrong with this simple file.managed saltstack configuration? -
from fresh salt stack installation on server , client, goal serve file number inside:
server
$vim /etc/salt/master
... file_roots: base: - /srv/salt ...
$echo 1 > /srv/salt/tmp/salt.config.version
$cat /srv/salt/top.sls
base: '*': - tmpversion
$cat /srv/salt/tmpversion/init.sls
/tmp/salt.config.version: file.managed: - source: salt://tmp/salt.config.version - user: root - group: root - mode: 644
client (minion)
$vim /etc/salt/minion
... master: <masterhostnamehere> ...
i'm using salt '*' state.sls tmpversion apply configuration. don't know how changes applied automatically..
salt doesn't until tell to. means have run salt command on cli when want state applied, or can use salt's internal scheduler or system's cron run job regularly.
Comments
Post a Comment