Merge "Explicitly say that ovs_redhat parent is ovs"
This commit is contained in:
commit
804d9cba5c
@ -1,4 +1,5 @@
|
|||||||
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'puppetx', 'redhat', 'ifcfg.rb'))
|
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'puppetx', 'redhat', 'ifcfg.rb'))
|
||||||
|
require File.expand_path(File.join(File.dirname(__FILE__), '.','ovs.rb'))
|
||||||
|
|
||||||
BASE = '/etc/sysconfig/network-scripts/ifcfg-'
|
BASE = '/etc/sysconfig/network-scripts/ifcfg-'
|
||||||
|
|
||||||
@ -10,7 +11,11 @@ DEFAULT = {
|
|||||||
'NM_CONTROLLED' => 'no',
|
'NM_CONTROLLED' => 'no',
|
||||||
'NOZEROCONF' => 'yes' }
|
'NOZEROCONF' => 'yes' }
|
||||||
|
|
||||||
Puppet::Type.type(:vs_port).provide(:ovs_redhat, :parent => :ovs) do
|
Puppet::Type.type(:vs_port).provide(
|
||||||
|
:ovs_redhat,
|
||||||
|
:parent => Puppet::Type.type(:vs_port).provider(:ovs)
|
||||||
|
) do
|
||||||
|
|
||||||
desc 'Openvswitch port manipulation for RedHat OSes family'
|
desc 'Openvswitch port manipulation for RedHat OSes family'
|
||||||
|
|
||||||
confine :osfamily => :redhat
|
confine :osfamily => :redhat
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
require File.expand_path(File.join(File.dirname(__FILE__), '.','ovs_redhat.rb'))
|
require File.expand_path(File.join(File.dirname(__FILE__), '.','ovs_redhat.rb'))
|
||||||
|
|
||||||
Puppet::Type.type(:vs_port).provide(:ovs_redhat_el6, :parent => :ovs_redhat) do
|
Puppet::Type.type(:vs_port).provide(
|
||||||
|
:ovs_redhat_el6,
|
||||||
|
:parent => Puppet::Type.type(:vs_port).provider(:ovs_redhat)
|
||||||
|
) do
|
||||||
desc 'Openvswitch port manipulation for RedHat OSes family'
|
desc 'Openvswitch port manipulation for RedHat OSes family'
|
||||||
|
|
||||||
confine :osfamily => :redhat, :operatingsystemmajrelease => 6
|
confine :osfamily => :redhat, :operatingsystemmajrelease => 6
|
||||||
|
Loading…
Reference in New Issue
Block a user