Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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 and add 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'.

the server's role and environment.

Note, the EIP for the Salt Master in the I2 CommIT environment is

LDAP Servers

.h5 ldap-master1

Code Block
master: <ip addr or fqdn of salt master>

log_level: debug

grains:
  env: <environment>
  roles:
    - ldap
    - ldap-master1

mine_functions:
  grains.item:
    - roles
    - fqdn_ip4

.h5 ldap-master2

Code Block
master: <ip addr or fqdn of salt master>

log_level: debug

grains:
  env: <environment>
  roles:
    - ldap
    - ldap-master2

mine_functions:
  grains.item:
    - roles
    - fqdn_ip4

.h5 cpr-pg-master

Code Block
master: <ip addr or fqdn of salt master>
log_level: debug

grains:
  env: <environment>
  roles:
    - tomcat
    - activemq
    - pg_master
    - cpr
    - cpr_master

mine_functions:
  grains.item:
    - roles
    - fqdn_ip4

.h5 cpr-pg-slave

Code Block
master: <ip addr or fqdn of salt master>
log_level: debug

grains:
  env: <environment>
  roles:
    - tomcat
    - activemq
    - pg_replica
    - cpr

mine_functions:
  grains.item:
    - roles
    - fqdn_ip4

salt-key -L

salt-key -y -a <fqdn of salt minion>You will also want to establish the role for the machine, which will tell the Salt Master what should be installed and enabled on that machine. The 'roles' list is found by searching the /etc/salt/minion file.