lib/vagrant/util/guest_inspection.rb in vagrant-unbundled-2.0.1.0 vs lib/vagrant/util/guest_inspection.rb in vagrant-unbundled-2.0.2.0
- old
+ new
@@ -13,14 +13,30 @@
# @return [Boolean]
def systemd?(comm)
comm.test("systemctl | grep '^-\.mount'")
end
+ # systemd-networkd.service is in use
+ #
+ # @return [Boolean]
+ def systemd_networkd?(comm)
+ comm.test("sudo systemctl status systemd-networkd.service")
+ end
+
# systemd hostname set is via hostnamectl
#
# @return [Boolean]
def hostnamectl?(comm)
comm.test("hostnamectl")
+ end
+
+ ## netplan helpers
+
+ # netplan is installed
+ #
+ # @return [Boolean]
+ def netplan?(comm)
+ comm.test("netplan -h")
end
## nmcli helpers
# nmcli is installed