Skip to content

Commit

Permalink
Merge pull request rcbops-cookbooks#127 from cloudnull/Issue803
Browse files Browse the repository at this point in the history
Merged automatically by jenkins after successful build test
  • Loading branch information
rcbjenkins committed Feb 28, 2014
2 parents 7c2c124 + b47ae03 commit c33096f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
4 changes: 3 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
default["neutron"]["notification"]["driver"] = "no_op"
default["neutron"]["notification"]["topics"] = "notifications"

default["neutron"]["database"]["sqlalchemy_pool_size"] = 5
default["neutron"]["database"]["sqlalchemy_pool_size"] = 10
default["neutron"]["database"]["max_overflow"] = 20
default["neutron"]["database"]["pool_timeout"] = 10

default["neutron"]["security_group_api"] = "neutron"
default["neutron"]["isolated_metadata"] = "True"
Expand Down
1 change: 1 addition & 0 deletions files/default/neutron-dist.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Your doing it wrong REDHAT!
14 changes: 13 additions & 1 deletion recipes/neutron-common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
when "log"
notification_driver = "neutron.openstack.common.notifier.log_notifier"
else
notification_driver = nil
msg = "#{notification_provider}, is not currently supported by these cookbooks."
Chef::Application.fatal! msg
end
Expand Down Expand Up @@ -175,7 +176,10 @@
"lbaas_provider" => lbaas_provider,
"fwaas_provider" => fwaas_provider,
"vpnaas_provider" => vpnaas_provider,
"service_plugins" => service_plugins
"service_plugins" => service_plugins,
"sql_max_pool_size" => node["neutron"]["database"]["sqlalchemy_pool_size"],
"sql_max_overflow" => node["neutron"]["database"]["max_overflow"],
"sql_pool_timeout" => node["neutron"]["database"]["pool_timeout"]
)
end

Expand Down Expand Up @@ -223,4 +227,12 @@
link "/etc/neutron/plugin.ini" do
to "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
end

# RHEL YOUR DOING IT WRONG!
cookbook_file "/usr/share/neutron/neutron-dist.conf" do
source "neutron-dist.conf"
mode 0644
owner "root"
group "neutron"
end
end
8 changes: 8 additions & 0 deletions recipes/neutron-vpnaas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
)
end

# Create our root wrap directory
directory "/etc/neutron/rootwrap.d" do
action :create
owner "root"
group "neutron"
mode "755"
end

cookbook_file "/etc/neutron/rootwrap.d/vpnaas.filters" do
source "vpnaas.filters"
owner "root"
Expand Down
7 changes: 7 additions & 0 deletions templates/default/neutron.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
debug = <%= @neutron_debug %>
verbose = <%= @neutron_verbose %>
lock_path = $state_path/lock

bind_host = <%= @neutron_ipaddress %>
bind_port = <%= @neutron_port %>
<% if @neutron_plugin == "ovs" %>
Expand Down Expand Up @@ -41,6 +43,11 @@ agent_down_time = <%= @agent_down_time %>
network_auto_schedule = False
router_auto_schedule = False

[database]
max_pool_size = <%= @sql_max_pool_size %>
max_overflow = <%= @sql_max_overflow %>
pool_timeout = <%= @sql_pool_timeout %>

[AGENT]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
polling_interval = 2
Expand Down

0 comments on commit c33096f

Please sign in to comment.