Merge "Explicitly say that ovs_redhat parent is ovs"

This commit is contained in:
Jenkins 2015-11-14 13:34:47 +00:00 committed by Gerrit Code Review
commit 804d9cba5c
2 changed files with 10 additions and 2 deletions

View File

@ -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__), '.','ovs.rb'))
BASE = '/etc/sysconfig/network-scripts/ifcfg-'
@ -10,7 +11,11 @@ DEFAULT = {
'NM_CONTROLLED' => 'no',
'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'
confine :osfamily => :redhat

View File

@ -1,6 +1,9 @@
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'
confine :osfamily => :redhat, :operatingsystemmajrelease => 6