Skip to content

Commit

Permalink
Closes-Bug: #1616665 - Missing Keystone-auth.conf file on separate co…
Browse files Browse the repository at this point in the history
…llector node

If config and collector are separate then the file /etc/contrail/contrail-keystone-auth.conf is missing

Change-Id: Id29de50938540f3448a137676e41b6411d238770
  • Loading branch information
nitishkrishna committed Nov 11, 2016
1 parent 90207c5 commit 48f70d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
$redis_password = $::contrail::params::redis_password,
$config_ip_to_use = $::contrail::params::config_ip_to_use,
$contrail_logoutput = $::contrail::params::contrail_logoutput,
$host_roles = $::contrail::params::host_roles,
) {

$rest_api_port_to_use = $::contrail::params::rest_api_port_to_use
Expand Down Expand Up @@ -200,4 +201,7 @@
file { '/etc/snmp/snmp.conf':
content => 'mibs +ALL'
}
if (!('config' in $host_roles)) {
contain ::contrail::keystone
}
}
3 changes: 2 additions & 1 deletion contrail/environment/modules/contrail/manifests/keystone.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$keystone_admin_tenant = $::contrail::params::keystone_admin_tenant,
$keystone_insecure_flag = $::contrail::params::keystone_insecure_flag,
$multi_tenancy = $::contrail::params::multi_tenancy,
$host_roles = $::contrail::params::host_roles,
) {
contrail_keystone_auth_config {
'KEYSTONE/auth_host' : value => $keystone_ip_to_use;
Expand All @@ -17,7 +18,7 @@
'KEYSTONE/admin_tenant_name' : value => $keystone_admin_tenant;
'KEYSTONE/insecure' : value => $keystone_insecure_flag;
}
if $multi_tenancy == true {
if (($multi_tenancy == true) and ('config' in $host_roles)) {
contrail_keystone_auth_config {
'KEYSTONE/memcache_servers' : value => '127.0.0.1:11211'
}
Expand Down

0 comments on commit 48f70d2

Please sign in to comment.