Merge "Add neutron service support for composable upgrades"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-plugin-ml2-fujitsu-cfab.yaml
1 heat_template_version: 2017-02-24
2
3 description: >
4   Configure hieradata for Fujitsu C-Fabric plugin configuration
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NeutronFujitsuCfabAddress:
22     description: 'The address of the C-Fabric to telnet to.'
23     type: string
24   NeutronFujitsuCfabUserName:
25     description: 'The C-Fabric username to use.'
26     type: string
27   NeutronFujitsuCfabPassword:
28     description: 'The C-Fabric password to use.'
29     type: string
30     hidden: true
31   NeutronFujitsuCfabPhysicalNetworks:
32     description: 'List of <physical_network>:<vfab_id> tuples specifying physical_network names and corresponding vfab ids.'
33     type: comma_delimited_list
34     default: ''
35   NeutronFujitsuCfabSharePprofile:
36     description: '"Whether to share a C-Fabric pprofile among Neutron ports using the same VLAN ID.'
37     type: boolean
38     default: false
39   NeutronFujitsuCfabPprofilePrefix:
40     description: 'The prefix string for pprofile name.'
41     type: string
42     default: ''
43   NeutronFujitsuCfabSaveConfig:
44     description: 'Whether to save configuration.'
45     type: boolean
46     default: true
47
48 resources:
49
50   NeutronMl2Base:
51     type: ./neutron-plugin-ml2.yaml
52     properties:
53       ServiceNetMap: {get_param: ServiceNetMap}
54       DefaultPasswords: {get_param: DefaultPasswords}
55       EndpointMap: {get_param: EndpointMap}
56
57 outputs:
58   role_data:
59     description: Role data for Fujitsu Cfab ML2 Driver
60     value:
61       service_name: neutron_plugin_ml2_fujitsu_cfab
62       config_settings:
63         map_merge:
64           - get_attr: [NeutronMl2Base, role_data, config_settings]
65           - neutron::plugins::ml2::fujitsu::cfab::address: {get_param: NeutronFujitsuCfabAddress}
66             neutron::plugins::ml2::fujitsu::cfab::username: {get_param: NeutronFujitsuCfabUserName}
67             neutron::plugins::ml2::fujitsu::cfab::password: {get_param: NeutronFujitsuCfabPassword}
68             neutron::plugins::ml2::fujitsu::cfab::physical_networks: {get_param: NeutronFujitsuCfabPhysicalNetworks}
69             neutron::plugins::ml2::fujitsu::cfab::share_pprofile: {get_param: NeutronFujitsuCfabSharePprofile}
70             neutron::plugins::ml2::fujitsu::cfab::pprofile_prefix: {get_param: NeutronFujitsuCfabPprofilePrefix}
71             neutron::plugins::ml2::fujitsu::cfab::save_config: {get_param: NeutronFujitsuCfabSaveConfig}
72       step_config: |
73         include ::tripleo::profile::base::neutron::plugins::ml2