Browse Source

Allow purging and removing packages

tags/2016.12
Filip Pytloun 8 years ago
parent
commit
329a31d67e
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      linux/system/package.sls

+ 6
- 2
linux/system/package.sls View File

linux_extra_package_{{ name }}: linux_extra_package_{{ name }}:
{%- if package.version == 'latest' %} {%- if package.version == 'latest' %}
pkg.latest: pkg.latest:
{%- elif package.version == 'purged' %}
pkg.purged:
{%- elif package.version == 'removed' %}
pkg.removed:
{%- else %} {%- else %}
pkg.installed: pkg.installed:
- version: {{ package.version }} - version: {{ package.version }}
- hold: {{ package.hold }} - hold: {{ package.hold }}
{%- endif %} {%- endif %}
{%- if package.verify is defined %} {%- if package.verify is defined %}
- skip_verify: {% if package.verify %}false{% else %}true{% endif %}
- skip_verify: {{ true if package.verify else false }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}


{%- endif %}
{%- endif %}

Loading…
Cancel
Save