Merge pull request #1490 from glensc/pld-distro

add basic pld linux support
This commit is contained in:
Mitchell Hashimoto 2013-03-25 10:42:42 -07:00
commit 5fbcc13f19
3 changed files with 29 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module VagrantPlugins
return :fedora if comm.test("grep 'Fedora release 1[678]' /etc/redhat-release")
return :redhat if comm.test("cat /etc/redhat-release")
return :suse if comm.test("cat /etc/SuSE-release")
return :pld if comm.test("cat /etc/pld-release")
return :arch if comm.test("cat /etc/arch-release")
return :solaris if comm.test("grep 'Solaris' /etc/release")
end

View File

@ -0,0 +1,13 @@
require "vagrant"
require Vagrant.source_root.join("plugins/guests/redhat/guest")
module VagrantPlugins
module GuestPld
class Guest < VagrantPlugins::GuestRedHat::Guest
def network_scripts_dir
'/etc/sysconfig/interfaces/'
end
end
end
end

View File

@ -0,0 +1,15 @@
require "vagrant"
module VagrantPlugins
module GuestPld
class Plugin < Vagrant.plugin("2")
name "PLD Linux guest"
description "PLD Linux guest support."
guest("pld") do
require File.expand_path("../guest", __FILE__)
Guest
end
end
end
end