mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-16 09:08:38 -05:00
Adds suppport for configuring networking on amazonlinux when network devices are handled by networkd. When not handled by networkd, falls back to using the redhat capability.
28 lines
620 B
Ruby
28 lines
620 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestAmazon
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "Amazon Linux guest"
|
|
description "Amazon linux guest support."
|
|
|
|
guest(:amazon, :redhat) do
|
|
require_relative "guest"
|
|
Guest
|
|
end
|
|
|
|
guest_capability(:amazon, :flavor) do
|
|
require_relative "cap/flavor"
|
|
Cap::Flavor
|
|
end
|
|
|
|
guest_capability(:amazon, :configure_networks) do
|
|
require_relative "cap/configure_networks"
|
|
Cap::ConfigureNetworks
|
|
end
|
|
end
|
|
end
|
|
end
|