summaryrefslogtreecommitdiffstats
path: root/puppet/services/neutron-plugin-opencontrail.yaml
blob: 1d23c4970b5514d6867e3f07cad334681621eb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
heat_template_version: 2016-04-08

description: >
  OpenStack Neutron Opencontrail plugin

parameters:
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  AdminPassword:
    description: The password for the keystone admin account, used for monitoring, querying neutron etc.
    type: string
    hidden: true
  AdminToken:
    description: The keystone auth secret and db password.
    type: string
    hidden: true
  ContrailApiServerIp:
    description: IP address of the OpenContrail API server
    type: string
  ContrailApiServerPort:
    description: Port of the OpenContrail API
    type: string
    default: 8082
  ContrailMultiTenancy:
    description: Whether to enable multi tenancy
    type: boolean
    default: false
  ContrailExtensions:
    description: List of OpenContrail extensions to be enabled
    type: comma_delimited_list
    default: ''

resources:

  NeutronBase:
    type: ./neutron-base.yaml

outputs:
  role_data:
    description: Role data for the Neutron Opencontrail plugin
    value:
      service_name: neutron-plugin-opencontrail
      config_settings:
        map_merge:
          - get_attr: [NeutronBase, role_data, config_settings]
          - neutron::api_extensions_path: /usr/lib/python2.7/site-packages/neutron_plugin_contrail/extensions

            neutron::plugins::opencontrail::api_server_ip: {get_param: ContrailApiServerIp}
            neutron::plugins::opencontrail::api_server_port: {get_param: ContrailApiServerPort}
            neutron::plugins::opencontrail::multi_tenancy: {get_param: ContrailMultiTenancy}
            neutron::plugins::opencontrail::contrail_extensions: {get_param: ContrailExtensions}
            neutron::plugins::opencontrail::keystone_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri] }
            neutron::plugins::opencontrail::keystone_admin_user: admin
            neutron::plugins::opencontrail::keystone_admin_tenant_name: admin
            neutron::plugins::opencontrail::keystone_admin_password: {get_param: AdminPassword}
            neutron::plugins::opencontrail::keystone_admin_token: {get_param: AdminToken}
      step_config: |
        include tripleo::profile::base::neutron::plugins::opencontrail