0
0
mirror of https://github.com/saltstack-formulas/vagrant-formula.git synced 2024-11-27 23:07:47 +01:00
vagrant-formula/vagrant/map.jinja
2016-02-03 00:03:11 +01:00

13 lines
469 B
Django/Jinja

{% import_yaml 'vagrant/defaults.yaml' as default_settings %}
{% set vagrant = salt['pillar.get']('vagrant', default=default_settings.get('vagrant'), merge=True) %}
{% set baseurl = 'https://releases.hashicorp.com/vagrant/' ~ vagrant.version ~ '/vagrant_' ~ vagrant.version ~ '_x86_64' %}
{% set vagrant = salt['grains.filter_by']({
'RedHat': {
'url': baseurl ~ '.rpm'
},
'Debian': {
'url': baseurl ~ '.deb'
}
}, grain = 'os_family', merge=vagrant) %}