Deploying with salt

37 views
Skip to first unread message

Alfredo Palhares

unread,
May 21, 2014, 11:55:29 AM5/21/14
to salt-users

Hello fellow salt users,

So I am in the process of elaborating a deploy process of our new
application. I would like for salt (with combination of other tools) to
be my tool of choice, just because the whole infrastruture is already
dealt with it.

First toughs that come into mind.

How do you orchestrate operations ? This is very important, not only
talking on the state runing order, but between minions, like on
multi webserver cenario controlled by a series of load balancers.
While a server is being deployed into, before the load balancer would
de assign that machine of his duty in order to keep the service up
and runing.

What are your prefered methods of deployment ? I know this can be
very specific from application to application but I would like to hear
your ways.

Any limitations of the tools you use, and how do you work around it?

Any general opinios would be very appreciated at this phase. I am trying
to collect as much information as I can get.


Thanks in advance.


--
Regards,
Alfredo Palhares

Seth House

unread,
May 22, 2014, 6:25:31 PM5/22/14
to salt-...@googlegroups.com
On Wed, May 21, 2014 at 9:55 AM, Alfredo Palhares
<maste...@masterkorp.net> wrote:
> How do you orchestrate operations ?

There are a few ways of orchestrating operations across many minions.

The most direct way is to orchestrate all operations directly from the
master via the orchestrate runner. (Note the "overstate" runner
mentioned in that document is on a deprecation path.)

http://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html#the-orchestrate-runner

You can do similar things but from a minion using the Peer system.
This is generally overkill. Also, note the security implications of
turning this system on.

http://docs.saltstack.com/en/latest/ref/peer.html

If you just need to share information between minions that can be a
few minutes stale, Salt Mine is extremely simple to use.

http://docs.saltstack.com/en/latest/topics/mine/index.html

And finally you can use Salt's event system and Reactor to fire custom
events from one minion that then cause the master to take some action
(such as running a command on other minions).

http://docs.saltstack.com/en/latest/topics/event/index.html
http://docs.saltstack.com/en/latest/topics/reactor/index.html
Reply all
Reply to author
Forward
0 new messages