Skip to content

Commit

Permalink
closes-Bug: #1416354
Browse files Browse the repository at this point in the history
    Corrected typo in provision_contrail.pp that was causing provision_external_bgp script to fail.
    Also for contrail-device-manager to be up with multi-tenancy, the configuration file
    contrail-keystone-auth.conf is needed.
    Tested on setup with external router successfully.
    With this change, now multi_tenancy default is changed from false to true.

Change-Id: Ifb8a28c065b46adb05f721b4990bde798aeb26db
  • Loading branch information
ajoshi9 committed Feb 13, 2015
1 parent 2fa0674 commit 94f0ef4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
13 changes: 13 additions & 0 deletions contrail/environment/modules/contrail/manifests/config.pp
Expand Up @@ -116,6 +116,11 @@
# If Rabbitmq is running on a different server, specify its IP address here.
# (optional) - Defaults to "".
#
# [*openstack_mgmt_ip*]
# Management interface address of openstack node (if management and control are separate
# interfaces on that node)
# (optional) - Defaults to "", meaning use openstack_ip.
#
# [*internal_vip*]
# Virtual mgmt IP address for openstack modules
# (optional) - Defaults to ""
Expand Down Expand Up @@ -196,6 +201,7 @@
$manage_neutron = $::contrail::params::manage_neutron,
$openstack_manage_amqp = $::contrail::params::openstack_manage_amqp,
$amqp_server_ip = $::contrail::params::amqp_server_ip,
$openstack_mgmt_ip = $::contrail::params::openstack_mgmt_ip_list_to_use[0],
$internal_vip = $::contrail::params::internal_vip,
$external_vip = $::contrail::params::external_vip,
$contrail_internal_vip = $::contrail::params::contrail_internal_vip,
Expand Down Expand Up @@ -440,6 +446,13 @@
content => template("$module_name/contrail-api.conf.erb"),
}
->
file { "/etc/contrail/contrail-keystone-auth.conf" :
ensure => present,
require => Package["contrail-openstack-config"],
notify => Service["supervisor-config"],
content => template("$module_name/contrail-keystone-auth.conf.erb"),
}
->
file { "/etc/contrail/contrail-schema.conf" :
ensure => present,
require => Package["contrail-openstack-config"],
Expand Down
2 changes: 1 addition & 1 deletion contrail/environment/modules/contrail/manifests/params.pp
Expand Up @@ -453,7 +453,7 @@
$keystone_admin_tenant = "admin",
$keystone_service_tenant = "services",
$keystone_region_name = "RegionOne",
$multi_tenancy = false,
$multi_tenancy = true,
$zookeeper_ip_list = undef,
$quantum_port = "9697",
$quantum_service_protocol = "http",
Expand Down
Expand Up @@ -54,7 +54,7 @@
# (optional) - Defaults to "".
#
class contrail::provision_contrail (
$keystone_admin_tenant = $::contrail::params::keystone_admin_tenent,
$keystone_admin_tenant = $::contrail::params::keystone_admin_tenant,
$keystone_admin_user = $::contrail::params::keystone_admin_user,
$keystone_admin_password = $::contrail::params::keystone_admin_password,
$encap_priority = $::contrail::params::encap_priority,
Expand Down
@@ -0,0 +1,16 @@
[KEYSTONE]
<% if @keystone_ip != "" -%>
auth_host=<%= @keystone_ip %>
<% elsif @internal_vip != "" -%>
auth_host=<%= @internal_vip %>
<% else -%>
auth_host=<%= @openstack_ip %>
<% end -%>
auth_protocol=<%= @keystone_auth_protocol %>
auth_port=<%= @keystone_auth_port %>
admin_user=<%= @keystone_admin_user %>
admin_password=<%= @keystone_admin_password %>
admin_token=<%= @keystone_service_token %>
admin_tenant_name=<%= @keystone_admin_tenant %>
insecure=<%= keystone_insecure_flag %>
<%= memcached_opt %>

0 comments on commit 94f0ef4

Please sign in to comment.