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

@@ -10,6 +10,10 @@ linux_packages:
linux_extra_package_{{ name }}:
{%- if package.version == 'latest' %}
pkg.latest:
{%- elif package.version == 'purged' %}
pkg.purged:
{%- elif package.version == 'removed' %}
pkg.removed:
{%- else %}
pkg.installed:
- version: {{ package.version }}
@@ -22,8 +26,8 @@ linux_extra_package_{{ name }}:
- hold: {{ package.hold }}
{%- endif %}
{%- if package.verify is defined %}
- skip_verify: {% if package.verify %}false{% else %}true{% endif %}
- skip_verify: {{ true if package.verify else false }}
{%- endif %}
{%- endfor %}

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

Loading…
Cancel
Save