Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

EugeneKay/srv-salt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salt

This is a collection of SaltStack States to manage your infrastructure.

License

All files contained in this repository are Copyright © 2014 by Eugene E. Kashpureff Jr and License granted under the WTFPL(version 2) as outlined in LICENSE.txt, unless otherwise marked.

Compatibility

This collection makes a few assumptions about your infrastructure:

Master Setup

  1. Clone this repository into /srv/salt/.
  2. Customize pillar/defaults.sls to suit your environment.
  3. Copy pillar/minion/example-master.sls to pillar/minion/<hostname>.sls and customize as desired.
  4. Install the salt-minion package. Set id: <hostname> in the minion config(/etc/salt/minion).
  5. Perform a state run: $ salt-call --file-root=/srv/salt/states/ --pillar-root=/srv/salt/pillar/ --local state.apply
  6. Accept the master's minion key: $ salt-key -a <hostname> -y
  7. Enjoy!

Minion Setup

  1. Copy pillar/minion/example.sls to pillar/minion/<hostname>.sls and customize as desired.
  2. Provision the minion:
    • Linode: Create the Minion from the Master: $ salt-cloud -p <profile> <hostname>
    • Other: Bootstrap the minion: $ curl https://eugenekay.com/salt | bash. Accept it on the Master: $ salt-key -a <hostname> -y
  3. Perform a state run from the master: salt <hostname> state.apply
  4. Enjoy!

About

Saltstack State Collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published