Puppet Class: contrail::control::provision_linklocal

Defined in:
manifests/control/provision_linklocal.pp

Overview

Class: contrail::control::provision_linklocal

Provision the metadata service

Parameters:

api_address

(optional) IP address of the Contrail API Defaults to ‘127.0.0.1’

api_port

(optional) Port of the Contrail API Defaults to 8082

linklocal_service_name

(optional) Metadata service name Defaults to ‘metadata’

linklocal_service_ip

(optional) IP address of the metadata service Defaults to ‘169.254.169.254’

linklocal_service_port

(optional) Port of the metadata service Defaults to 80

ipfabric_service_ip

(optional) IP of the ipfabric Defaults to ‘127.0.0.1’

ipfabric_service_port

(optional) Port of the ipfabric Defaults to 8775

keystone_admin_user

(optional) Keystone admin user Defaults to ‘admin’

keystone_admin_password

(optional) Password for keystone admin user Defaults to ‘password’

keystone_admin_tenant_name

(optional) Keystone admin tenant name Defaults to ‘admin’

ibgp_auto_mesh

(optional) Should iBGP auto mesh activated Defaults to ‘true’

oper

(optional) Operation to run (add|del) Defaults to ‘add’

Parameters:

  • api_address (Any) (defaults to: '127.0.0.1')
  • api_port (Any) (defaults to: 8082)
  • linklocal_service_name (Any) (defaults to: 'metadata')
  • linklocal_service_ip (Any) (defaults to: '169.254.169.254')
  • linklocal_service_port (Any) (defaults to: 80)
  • ipfabric_service_ip (Any) (defaults to: '127.0.0.1')
  • ipfabric_service_port (Any) (defaults to: 8775)
  • keystone_admin_user (Any) (defaults to: 'admin')
  • keystone_admin_password (Any) (defaults to: 'password')
  • keystone_admin_tenant_name (Any) (defaults to: 'admin')
  • oper (Any) (defaults to: 'add')


55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'manifests/control/provision_linklocal.pp', line 55

class contrail::control::provision_linklocal (
  $api_address                = '127.0.0.1',
  $api_port                   = 8082,
  $linklocal_service_name     = 'metadata',
  $linklocal_service_ip       = '169.254.169.254',
  $linklocal_service_port     = 80,
  $ipfabric_service_ip        = '127.0.0.1',
  $ipfabric_service_port      = 8775,
  $keystone_admin_user        = 'admin',
  $keystone_admin_password    = 'password',
  $keystone_admin_tenant_name = 'admin',
  $oper                       = 'add',
) {

  exec { "provision_linklocal.py ${api_address}" :
    command => "python /opt/contrail/utils/provision_linklocal.py \
                 --api_server_ip ${api_address} \
                 --api_server_port ${api_port} \
                 --linklocal_service_name ${linklocal_service_name} \
                 --linklocal_service_ip ${linklocal_service_ip} \
                 --linklocal_service_port ${linklocal_service_port} \
                 --ipfabric_service_ip ${ipfabric_service_ip} \
                 --ipfabric_service_port ${ipfabric_service_port} \
                 --admin_user ${keystone_admin_user} \
                 --admin_password ${keystone_admin_password} \
                 --admin_tenant ${keystone_admin_tenant_name} \
                 --oper ${oper}",
  }

}