add basic pld linux support

PLD Linux Distribution: https://www.pld-linux.org/
This commit is contained in:
Elan Ruusamäe 2013-03-24 19:38:56 +02:00
parent 43d85930ed
commit bd8a24e945
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