vagrant-formula/vagrant/map.jinja

13 lines
469 B
Plaintext
Raw Normal View History

2016-02-03 00:03:11 +01:00
{% 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) %}