Skip to content

Instantly share code, notes, and snippets.

@pkruithof
Last active August 29, 2015 14:14
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 pkruithof/3df83deb330656c237ab to your computer and use it in GitHub Desktop.
Save pkruithof/3df83deb330656c237ab to your computer and use it in GitHub Desktop.
{% macro vhost(name, server_name, config={}) %}
{% set defaults = { 'server_name': server_name } %}
{% do defaults.update(config) %}
{{ name }}:
file.managed:
- template: jinja
- source: salt://nginx/site.conf
- defaults: {{ defaults }}
{% endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment