Skip to content

thiccbois/salt-formula-cookiecutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-salt-formula

Cookiecutter repository for generating saltstack formula repository skeleton.

Install cookiecutter

Usage

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

Create a new saltstack formula

cd ${DIRECTORY_YOU_WISH_TO_CREATE_THE_SALT-FORMULA_IN}
cookiecutter ~/.cookiecutters/cookiecutter-salt-formula

Follow the prompts for the win!

Salt tests prerequisites

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.

Local configuration

You can also create your own cookiecutter configuration in ~/.cookiecutterrc:

default_context:
    full_name: "Johnny Bravo"
    email: "[email protected]"
    github_username: "johnnybravo"