Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created March 5, 2018 21:23
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 whytewolf/b48db787e38a7288bd31c818de5fae46 to your computer and use it in GitHub Desktop.
Save whytewolf/b48db787e38a7288bd31c818de5fae46 to your computer and use it in GitHub Desktop.
{% macro do_something(port) %}
/etc/init/dosomething-{{ port }}.conf:
file.managed:
- source: salt://files/etc/init/dosomething.conf
- user: root
- group: root
- mode: '0644'
- template: jinja
- context:
port: {{ port }}
{% endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment