In this recipe, we will continue with the general administration tasks and look at some more tasks that can be done efficiently with Salt. We will look at how to populate the system hosts file with entries for host lookup and how to populate minions with custom grains.
stgdc2dbs01. Do not configure any custom grains on the minion.
/opt/salt-cookbook/staging/hostconfig/hosts.slsto have the following entries:
ntp-server: host.present: - ip: 192.168.0.10
/opt/salt-cookbook/staging/hostconfig/grains.slsto have the following entries:
location: grains.present: ...