From ac69a62331bf04a68c177569095eb7a067a45922 Mon Sep 17 00:00:00 2001 From: Sergey Vasilenko Date: Tue, 26 Mar 2013 17:11:17 +0400 Subject: [PATCH] fix ovs depends --- deployment/puppet/l23network/manifests/l2.pp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/deployment/puppet/l23network/manifests/l2.pp b/deployment/puppet/l23network/manifests/l2.pp index 9ab01e99cd..a469699c96 100644 --- a/deployment/puppet/l23network/manifests/l2.pp +++ b/deployment/puppet/l23network/manifests/l2.pp @@ -19,11 +19,13 @@ class l23network::l2 { status => $::l23network::params::ovs_status_cmd, } - if $::osfamily =~ /(?i)debian/ and !defined(Package["$l23network::params::lnx_bond_tools"]) { - package {"$l23network::params::lnx_bond_tools": - ensure => installed + if $::osfamily =~ /(?i)debian/ { + if !defined(Package["$l23network::params::lnx_bond_tools"]) { + package {"$l23network::params::lnx_bond_tools": + ensure => installed + } } - Package["$l23network::params::lnx_bond_tools"] -> L23network::L3::Ifconfig<||> + Package["$l23network::params::lnx_bond_tools"] -> Service['openvswitch-service'] } if !defined(Package["$l23network::params::lnx_vlan_tools"]) { @@ -31,13 +33,13 @@ class l23network::l2 { ensure => installed } } - Package["$l23network::params::lnx_vlan_tools"] -> L23network::L3::Ifconfig<||> + Package["$l23network::params::lnx_vlan_tools"] -> Service['openvswitch-service'] if !defined(Package["$l23network::params::lnx_ethernet_tools"]) { package {"$l23network::params::lnx_ethernet_tools": ensure => installed } } - Package["$l23network::params::lnx_ethernet_tools"] -> L23network::L3::Ifconfig<||> + Package["$l23network::params::lnx_ethernet_tools"] -> Service['openvswitch-service'] }