diff options
author | varac <varacanero@zeromail.org> | 2013-10-16 00:02:27 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-10-16 00:02:27 +0200 |
commit | 27f6e30c0096970c49efcf572227d39fe5612ed9 (patch) | |
tree | 50eaec5ef585f5b8722837cafbf746dcc201ddcf /puppet/modules/site_config/manifests/params.pp | |
parent | d4ba280889651c16ffe99e3e2136a02665240e70 (diff) |
vagrant: support other providers besides virtualbox (Bug #4158)
Diffstat (limited to 'puppet/modules/site_config/manifests/params.pp')
-rw-r--r-- | puppet/modules/site_config/manifests/params.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_config/manifests/params.pp b/puppet/modules/site_config/manifests/params.pp index 59a161e8..2ef391db 100644 --- a/puppet/modules/site_config/manifests/params.pp +++ b/puppet/modules/site_config/manifests/params.pp @@ -3,8 +3,10 @@ class site_config::params { $ip_address = hiera('ip_address') $ip_address_interface = getvar("interface_${ip_address}") $ec2_local_ipv4_interface = getvar("interface_${::ec2_local_ipv4}") + $environment = hiera('environment') - if $::virtual == 'virtualbox' { + + if $environment == 'local' { $interface = 'eth1' } elsif hiera('interface','') != '' { |