In this recipe, we will understand and learn how to write the top file, the file which determines how the states are applied to the nodes or minions in Salt. We will apply the state that we configured in the previous recipe to minions.
The state configured in the previous recipe will now be applied to minions in the
top.slsin the base directory of the
[root@salt-master ~]# touch \ /opt/salt-cookbook/development/top.sls
/opt/salt-cookbook/development/top.slsfile and add the following contents:
development: '*': - user 'salt-minion': - match: list - hostconfig
top.sls file in Salt determines which ...