You want to leverage the CM tool SaltStack. You have Salt Master installed, and now you want to push down files to Salt Minion client servers. How do you do this?
This solution requires Salt Master to be configured. If you need assistance, see this posting.
1. The Salt Minion client servers will need to run this: sudo systemctl start salt-minion
2.a. On the Salt Master server create a directory /srv/salt/ (e.g., sudo mkdir -p /srv/salt)
2.b. Create this file: /srv/salt/top.sls with the following three lines of content:
2.c. Create this file: /srv/salt/funfun.sls with the following three lines of content:
- user: cooluser
- mode: 644
- source: salt://good.txt
2.d. Create this file: /srv/salt/good.txt with whatever content you want.
3. Restart salt-master serivce with this command: sudo systemctl restart salt-master
4. Push the file down with this command: sudo salt '*' state.apply
5. Go to the Salt Minion client servers. The /tmp/ directory should have a file called great.txt.