Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

handle eucanetd init script and policy kit on el6 only #366

Open
wants to merge 1 commit into
base: euca-4.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions recipes/install-source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,19 @@
eucalyptus_dir = "#{source_directory}/eucalyptus"
end

tools_dir = "#{eucalyptus_dir}/tools"
if Chef::VersionConstraint.new("~> 6.0").include?(node['platform_version'])
tools_dir = "#{eucalyptus_dir}/tools"

if node["eucalyptus"]["network"]["mode"] == "EDGE"
execute "ln -sf #{tools_dir}/eucanetd /etc/init.d/eucanetd" do
creates "/etc/init.d/eucanetd"
if node["eucalyptus"]["network"]["mode"] == "EDGE"
execute "ln -sf #{tools_dir}/eucanetd /etc/init.d/eucanetd" do
creates "/etc/init.d/eucanetd"
end
execute "chmod +x #{tools_dir}/eucanetd"
end
execute "chmod +x #{tools_dir}/eucanetd"
end

execute "Copy Policy Kit file for NC" do
command "cp #{tools_dir}/eucalyptus-nc-libvirt.pkla /var/lib/polkit-1/localauthority/10-vendor.d/"
execute "Copy Policy Kit file for NC" do
command "cp #{tools_dir}/eucalyptus-nc-libvirt.pkla /var/lib/polkit-1/localauthority/10-vendor.d/"
end
end

### Add udev rules
Expand Down