2016-06-05 20:56:05 +00:00
|
|
|
require "vagrant"
|
2015-04-20 17:13:21 +00:00
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestPhoton
|
2016-06-05 20:56:05 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "VMware Photon guest"
|
|
|
|
description "VMware Photon guest support."
|
2015-04-20 17:13:21 +00:00
|
|
|
|
2016-06-05 20:56:05 +00:00
|
|
|
guest("photon", "linux") do
|
|
|
|
require_relative "guest"
|
2015-04-20 17:13:21 +00:00
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2016-06-05 20:56:05 +00:00
|
|
|
guest_capability("photon", "change_host_name") do
|
|
|
|
require_relative "cap/change_host_name"
|
2015-04-20 17:13:21 +00:00
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-05 20:56:05 +00:00
|
|
|
guest_capability("photon", "configure_networks") do
|
|
|
|
require_relative "cap/configure_networks"
|
2015-04-20 17:13:21 +00:00
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2016-06-05 20:56:05 +00:00
|
|
|
guest_capability("photon", "docker_daemon_running") do
|
|
|
|
require_relative "cap/docker"
|
2015-04-20 17:13:21 +00:00
|
|
|
Cap::Docker
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|