aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/neutron-plugin-plumgrid.yaml
blob: 71928473a69fdd0769aa6620becbd1b284cf498b (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
heat_template_version: pike

description: >
  OpenStack Neutron Plumgrid plugin

parameters:
  ServiceData:
    default: {}
    description: Dictionary packing service data
    type: json
  ServiceNetMap:
    default: {}
    description: Mapping of service_name -> network name. Typically set
                 via parameter_defaults in the resource registry.  This
                 mapping overrides those in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    type: json
  RoleName:
    default: ''
    description: Role name on which the service is applied
    type: string
  RoleParameters:
    default: {}
    description: Parameters specific to the role
    type: json
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  NeutronPassword:
    description: The password for the neutron service and db account, used by neutron agents.
    type: string
    hidden: true
  NeutronMetadataProxySharedSecret:
    description: Shared secret to prevent spoofing
    type: string
    hidden: true
  AdminPassword:
    description: The password for the keystone admin account, used for monitoring, querying neutron etc.
    type: string
    hidden: true

  # PLUMgrid specific settings
  PLUMgridDirectorServer:
    description: IP address of the PLUMgrid Director Server
    type: string
    default: 127.0.0.1
  PLUMgridDirectorServerPort:
    description: Port of the PLUMgrid Director Server
    type: string
    default: 443
  PLUMgridUsername:
    description: Username for PLUMgrid platform
    type: string
  PLUMgridPassword:
    description: Password for PLUMgrid platform
    type: string
    hidden: true
  PLUMgridNovaMetadataIP:
    description: IP address of Nova Metadata
    type: string
    default: 169.254.169.254
  PLUMgridNovaMetadataPort:
    description: Port of Nova Metadata
    type: string
    default: 8775
  PLUMgridL2GatewayVendor:
    description: Vendor for L2 Gateway Switch
    type: string
    default: vendor
  PLUMgridL2GatewayUsername:
    description: Username for L2 Gateway Switch
    type: string
    default: username
  PLUMgridL2GatewayPassword:
    description: Password for L2 Gateway Switch
    type: string
    hidden: true
  PLUMgridIdentityVersion:
    description: Keystone Identity version
    type: string
    default: v2.0
  PLUMgridConnectorType:
    description: Neutron Network Connector Type
    type: string
    default: distributed
  PLUMgridNeutronPluginVersion:
    description: PLUMgrid Neutron Plugin version
    type: string
    default: present
  PLUMgridPlumlibVersion:
    description: PLUMgrid Plumlib version
    type: string
    default: present


outputs:
  role_data:
    description: Role data for the Neutron Plumgrid plugin
    value:
      service_name: neutron_plugin_plumgrid
      config_settings:
        neutron::plugins::plumgrid::connection:
          make_url:
            scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
            username: neutron
            password: {get_param: NeutronPassword}
            host: {get_param: [EndpointMap, MysqlInternal, host]}
            path: /ovs_neutron
            query:
              read_default_file: /etc/my.cnf.d/tripleo.cnf
              read_default_group: tripleo
        neutron::plugins::plumgrid::controller_priv_host: {get_param: [EndpointMap, KeystoneInternal, host]}
        neutron::plugins::plumgrid::admin_password: {get_param: AdminPassword}
        neutron::plugins::plumgrid::metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
        neutron::plugins::plumgrid::director_server: {get_param: PLUMgridDirectorServer}
        neutron::plugins::plumgrid::director_server_port: {get_param: PLUMgridDirectorServerPort}
        neutron::plugins::plumgrid::username: {get_param: PLUMgridUsername}
        neutron::plugins::plumgrid::password: {get_param: PLUMgridPassword}
        neutron::plugins::plumgrid::nova_metadata_ip: {get_param: PLUMgridNovaMetadataIP}
        neutron::plugins::plumgrid::nova_metadata_port: {get_param: PLUMgridNovaMetadataPort}
        neutron::plugins::plumgrid::l2gateway_vendor: {get_param: PLUMgridL2GatewayVendor}
        neutron::plugins::plumgrid::l2gateway_sw_username: {get_param: PLUMgridL2GatewayUsername}
        neutron::plugins::plumgrid::l2gateway_sw_password: {get_param: PLUMgridL2GatewayPassword}
        neutron::plugins::plumgrid::connector_type: {get_param: PLUMgridConnectorType}
        neutron::plugins::plumgrid::identity_version: {get_param: PLUMgridIdentityVersion}
        neutron::plugins::plumgrid::package_ensure: {get_param: PLUMgridNeutronPluginVersion}
        neutron::plugins::plumgrid::plumlib_package_ensure: {get_param: PLUMgridPlumlibVersion}

      step_config: |
        include tripleo::profile::base::neutron::plugins::plumgrid