Michael Kutý | f0c0aa7 | 2015-11-19 21:51:21 +0100 | [diff] [blame] | 1 | cookiecutter-salt-formula |
| 2 | ========================= |
Ales Komarek | 7792c70 | 2015-10-19 20:41:02 +0200 | [diff] [blame] | 3 | |
Michael Kutý | f0c0aa7 | 2015-11-19 21:51:21 +0100 | [diff] [blame] | 4 | A cookiecutter_ template for Salt Formula. |
Ales Komarek | 7792c70 | 2015-10-19 20:41:02 +0200 | [diff] [blame] | 5 | |
Petr Michalec | 84d2504 | 2016-11-15 23:42:12 +0100 | [diff] [blame^] | 6 | Usage |
Michael Kutý | f0c0aa7 | 2015-11-19 21:51:21 +0100 | [diff] [blame] | 7 | ============ |
Ales Komarek | 7792c70 | 2015-10-19 20:41:02 +0200 | [diff] [blame] | 8 | |
Michael Kutý | f0c0aa7 | 2015-11-19 21:51:21 +0100 | [diff] [blame] | 9 | .. code-block:: bash |
Ales Komarek | 7792c70 | 2015-10-19 20:41:02 +0200 | [diff] [blame] | 10 | |
Michael Kutý | f0c0aa7 | 2015-11-19 21:51:21 +0100 | [diff] [blame] | 11 | cookiecutter cookiecutter-salt-formula |
Petr Michalec | d1ff7bd | 2016-07-14 10:43:13 +0200 | [diff] [blame] | 12 | |
| 13 | |
| 14 | Init Kitchen CI |
| 15 | =============== |
| 16 | |
Petr Michalec | 84d2504 | 2016-11-15 23:42:12 +0100 | [diff] [blame^] | 17 | Install prerequisites. |
| 18 | - `envtpl` is renders jinja2 templates on the command line with shell environment variables. |
| 19 | - gems required dpends on driver configured to be used (docker by default) |
Petr Michalec | d1ff7bd | 2016-07-14 10:43:13 +0200 | [diff] [blame] | 20 | |
| 21 | .. code-block:: bash |
| 22 | |
Petr Michalec | 84d2504 | 2016-11-15 23:42:12 +0100 | [diff] [blame^] | 23 | pip install cookiecutter |
Petr Michalec | d1ff7bd | 2016-07-14 10:43:13 +0200 | [diff] [blame] | 24 | pip install envtpl |
Petr Michalec | 84d2504 | 2016-11-15 23:42:12 +0100 | [diff] [blame^] | 25 | gem install kitchen-docker kitchen-vagrant kitchen-salt kitchen-openstack kitchen-inspec busser-serverspec |
Petr Michalec | d1ff7bd | 2016-07-14 10:43:13 +0200 | [diff] [blame] | 26 | |
| 27 | Once you create your `tests/pillar` structure (required if you want to auto populate kitchen test suites) |
| 28 | |
| 29 | .. code-block:: bash |
| 30 | |
| 31 | pip install envtpl |
| 32 | ./kitchen-init.sh |
| 33 | |
| 34 | Instantly for latest version or on existing formulas: |
| 35 | |
| 36 | .. code-block:: bash |
| 37 | |
Petr Michalec | 60e3ab5 | 2016-09-23 10:34:21 +0200 | [diff] [blame] | 38 | curl -skL "https://raw.githubusercontent.com/tcpcloud/cookiecutter-salt-formula/master/kitchen-init.sh" | bash -s -- |