Skip to content

Instantly share code, notes, and snippets.

@micahhausler
Last active December 23, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micahhausler/6627970 to your computer and use it in GitHub Desktop.
Save micahhausler/6627970 to your computer and use it in GitHub Desktop.
salt django-pillar idea
# yaml
project:
# virtual env path
env: /path/to/venv/bin
# absolute path to django settings
settings_path: /path/to/settings
# django version
version: '1.5.3'
project:
name: my_application
# django_app_name
clients:
# Django model name
client:
# model field to use as a name in the rendered pillar
name: shortname
#list of field names
fields:
- tasty_pie_api_key
- tasty_pie_username
my_application:
clients:
client_1:
tasty_pie_api_key: 317494917369164712917431
tasty_pie_username: client_1_apiuser
client_2:
tasty_pie_api_key: 314073719734197973297222
tasty_pie_username: client_2_apiuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment