Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / neutron-sriov-host-config.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Neutron SR-IOV host configuration
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: >
14       Mapping of service_name -> network name. Typically set via
15       parameter_defaults in the resource registry. This mapping overrides those
16       in ServiceNetMapDefaults.
17     type: json
18   DefaultPasswords:
19     default: {}
20     type: json
21   RoleName:
22     default: ''
23     description: Role name on which the service is applied
24     type: string
25   RoleParameters:
26     default: {}
27     description: Parameters specific to the role
28     type: json
29   EndpointMap:
30     default: {}
31     description: Mapping of service endpoint -> protocol. Typically set
32                  via parameter_defaults in the resource registry.
33     type: json
34   NeutronSriovNumVFs:
35     description: >
36       Provide the list of VFs to be reserved for each SR-IOV interface.
37       Format "<interface_name1>:<numvfs1>,<interface_name2>:<numvfs2>"
38       Example "eth1:4096,eth2:128"
39     type: comma_delimited_list
40     default: ""
41
42 resources:
43
44   NeutronBase:
45     type: ./neutron-base.yaml
46     properties:
47       ServiceData: {get_param: ServiceData}
48       ServiceNetMap: {get_param: ServiceNetMap}
49       DefaultPasswords: {get_param: DefaultPasswords}
50       EndpointMap: {get_param: EndpointMap}
51       RoleName: {get_param: RoleName}
52       RoleParameters: {get_param: RoleParameters}
53
54   # Merging role-specific parameters (RoleParameters) with the default parameters.
55   # RoleParameters will have the precedence over the default parameters.
56   RoleParametersValue:
57     type: OS::Heat::Value
58     properties:
59       type: json
60       value:
61         map_replace:
62           - map_replace:
63             - tripleo::host::sriov::number_of_vfs: NeutronSriovNumVFs
64             - values: {get_param: [RoleParameters]}
65           - values:
66               NeutronSriovNumVFs: {get_param: NeutronSriovNumVFs}
67
68 outputs:
69   role_data:
70     description: Role data for the Neutron SR-IOV nic agent service.
71     value:
72       service_name: neutron_sriov_host_config
73       config_settings:
74         map_merge:
75           - get_attr: [NeutronBase, role_data, config_settings]
76           - get_attr: [RoleParametersValue, value]
77       step_config: |
78         include ::tripleo::host::sriov