Use neutron::keystone::authtoken for Neutron manifests
Neutron has moved to neutron::keystone::authtoken, so we need to adapt Packstack. This also fixes a case where, if the network node is not the controller node, Packstack fails. Change-Id: I69850b92338158189a783af2cbe7f90c569607b1 Closes-Bug: #1633491
This commit is contained in:
		@@ -12,11 +12,16 @@ class packstack::neutron::api ()
 | 
			
		||||
    $neutron_vpnaas_enabled  = str2bool(hiera('CONFIG_NEUTRON_VPNAAS'))
 | 
			
		||||
    $neutron_lbaas_enabled   = str2bool(hiera('CONFIG_LBAAS_INSTALL'))
 | 
			
		||||
 | 
			
		||||
    class { '::neutron::server':
 | 
			
		||||
      database_connection   => $neutron_sql_connection,
 | 
			
		||||
    class { '::neutron::keystone::authtoken':
 | 
			
		||||
      username     => 'neutron',
 | 
			
		||||
      password     => $neutron_user_password,
 | 
			
		||||
      auth_uri     => hiera('CONFIG_KEYSTONE_PUBLIC_URL'),
 | 
			
		||||
      auth_url     => hiera('CONFIG_KEYSTONE_ADMIN_URL'),
 | 
			
		||||
      project_name => 'services',
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    class { '::neutron::server':
 | 
			
		||||
      database_connection   => $neutron_sql_connection,
 | 
			
		||||
      sync_db               => true,
 | 
			
		||||
      enabled               => true,
 | 
			
		||||
      api_workers           => hiera('CONFIG_SERVICE_WORKERS'),
 | 
			
		||||
 
 | 
			
		||||
@@ -6,18 +6,20 @@ class packstack::provision::bridge ()
 | 
			
		||||
    $provision_tempest_br    = str2bool(hiera('CONFIG_PROVISION_TEMPEST'))
 | 
			
		||||
    $provision_demo_br       = str2bool(hiera('CONFIG_PROVISION_DEMO'))
 | 
			
		||||
 | 
			
		||||
    $neutron_user_password   = hiera('CONFIG_NEUTRON_KS_PW')
 | 
			
		||||
 | 
			
		||||
    if $provision_demo_br {
 | 
			
		||||
      $floating_range_br = hiera('CONFIG_PROVISION_DEMO_FLOATRANGE')
 | 
			
		||||
    } elsif $provision_tempest_br {
 | 
			
		||||
      $floating_range_br = hiera('CONFIG_PROVISION_TEMPEST_FLOATRANGE')
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    neutron_config {
 | 
			
		||||
      'keystone_authtoken/identity_uri':      value => hiera('CONFIG_KEYSTONE_ADMIN_URL');
 | 
			
		||||
      'keystone_authtoken/auth_uri':          value => hiera('CONFIG_KEYSTONE_PUBLIC_URL');
 | 
			
		||||
      'keystone_authtoken/admin_tenant_name': value => 'services';
 | 
			
		||||
      'keystone_authtoken/admin_user':        value => 'neutron';
 | 
			
		||||
      'keystone_authtoken/admin_password':    value => hiera('CONFIG_NEUTRON_KS_PW');
 | 
			
		||||
    class { '::neutron::keystone::authtoken':
 | 
			
		||||
      username     => 'neutron',
 | 
			
		||||
      password     => $neutron_user_password,
 | 
			
		||||
      auth_uri     => hiera('CONFIG_KEYSTONE_PUBLIC_URL'),
 | 
			
		||||
      auth_url     => hiera('CONFIG_KEYSTONE_ADMIN_URL'),
 | 
			
		||||
      project_name => 'services',
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if $provision_neutron_br and $setup_ovs_bridge {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user