Cookiecutter repository for generating saltstack formula repository skeleton.
cd ${DIRECTORY_YOU_WISH_TO_CREATE_THE_SALT-FORMULA_IN}
Run
cookiecutter https://github.com/thiccbois/salt-formula-cookiecutter.git
This will clone cookiecutter-salt-formula
in your ~/.cookiecutters
directory and prompts you for some new-project related questions.
Once you've answered those, a skeleton project directory will have been created for you.
Once the first clone is done you can simply run:
cookiecutter ~/.cookiecutters/cookiecutter-salt-formula
cd ${DIRECTORY_YOU_WISH_TO_CREATE_THE_SALT-FORMULA_IN}
cookiecutter ~/.cookiecutters/cookiecutter-salt-formula
Follow the prompts for the win!
Before executing make setup
ensure that
- bundler in installed:
gem install bundler
- virtualenv is installed:
pip install virtualenv
Before you execute make tests
ensure that docker
is up'n'running.
You can also create your own cookiecutter
configuration in ~/.cookiecutterrc
:
default_context:
full_name: "Johnny Bravo"
email: "[email protected]"
github_username: "johnnybravo"