Discussion:
Salt-cloud: running custom commands during bootstrap
TheHorse
2014-09-27 15:12:01 UTC
Permalink
Hi all,

I have a requirement to run a few commands during the deploy minion phase
of deploying a new VM. I did some ugly hacking in the bootstrap-salt.sh
script, but this is neither nice, nor flexible. I cannot run these commands
after initial deployment as they are required to set up routes to our
network where the master lives etc.

any ideas/suggestions on a nice clean way to do this?

Thanks
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Joseph Hall
2014-09-27 16:52:22 UTC
Permalink
Passing args to the bootstrap script:

http://docs.saltstack.com/en/latest/topics/cloud/misc.html#deploy-script-arguments

Example scripts, many of which (*bootstrap*sh) can wrap the bootstrap script:

https://github.com/saltstack/salt/tree/develop/salt/cloud/deploy
Post by TheHorse
Hi all,
I have a requirement to run a few commands during the deploy minion phase of
deploying a new VM. I did some ugly hacking in the bootstrap-salt.sh script,
but this is neither nice, nor flexible. I cannot run these commands after
initial deployment as they are required to set up routes to our network
where the master lives etc.
any ideas/suggestions on a nice clean way to do this?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
"In order to create, you have to have the willingness, the desire to
be challenged, to be learning." -- Ferran Adria (speaking at Harvard,
2011)
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...