Puppet: wire in neutron_dnsmasq_options
authorDan Prince <dprince@redhat.com>
Sun, 1 Feb 2015 18:40:23 +0000 (13:40 -0500)
committerDan Prince <dprince@redhat.com>
Wed, 4 Feb 2015 14:33:13 +0000 (09:33 -0500)
This patch updates puppet on the controller so that it
configures the Neutron dnsmasq options file data with
the value provided by the Heat NeutronDnsmasqOptions
parameter.

Properly configuring this setting can help resolve/tune
overcloud instance connectivity issues w/ SSH etc.

Change-Id: If47ab3d3002ebe19fc980ca5d37f84f4d8851f9b

puppet/hieradata/controller.yaml
puppet/overcloud_controller.pp

index e59211d..39d2a48 100644 (file)
@@ -56,6 +56,7 @@ neutron::dhcp_agents_per_network: 2
 neutron::plugins::ml2::tunnel_id_ranges:
   - '1:1000'
 neutron::server::sync_db: true
+neutron::agents::dhcp::dnsmasq_config_file: /etc/neutron/dnsmasq-neutron.conf
 
 # nova
 nova::notify_on_state_change: 'vm_and_task_state'
index c217c5e..f2e8733 100644 (file)
@@ -195,6 +195,14 @@ if hiera('step') >= 2 {
   include ::neutron::agents::dhcp
   include ::neutron::agents::l3
 
+  file { '/etc/neutron/dnsmasq-neutron.conf':
+    content => hiera('neutron_dnsmasq_options'),
+    owner   => 'neutron',
+    group   => 'neutron',
+    notify  => Service['neutron-dhcp-service'],
+    require => Package['neutron'],
+  }
+
   class { 'neutron::plugins::ml2':
     flat_networks        => split(hiera('neutron_flat_networks'), ','),
     tenant_network_types => [hiera('neutron_tenant_network_type')],