My SaltStack states configure
include:
- nginx
- python
- redis
- nfs-server
- nfs-client
- tomcat
- ...
Before apply nfs-server or nfs-client , you should perform the following steps
- Add the following to the pillar file
> mine_functions: > network.ip_addrs: > - eth0
- Signal the minion to refresh the pillar data:
salt '*' saltutil.refresh_pillar
- Verify the pillar data:
salt '*' pillar.get mine_functions
- Execute the configured functions and send the data back up to the master:
salt '*' mine.update
- Verify data from the mine:
salt-run mine.get '*' network.ip_addrs