Skip to content

Instantly share code, notes, and snippets.

@kedare
Last active April 5, 2017 10:48
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 kedare/32b6a7b4730af89c21efa2f78f1657f2 to your computer and use it in GitHub Desktop.
Save kedare/32b6a7b4730af89c21efa2f78f1657f2 to your computer and use it in GitHub Desktop.
# Standard packages
{% for package in pillar["ci"]["packages"]["standards"] %}
Package {{ package }} should have the revision {{ pillar["ci"]["revision"] }} active for the {{ pillar['application_environment'] }} environment:
svn.latest:
- name: http://xxxx/{{ pillar['application_environment'] }}/{{ package }}/trunk
- target: C:\inetpub\wwwroot\{{ pillar['application_environment'] }}\{{ package }}
- rev: {{ pillar["ci"]["revision"] }}
- username: {{ pillar["ci"]["svn"]["username"] }}
- password: {{ pillar["ci"]["svn"]["password"] }}
- force: true
- parallel: true
- require:
- Destination directory for {{ package }} should exists
- retry:
attempts: 3
until: true
interval: 10
{% endfor %}
Warnings: 'retry' and 'parallel' are invalid keyword arguments for
'svn.latest'. If you were trying to pass additional data to be
used in a template context, please populate 'context' with 'key:
value' pairs. Your approach will work until Salt Oxygen is out.
Please update your state files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment