2023-08-10 16:53:25 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2012-04-19 00:23:25 -04:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
|
module GuestRedHat
|
2012-11-07 00:14:45 -05:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2015-05-19 06:58:19 -04:00
|
|
|
name "Red Hat Enterprise Linux guest"
|
|
|
|
|
description "Red Hat Enterprise Linux guest support."
|
2012-04-19 00:23:25 -04:00
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest(:redhat, :linux) do
|
2016-06-05 19:13:06 -04:00
|
|
|
require_relative "guest"
|
2012-05-23 18:57:43 -04:00
|
|
|
Guest
|
|
|
|
|
end
|
2013-04-04 15:09:40 -04:00
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :change_host_name) do
|
2013-04-04 15:09:40 -04:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
|
Cap::ChangeHostName
|
|
|
|
|
end
|
|
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :configure_networks) do
|
2013-04-04 15:09:40 -04:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
|
end
|
|
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :flavor) do
|
2014-08-31 01:44:48 -04:00
|
|
|
require_relative "cap/flavor"
|
|
|
|
|
Cap::Flavor
|
|
|
|
|
end
|
|
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :network_scripts_dir) do
|
2013-04-04 15:09:40 -04:00
|
|
|
require_relative "cap/network_scripts_dir"
|
|
|
|
|
Cap::NetworkScriptsDir
|
|
|
|
|
end
|
2014-01-09 19:58:20 -05:00
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :nfs_client_install) do
|
2014-01-09 19:58:20 -05:00
|
|
|
require_relative "cap/nfs_client"
|
|
|
|
|
Cap::NFSClient
|
|
|
|
|
end
|
2014-01-30 22:26:43 -05:00
|
|
|
|
2016-06-17 19:45:20 -04:00
|
|
|
guest_capability(:redhat, :rsync_install) do
|
2014-01-30 22:26:43 -05:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
|
Cap::RSync
|
|
|
|
|
end
|
2020-03-25 12:20:53 -04:00
|
|
|
|
|
|
|
|
guest_capability(:redhat, :smb_install) do
|
|
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
2012-04-19 00:23:25 -04:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|