Skip to content

Commit

Permalink
Closes Bug: #1416585
Browse files Browse the repository at this point in the history
    Minor changes to complete code changes for the above bug fix.

Conflicts:

	contrail/environment/modules/contrail/manifests/params.pp

Change-Id: Ieb2a8bc51da7fe6077511b0bc576394569c2efaf
  • Loading branch information
ajoshi9 committed Feb 3, 2015
1 parent 2d16dd8 commit 8ca089b
Showing 1 changed file with 51 additions and 9 deletions.
60 changes: 51 additions & 9 deletions contrail/environment/modules/contrail/manifests/params.pp
Expand Up @@ -63,7 +63,7 @@
# [*external_vip*]
# Virtual IP address to be used for openstack HA functionality on
# management interface. UI parameter.
# (optional) - Defaults to "" (No openstack HA configured).
# (optional) - Defaults to "" (No openstack mgmt HA configured).
#
# [*contrail_internal_vip*]
# Virtual IP address to be used for contrail HA functionality on
Expand All @@ -73,8 +73,14 @@
# (optional) - Defaults to "" (Follow internal_vip setting for contrail
# HA functionality).
#
# [*contrail_external_vip*]
# Virtual IP address to be used for openstack HA functionality on
# management interface. UI parameter.
# (optional) - Defaults to "" (No contrail mgmt HA configured).
#
# [*database_ip_port*]
# IP port number used by database service.
# Not exposed to SM for modification.
# (optional) - Defaults to "9160".
#
# [*analytics_data_ttl*]
Expand All @@ -93,6 +99,7 @@
# [*puppet_server*]
# If puppet server is used to fetch/store certificates.
# Leave the value at default.
# Not exposed to SM for modification.
# (optional) - Defaults to "" (puppet CA not used).
#
# [*database_initial_token*]
Expand Down Expand Up @@ -140,7 +147,7 @@
#
# [*keystone_service_tenant*]
# Name for service tenant or project of keystone service.
# (optional) - Defaults to "service". UI parameter.
# (optional) - Defaults to "services". UI parameter.
#
# [*keystone_region_name*]
# Name for region in keystone..
Expand All @@ -157,46 +164,55 @@
#
# [*quantum_port*]
# IP port used by quantum/neutron.
# Not exposed to SM for modification.
# (optional) - Defaults to "9697".
#
# [*quantum_service_protocol*]
# IP protocol used by quantum.
# Not exposed to SM for modification.
# (optional) - Defaults to "http".
#
# [*keystone_auth_protocol*]
# Authentication protocol used by keystone.
# Not exposed to SM for modification.
# (optional) - Defaults to "http".
#
# [*neutron_service_protocol*]
# IP protocol used by neutron.
# Not exposed to SM for modification.
# (optional) - Defaults to "http".
#
# [*keystone_auth_port*]
# IP port used by keystone.
# Not exposed to SM for modification.
# (optional) - Defaults to "35357".
#
# [*keystone_insecure_flag*]
# Keystone insecure flag
# Not exposed to SM for modification.
# (optional) - Defaults to false.
#
# [*api_nworkers*]
# Number of worker threads for API service.
# Not exposed to SM for modification.
# (optional) - Defaults to 1.
#
# [*haproxy_flag*]
# Flag to indicate if haproxy is to be used. If
# contrail_internal_vip/internal_vip is being used, even
# if haproxy flag is set, value of false is passed to modules.
# (optional) - Defaults to false. UI parameter.
# (optional) - Defaults to "disable". UI parameter.
#
# [*manage_neutron*]
# if manage_neutron is false, neutron service tenant/user/role
# is not created in keystone by contrail.
# Not exposed to SM for modification.
# (optional) - Defaults to true.
#
# [*openstack_manage_amqp*]
# flag to indicate if amqp server is on openstack or contrail
# config node.
# Not exposed to SM for modification.
# (optional) - Defaults to true (managed by contrail config).
#
# [*amqp_server_ip*]
Expand All @@ -206,6 +222,7 @@
#
# [*zk_ip_port*]
# IP port used by zookeeper service.
# Not exposed to SM for modification.
# (optional) - Defaults to "2181".
#
# [*hc_interval*]
Expand All @@ -214,26 +231,32 @@
#
# [*vmware_ip*]
# vmware ip address for cluster wth ESXi server.
# Not exposed to SM for modification.
# (optional) - Defaults to "" (No ESXi or vmware configuration).
#
# [*vmware_username*]
# vmware username for cluster with esxi server.
# Not exposed to SM for modification.
# (optional) - Defaults to "" (No ESXi or vmware configuration).
#
# [*vmware_password*]
# vmware password for cluster with ESXi server.
# Not exposed to SM for modification.
# (optional) - Defaults to "" (No ESXi or vmware configuration).
#
# [*vmware_vswitch*]
# vmware vswitch for cluster with ESXi server.
# Not exposed to SM for modification.
# (optional) - Defaults to "" (No ESXi or vmware configuration).
#
# [*keepalived_vrid*]
# Virtual router id value used by keepalived (VRRP)
# Not exposed to SM for modification.
# (optional) - Defaults to 100.
#
# [*mysql_root_password*]
# Root password for mysql access.
# Not exposed to SM for modification.
# (optional) - Defaults to "c0ntrail123"
#
# [*openstack_mgmt_ip_list*]
Expand All @@ -251,26 +274,32 @@
#
# [*metadata_secret*]
# Metadata secret value.
# Not exposed to SM for modification.
# (optional) - Defaults to ""
#
# [*vgw_public_subnet*]
# Virtual gateway public subnet value.
# Not exposed to SM for modification.
# (optional) - Defaults to "".
#
# [*vgw_public_vn_name*]
# Virtual gateway public VN name.
# Not exposed to SM for modification.
# (optional) - Defaults to "".
#
# [*vgw_interface*]
# Virtual gateway interface value.
# Not exposed to SM for modification.
# (optional) - Defaults to "".
#
# [*vgw_gateway_routes*]
# Virtual gateway routes
# Not exposed to SM for modification.
# (optional) - Defaults to "".
#
# [*orchestrator*]
# Orchestrator value.
# Not exposed to SM for modification.
# (optional) - Defaults to "openstack".
#
# [*contrail_repo_name*]
Expand All @@ -286,10 +315,12 @@
#
# [*kernel_upgrade*]
# Flag to indicate where to update kernel (yes/no).
# Not exposed to SM for modification.
# (optional) - Defaults to "yes".
#
# [*kernel_version*]
# kernel version to upgrade to.
# Not exposed to SM for modification.
# (optional) - Defaults to "3.13.0-34".
#
# [*storage_num_osd*]
Expand Down Expand Up @@ -338,6 +369,11 @@
# HA configuration only. UI parameter.
# (optional) - Defaults to "" (no HA configuration).
#
# [*nfs_glance_path*]
# Complete path of NFS mount to store glance images.
# HA configuration only. UI parameter.
# (optional) - Defaults to "" (no HA configuration).
#
# [*host_non_mgmt_ip*]
# Specify address of data/control interface, only if there are separate interfaces
# for management and data/control. If system has single interface for both, leave
Expand Down Expand Up @@ -374,8 +410,13 @@
# the roles configured on this server.
# (optional) - Defaults to "" (no storage configuration).
#
# [*external_bgp*]
# IP address of external BGP router.
# (optional) - Defaults to "" (no external BGP router).
#
# [*contrail_plugin_location*]
# path to contrail neutron plugin. Use default value.
# Not exposed to SM for modification.
# (optional) - Defaults to "NEUTRON_PLUGIN_CONFIG=\'/etc/neutron/plugins/opencontrail/ContrailPlugin.ini\'".
#
class contrail::params (
Expand All @@ -396,6 +437,7 @@
$internal_vip = "",
$external_vip = "",
$contrail_internal_vip = "",
$contrail_external_vip = "",
$database_ip_port = "9160",
$analytics_data_ttl = 48,
$analytics_syslog_port = -1,
Expand All @@ -410,7 +452,7 @@
$keystone_service_token = "c0ntrail123",
$keystone_admin_user = "admin",
$keystone_admin_tenant = "admin",
$keystone_service_tenant = "service",
$keystone_service_tenant = "services",
$keystone_region_name = "RegionOne",
$multi_tenancy = false,
$zookeeper_ip_list = undef,
Expand All @@ -421,7 +463,7 @@
$keystone_auth_port = 35357,
$keystone_insecure_flag = false,
$api_nworkers = 1,
$haproxy_flag = false,
$haproxy_flag = "disable",
$manage_neutron = true,
$openstack_manage_amqp = false,
$amqp_server_ip = "",
Expand Down Expand Up @@ -458,14 +500,13 @@
$storage_osd_disks = "",
$storage_enabled = "",
$nfs_server = "",
$nfs_glance_path = "",
$host_non_mgmt_ip = "",
$host_non_mgmt_gateway = "",
$openstack_passwd_list,
$openstack_user_list,
$compute_passwd_list,
$host_roles = "",
$kernel_upgrade = "yes",
$kernel_version = "3.13.0-34",
$external_bgp = "",
$contrail_plugin_location = "NEUTRON_PLUGIN_CONFIG=\'/etc/neutron/plugins/opencontrail/ContrailPlugin.ini\'"
) {
Expand All @@ -474,11 +515,12 @@
$keystone_admin_token = $keystone_admin_password

if (($contrail_internal_vip != "") or
($internal_vip != "")) {
($internal_vip != "") or
($haproxy_flag != "enable")) {
$haproxy = false
}
else {
$haproxy = $haproxy_flag
$haproxy = true
}

if ($zookeeper_ip_list == undef) {
Expand Down

0 comments on commit 8ca089b

Please sign in to comment.