Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Salty Servers Taste Better

Seb
July 11, 2013

Salty Servers Taste Better

Seb

July 11, 2013
Tweet

More Decks by Seb

Other Decks in Technology

Transcript

  1. Who am I? • I work for Tangent Snowball •

    I love Python & Django • I passionate about CI & CD • I hate doing things by hand
  2. Disclaimer • I am not a DevOp • I don't

    know much about puppet/chef • This presentation might suck ;)
  3. Why am I talking about salt? Because • it is

    awesome! • it is magic! • I love automation! • it is awesome!
  4. What I'll be talking about today • The basics of

    salt ... • ... and how to use it everywhere
  5. Salt state examples redis: pkg.installed: - name: redis-server service.running: -

    name: redis-server - enable: True - require: - pkg: redis
  6. The master configuration # define the salt state director(y|ies) file_roots:

    base: - /srv/salt # define the pillar director(y|ies) pillar_roots: base: - /srv/salt
  7. /srv/salt/top.sls • main entry point • one each for pillar

    and salt • must be in pillar/salt roots
  8. An example base: '*': - core - python - ssh

    - iptables 'coolsite-*': - nginx - supervisor - virtualen 'os:Windows': - destroy
  9. What else can you do • share states through gitfs

    • handle your cloud with salt-cloud • provision vagrant or docker