2013-08-03 18:31:42 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestCoreOS
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "CoreOS guest"
|
|
|
|
description "CoreOS guest support."
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest(:coreos, :linux) do
|
2016-05-31 03:59:26 +00:00
|
|
|
require_relative "guest"
|
2013-08-03 18:31:42 +00:00
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:coreos, :change_host_name) do
|
2013-08-03 18:31:42 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:coreos, :configure_networks) do
|
2013-08-03 18:31:42 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
2014-04-10 20:42:12 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:coreos, :docker_daemon_running) do
|
2014-04-10 20:42:12 +00:00
|
|
|
require_relative "cap/docker"
|
|
|
|
Cap::Docker
|
|
|
|
end
|
2013-08-03 18:31:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|