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
{{ message }}
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.
Khelil Sator edited this page Jun 29, 2017
·
2 revisions
salt-master file server configuration:
Salt runs a file server to deliver files to minions.
This file server is built into the master daemon and does not require a dedicated port.
Default location is /srv/salt.
Configured via the file_roots option inside the master configuration file.
# more /etc/salt/master
file_roots:
base:
- /srv/salt
# more /srv/salt/salt.txt
hello-world
salt execution module cp (on the master):
# sudo salt "minion_1" cp.get_file salt://salt.txt /tmp/salt.txt
minion_1:
/tmp/salt.txt
verify on salt-minion:
# ls -l /tmp/salt.txt
-rw-r--r-- 1 root root 13 Jun 26 01:17 /tmp/salt.txt
# date
Mon Jun 26 01:17:48 PDT 2017
# more /tmp/salt.txt
hello-world