blob: 09a181e0b15d2b20c549cdeecd3b9f22542a7df7 [file] [log] [blame]
Michael Kutýf0c0aa72015-11-19 21:51:21 +01001cookiecutter-salt-formula
2=========================
Ales Komarek7792c702015-10-19 20:41:02 +02003
Michael Kutýf0c0aa72015-11-19 21:51:21 +01004A cookiecutter_ template for Salt Formula.
Ales Komarek7792c702015-10-19 20:41:02 +02005
Petr Michalec84d25042016-11-15 23:42:12 +01006Usage
Michael Kutýf0c0aa72015-11-19 21:51:21 +01007============
Ales Komarek7792c702015-10-19 20:41:02 +02008
Michael Kutýf0c0aa72015-11-19 21:51:21 +01009.. code-block:: bash
Ales Komarek7792c702015-10-19 20:41:02 +020010
Michael Kutýf0c0aa72015-11-19 21:51:21 +010011 cookiecutter cookiecutter-salt-formula
Petr Michalecd1ff7bd2016-07-14 10:43:13 +020012
13
14Init Kitchen CI
15===============
16
Petr Michalec84d25042016-11-15 23:42:12 +010017Install 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 Michalecd1ff7bd2016-07-14 10:43:13 +020020
21.. code-block:: bash
22
Petr Michalec84d25042016-11-15 23:42:12 +010023 pip install cookiecutter
Petr Michalecd1ff7bd2016-07-14 10:43:13 +020024 pip install envtpl
Petr Michalec84d25042016-11-15 23:42:12 +010025 gem install kitchen-docker kitchen-vagrant kitchen-salt kitchen-openstack kitchen-inspec busser-serverspec
Petr Michalecd1ff7bd2016-07-14 10:43:13 +020026
27Once 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
34Instantly for latest version or on existing formulas:
35
36.. code-block:: bash
37
Petr Michalec60e3ab52016-09-23 10:34:21 +020038 curl -skL "https://raw.githubusercontent.com/tcpcloud/cookiecutter-salt-formula/master/kitchen-init.sh" | bash -s --