Revision 39de55208b8dde961fb3c7ae71c5b7f7ca1ab8fe authored by Faidon Liambotis on 07 June 2017, 13:47:48 UTC, committed by Faidon Liambotis on 07 June 2017, 14:07:34 UTC
Extract the primary interface by looking at the default gateway instead,
and use that in the single place we were hardcoding eth0. We may soon
not use ethN interfaces, and this was already broken in a handful of
cases over the years where the primary one was e.g eth2.

The only downside of this is that errors like plugging in the wrong NIC
of a server won't become installation failures and thus may never be
caught.

Bug: T164444
Change-Id: If377da20cbe7a0ea35c2e2a16659847154a6a2ae
1 parent 5fce2d6
Raw File
Gemfile
source 'https://rubygems.org'

gem 'puppet', '~> 3.7.0'
gem 'xmlrpc' if RUBY_VERSION >= '2.4.0'
gem 'puppet-strings', '~> 1.0.0'
gem 'rspec-puppet', '~> 2.3.2'
gem 'puppetlabs_spec_helper', '< 2.0.0'
# Puppet 3.7 fails on ruby 2.2+
# https://tickets.puppetlabs.com/browse/PUP-3796
gem 'safe_yaml', '~> 1.0.4'

gem 'rake', '~> 10.4', '>= 10.4.2'
gem 'git', '1.3.0'
gem 'puppet-lint', '2.0.2'
gem 'rubocop', '~> 0.35.1', require: false
back to top