Salt Minion
Installing Salt Minion on Redhat Servers...
...
, as root:
Code Block |
---|
wget -O /tmp/install_salt.sh http:// |
...
bootstrap. |
...
saltstack.org sh / |
...
tmp/install_salt.sh
|
Once installed, and before you start it, be sure to edit the `/etc/salt/minion` file for the following details...
id: Salt Keys are based on this value. And by default this value is based on the hostname of this machine. AWS sets a hostname that is based on the IP, and that can change each time you reboot. So it is best to set the ID yourself.
For the LDAP servers, I've been using a convention of "ldapdev1" which specifies the role, then the environment, and then a sequence to make sure the ID is unique among servers.
For the Jetty servers, we've been using a convention of "jetty-090983204" where the series of numbers actually represents the time the machine was started up as seconds since the UNIX Epoch as found by `date+"%s"`. Note that at some point, we anticipate establishing the `id` will be automated through a utility called `salt-cloud` with the base pattern 'role'-'environment'_'Epoch_Seconds'.
...
LDAP Servers
Code Block |
---|
master: <ip addr or fqdn of salt master>
log_level: debug
grains:
env: pilot
roles:
- ldap
- ldap-master1
mine_functions:
grains.item:
- roles
- fqdn_ip4
|
Code Block |
---|
master: <ip addr or fqdn of salt master>
log_level: debug
grains:
env: pilot
roles:
- tomcat
- activemq
- pg_master
- cpr
- cpr_master
mine_functions:
grains.item:
- roles
- fqdn_ip4 |