Prezi

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in the manual

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Salt Stack - Miért szeretjük a sót!?

Salt Stack - budapest.py
by Zoltán Vigh on 28 August 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Salt Stack - Miért szeretjük a sót!?

Vigh Zoltán
https://twitter.com/ptzool
https://www.facebook.com/vigh.zoltan
http://www.linkedin.com/in/zvigh
- Üzemeltetési vezető
Why we love salt?!?
Salt Stack
What is Salt
Relatively new project (3 years old)
Started by Thomas Hatch, now 397 contributors
Written in Python
ZeroMQ as core communication mechanism
Extremely flexible and extensible
Active community
Supported Platforms
RedHat Enterprise Linux
Ubuntu
Debian
Solaris
BSD
Windows
Mac
Features Overview
Master(s)
Open 2 ports (pub/sub & reply channel)
Minions
Connect to the master
No open ports required
All communications over ZeroMQ (msgpack)
PUB-SUB for master -> minion
REQ-REP for minon -> master
All communication encrypted
256-bit AES
Authentication required
State example
apache:
pkg:
- installed
service:
- running
- require:
- pkg: apache
How to use?
Match all minions:

salt '*' test.ping

Match all minions in the example.net domain or any of the example domains:

salt '*.example.net' test.ping
salt '*.example.*' test.ping

Match both web1-prod and web1-devel minions:

salt -E 'web1-(prod|devel)' test.ping

Simple lists of minion id's:

salt -L 'web1,web2,web3' test.ping

Grains
Match all CentOS minions:

salt -G 'os:CentOS' test.ping

Match 64-bit CPUs minions, return number of available cores:

salt -G 'cpuarch:x86_64' grains.item num_cpus

Grains can be statically assigned within the minion configuration file. Can also write custom grains (python functions) and sync to minions.
States
YAML files
Could be Python, but cumbersome
Jinja templates
Starts with top.sls under files_root definition
Demo
...because goats are also love it :)
Why do we need this?
See the full transcript