| |
@@ -550,3 +550,49 @@
|
| |
end
|
| |
|
| |
let(:nm_yml) { "---\nnetwork:\n version: 2\n renderer: NetworkManager\n ethernets:\n eth1:\n dhcp4: true\n eth2:\n addresses:\n - 33.33.33.10/16\n gateway4: 33.33.0.1\n" }
|
| |
+
|
| |
+ From 1797798760eb72d6b02724f75bc54dd83815e986 Mon Sep 17 00:00:00 2001
|
| |
+ From: Chris Roberts <croberts@hashicorp.com>
|
| |
+ Date: Fri, 28 Sep 2018 07:59:39 -0700
|
| |
+ Subject: [PATCH] Fix module name
|
| |
+
|
| |
+ ---
|
| |
+ plugins/guests/redhat/cap/change_host_name.rb | 2 +-
|
| |
+ 1 file changed, 1 insertion(+), 1 deletion(-)
|
| |
+
|
| |
+ diff --git a/plugins/guests/redhat/cap/change_host_name.rb b/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ index 5da660df05..37c8912a80 100644
|
| |
+ --- a/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ +++ b/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ @@ -3,7 +3,7 @@ module GuestRedHat
|
| |
+ module Cap
|
| |
+ class ChangeHostName
|
| |
+
|
| |
+ - extend Vagrant::Util::GuestInspection
|
| |
+ + extend Vagrant::Util::GuestInspection::Linux
|
| |
+
|
| |
+ def self.change_host_name(machine, name)
|
| |
+ comm = machine.communicate
|
| |
+
|
| |
+ From 11b0d58fa081cd9a27c272244a0d119acc81f32e Mon Sep 17 00:00:00 2001
|
| |
+ From: Chris Roberts <croberts@hashicorp.com>
|
| |
+ Date: Mon, 1 Oct 2018 08:43:49 -0700
|
| |
+ Subject: [PATCH] Include communicator on call
|
| |
+
|
| |
+ ---
|
| |
+ plugins/guests/redhat/cap/change_host_name.rb | 2 +-
|
| |
+ 1 file changed, 1 insertion(+), 1 deletion(-)
|
| |
+
|
| |
+ diff --git a/plugins/guests/redhat/cap/change_host_name.rb b/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ index 37c8912a80..5ceb63665a 100644
|
| |
+ --- a/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ +++ b/plugins/guests/redhat/cap/change_host_name.rb
|
| |
+ @@ -31,7 +31,7 @@ def self.change_host_name(machine, name)
|
| |
+
|
| |
+ restart_command = "service network restart"
|
| |
+
|
| |
+ - if systemd?
|
| |
+ + if systemd?(comm)
|
| |
+ if systemd_networkd?(comm)
|
| |
+ restart_command = "systemctl restart systemd-networkd.service"
|
| |
+ elsif systemd_controlled?(comm, "NetworkManager.service")
|
| |
Copr build:
https://copr.fedorainfracloud.org/coprs/pvalena/vagrant/build/813843/
Up-to-date scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=30436209
Checks:
Smoke test env: