mirror of
https://github.com/saltstack-formulas/vagrant-formula.git
synced 2024-11-28 03:27:55 +01:00
13 lines
469 B
Plaintext
13 lines
469 B
Plaintext
|
{% 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) %}
|