File tree Expand file tree Collapse file tree
templates/default/neutron Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 action :purge
2626end
2727
28- template '/etc/openstack-dashboard/local_settings.py ' do
29- source 'horizon/local_settings.py .erb'
28+ template '/etc/apache2/conf-available/ openstack-dashboard.conf ' do
29+ source 'horizon/openstack-dashboard.conf .erb'
3030 owner 'root'
3131 group 'root'
32- mode 00644
32+ mode 00755
3333 notifies :restart , resources ( :service => 'apache2' )
3434 notifies :restart , resources ( :service => 'memcached' )
3535end
Original file line number Diff line number Diff line change 11prereq_packages = %w[ openvswitch-datapath-dkms ]
22common_packages = %w[ openvswitch-switch
3- neutron-plugin-openvswitch-agent ]
4-
3+ neutron-plugin-openvswitch-agent
4+ neutron-lbaas-agent
5+ haproxy ]
6+ network_services = %w[ openvswitch-switch
7+ neutron-plugin-openvswitch-agent
8+ neutron-lbaas-agent ]
59
610prereq_packages . each do |pkg |
711 package prereq_packages . join ( ' ' ) do
1519 end
1620end
1721
18- service 'openvswitch-switch' do
19- supports :status => true , :restart => true , :reload => true
20- action :nothing
21- end
22-
23- service 'neutron-plugin-openvswitch-agent' do
24- provider Chef ::Provider ::Service ::Upstart
25- action :nothing
22+ network_services . each do |srv |
23+ service srv do
24+ provider Chef ::Provider ::Service ::Upstart
25+ action :nothing
26+ end
2627end
2728
28-
2929template 'neutron network node OVS config' do
3030 path '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'
3131 owner 'root'
4040 :immediately
4141end
4242
43+ template '/etc/neutron/lbaas_agent.ini' do
44+ source 'neutron/lbaas_agent.ini.erb'
45+ owner 'root'
46+ group 'root'
47+ mode '0644'
48+ notifies :restart , resources ( :service => 'neutron-lbaas-agent' )
49+ end
50+
4351bash 'create external bridge' do
4452 not_if ( 'ovs-vsctl list-br | grep br-ex' )
4553 code <<-CODE
Original file line number Diff line number Diff line change 1- %w[ neutron-server ] . each do |pkg |
1+ %w[ neutron-server python-neutronclient ] . each do |pkg |
22 package pkg do
33 action :install
44 end
Original file line number Diff line number Diff line change 11packages = %w[ neutron-l3-agent
22 neutron-dhcp-agent
3- neutron-metadata-agent
4- neutron-plugin-openvswitch-agent
5- neutron-lbaas-agent ]
3+ neutron-metadata-agent ]
64
7- network_services = %w[ openvswitch-switch
8- neutron-plugin-openvswitch-agent
9- neutron-dhcp-agent
5+ network_services = %w[ neutron-dhcp-agent
106 neutron-l3-agent
11- neutron-metadata-agent
12- neutron-lbaas-agent ]
7+ neutron-metadata-agent ]
138
149packages . each do |pkg |
1510 package pkg do
Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
1818# Use veth for an OVS interface or not.
1919# Support kernels with limited namespace support
2020# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True.
21- # ovs_use_veth = False
21+ ovs_use_veth = True
2222
2323# Example of interface_driver option for LinuxBridge
2424# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
2525
2626# The agent requires a driver to manage the loadbalancer. HAProxy is the
2727# opensource version.
28- device_driver = neutron.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
28+ #device_driver = neutron.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
29+ device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
2930# The user group
3031# user_group = nogroup
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ bind_port = <%= node['neutron']['config']['bind_port'] %>
5151core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
5252
5353# Advanced service modules
54- # service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin # , neutron.services.firewall.fwaas_plugin.FirewallPlugin
54+ service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin, neutron.services.firewall.fwaas_plugin.FirewallPlugin
5555# Paste configuration file
5656#api_paste_config = api-paste.ini
5757
@@ -383,5 +383,5 @@ connection = mysql://<%= node['neutron']['db']['name'] %>:<%= node['neutron']['d
383383# example of non-default provider:
384384# service_provider=FIREWALL:name2:firewall_driver_path
385385# --- Reference implementations ---
386- # service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
386+ service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
387387#service_provider=FIREWALL:Iptables:neutron.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver:default
You can’t perform that action at this time.
0 commit comments