uvsmtid / common-salt-states

A framework of interrelated states and pillars on top of Saltstack common to other projects.
Apache License 2.0
2 stars 0 forks source link

Upgrade `generate_bootstrap_package.sh` script to generate bootstrap for target profile name #31

Closed uvsmtid closed 8 years ago

uvsmtid commented 8 years ago

Currently, script generate_bootstrap_package.sh generates bootstrap for source environment.

It is actually not worth much - all it does is making it more convenient (not to type lengthy commands) to run bootstrap with overridden enable_bootstrap_target_envs and verify nothing has failed.

So, this script will be even more worthless because there will be no need to craft command line. Bootstrap generation is, in fact, supposed to generate package for single target environment only anyway - see #26. And enable_bootstrap_target_envs is supposed to be removed by #28.

To make more useful allow building bootstrap for any target profile name - checkout specified branch in target pillar repository (according to profile name specified on the command line).

uvsmtid commented 8 years ago

Issue #29 is pre-requisite for updated functionality of this script.

uvsmtid commented 8 years ago

This is done. See this comment how.

See commit 423ad17efd98f0519c0941b09b0486daadcfa980 for the actual changes.