{% set version_spec = '1.8.1 sha256=ed0e1ae0f35aecd47e0b3dfb486a230984a08ceda3b371486add4d42714a693d' %}
{% set version, version_hash = version_spec.split() %}


vagrant:
    file.managed:
        - name: /usr/local/src/vagrant-{{ version }}.deb
        - source: https://releases.hashicorp.com/vagrant/{{ version }}/vagrant_{{ version }}_x86_64.deb
        - source_hash: {{ version_hash }}

    cmd.wait:
        - name: dpkg -i /usr/local/src/vagrant-{{ version }}.deb
        - watch:
            - file: vagrant

{% set version_spec = '2.1.1 sha256=cee18b6f3b1209ea5878c22cfd84a9f0004f20ef146cb7a18aada19162928a0f' %}
{% set version, version_hash = version_spec.split() %}


vagrant:
    file.managed:
        - name: /usr/local/src/vagrant-{{ version }}.deb
        - source: https://releases.hashicorp.com/vagrant/{{ version }}/vagrant_{{ version }}_x86_64.deb
        - source_hash: {{ version_hash }}

    cmd.wait:
        - name: dpkg -i /usr/local/src/vagrant-{{ version }}.deb
        - watch:
            - file: vagrant

Update default vagrant version to 2.1.1
Update default vagrant version to 2.1.1

thusoy/salt-states,thusoy/salt-states,thusoy/salt-states,thusoy/salt-states