Skip to content

Commit

Permalink
SM-QUENCH:moved compute ini files to type/provider
Browse files Browse the repository at this point in the history
Partial-Bug: #1472554

TESTING:
=========
1. provisioned 1 all-in-one node, verified that provision is completed
2. added image, created a network, subnetwork and 2 VMs, verified VMs are
active.
3. Logged-in to contrail-web ui and browsed to verify web-ui is up and
Running.
4. VMs are able to ping each other.
5. VM is able get http://169.254.269.254/openstack (metadata service)

Change-Id: I27bce54c12c1bfb452fd8fc070a1ca1b34df347d
  • Loading branch information
root authored and nitishkrishna committed Dec 2, 2015
1 parent afe078d commit e2df7ec
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions contrail/environment/modules/contrail/manifests/compute/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@
content => "manual",
}
}
#file {'/etc/init/supervisor-vrouter.override':
#ensure => absent,
#}
}

# Install interface rename package for centos.
Expand Down Expand Up @@ -297,16 +294,32 @@
content => template("${module_name}/vnc_api_lib.ini.erb"),
}
}
file { '/etc/contrail/contrail-vrouter-agent.conf' :
ensure => present,
content => template("${module_name}/contrail-vrouter-agent.conf.erb"),

contrail_vrouter_agent_config {
'DISCOVERY/server' : value => "$discovery_ip";
'DISCOVERY/max_control_nodes' : value => "$number_control_nodes";
'HYPERVISOR/type' : value => "$hypervisor_type";
'HYPERVISOR/vmware_physical_interface' : value => "$vmware_physical_intf";
'NETWORKS/control_network_ip' : value => "$host_control_ip";
'VIRTUAL-HOST-INTERFACE/name' : value => "vhost0";
'VIRTUAL-HOST-INTERFACE/ip' : value => "$host_control_ip/$contrail_cidr";
'VIRTUAL-HOST-INTERFACE/gateway' : value => "$contrail_gway";
'VIRTUAL-HOST-INTERFACE/physical_interface' : value => "$contrail_dev";
'SERVICE-INSTANCE/netns_command' : value => "/usr/local/bin/opencontrail-vrouter-netns";
}
->
file { '/etc/contrail/contrail-vrouter-nodemgr.conf' :
ensure => present,
content => template("${module_name}/contrail-vrouter-nodemgr.conf.erb"),
contrail_vrouter_agent_config {
'VIRTUAL-HOST-INTERFACE/compute_node_address' : ensure => 'absent';
}
->

if $contrail_agent_mode == 'tsn' {
contrail_vrouter_agent_config { 'DEFAULT/agent_mode' : value => "tsn"; }
}

contrail_vrouter_nodemgr_config {
'DISCOVERY/server' : value => "$discovery_ip";
'DISCOVERY/port' : value => '5998';
}

file { '/opt/contrail/utils/provision_vrouter.py':
ensure => present,
mode => '0755',
Expand Down

0 comments on commit e2df7ec

Please sign in to comment.