Skip to content

Instantly share code, notes, and snippets.

@silenius
Created April 26, 2016 13:09
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 silenius/5113ceb119736d66cd0be151d8e3c247 to your computer and use it in GitHub Desktop.
Save silenius/5113ceb119736d66cd0be151d8e3c247 to your computer and use it in GitHub Desktop.
{{ cfg.name }}_config_ru:
file.managed:
- name: {{ cfg.repo.clone_dir}}/config.ru
- source: {{ cfg.repo.clone_dir }}/config.ru.jinja
- template: jinja
- mode: 644
- user: {{ cfg.user }}
- context:
cfg: {{ cfg }}
- require:
- git: {{ cfg.name }}_repository
- prereq:
- file: {{ cfg.name }}_config_ru_template
{{ cfg.name }}_config_ru_template:
file.exists:
- name: {{ cfg.repo.clone_dir }}/config.ru.jinja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment