Browse Source

Adding ecmp support for neutron.

  - Create pgrc file in /etc/neutron/plugins/plumgrid
  - Using identity v2.0 for MOS7

Change-Id: Ic2ee45682a1eab548491e837fd212aa7c587240d
Ticket: [SOL-807]
Signed-off-by: Muhammad Shahzeb <mshahzeb@plumgrid.com>
Muhammad Shahzeb 2 years ago
parent
commit
75ee8d4327
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      deployment_scripts/puppet/manifests/director.pp

+ 10
- 0
deployment_scripts/puppet/manifests/director.pp View File

@@ -54,6 +54,8 @@ $neutron_db_uri = "mysql://${neutron_db_user}:${neutron_db_password}@${neutron_d
54 54
 
55 55
 # OpenStack Access settings
56 56
 $access_hash              = hiera_hash('access', {})
57
+$admin_username           = pick($access_hash['user'])
58
+$admin_tenant             = pick($access_hash['tenant'])
57 59
 $admin_password           = pick($access_hash['password'])
58 60
 
59 61
 # Add fuel node fqdn to /etc/hosts
@@ -169,3 +171,11 @@ file { 'plumgrid_plugin.py':
169 171
   source => 'puppet:///modules/plumgrid/plumgrid_plugin.py',
170 172
   notify   => Service["$::neutron::params::server_service"]
171 173
 }
174
+
175
+# Update PLUMgrid pgrc file
176
+
177
+file { 'pgrc':
178
+  ensure => present,
179
+  path => '/etc/neutron/plugins/plumgrid/pgrc',
180
+  content => "export os_auth_url=http://$service_endpoint:35357/v2.0\nexport os_admin_user=$admin_username\nexport os_admin_tenant=$admin_tenant\nexport os_admin_password=$admin_password\nexport pg_virtual_ip=$plumgrid_vip\nexport pg_username=$plumgrid_username\nexport pg_password=$plumgrid_password",
181
+}

Loading…
Cancel
Save