Skip to content

Commit

Permalink
Install package libreswan in RHEL 7 systems for vpnaas
Browse files Browse the repository at this point in the history
RHEL 7 systems have replaced the openswan package with libreswan.

Change-Id: I4c8e891b83b8301cb111af1be6e84ec4cf9c69a1
  • Loading branch information
hogepodge committed Oct 5, 2014
1 parent 3e8f7bc commit cd831f7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
6 changes: 5 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@

$vpnaas_agent_package = 'openstack-neutron-vpn-agent'
$vpnaas_agent_service = 'neutron-vpn-agent'
$openswan_package = 'openswan'
if $::operatingsystemrelease =~ /^7.*/ {
$openswan_package = 'libreswan'
} else {
$openswan_package = 'openswan'
}

$l3_agent_package = false
$l3_agent_service = 'neutron-l3-agent'
Expand Down
24 changes: 21 additions & 3 deletions spec/classes/neutron_agents_vpnaas_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,31 @@
it_configures 'neutron vpnaas agent'
end

context 'on RedHat platforms' do
context 'on RedHat 6 platforms' do
let :facts do
{ :osfamily => 'RedHat' }
{ :osfamily => 'RedHat',
:operatingsystemrelease => '6.5',
:operatingsystemmajrelease => 6 }
end

let :platform_params do
{ :openswan_package => 'openswan',
{ :openswan_package => 'openswan',
:vpnaas_agent_package => 'openstack-neutron-vpn-agent',
:vpnaas_agent_service => 'neutron-vpn-agent'}
end

it_configures 'neutron vpnaas agent'
end

context 'on RedHat 7 platforms' do
let :facts do
{ :osfamily => 'RedHat',
:operatingsystemrelease => '7.1.2',
:operatingsystemmajrelease => 7 }
end

let :platform_params do
{ :openswan_package => 'libreswan',
:vpnaas_agent_package => 'openstack-neutron-vpn-agent',
:vpnaas_agent_service => 'neutron-vpn-agent'}
end
Expand Down

0 comments on commit cd831f7

Please sign in to comment.