Merge "Customize scheduler_default_filters (nova.conf)"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-ovs-dpdk-agent.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron OVS DPDK configured with Puppet for Compute Role
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   NeutronDpdkCoreList:
22     default: ""
23     description: List of cores to be used for DPDK Poll Mode Driver
24     type: string
25   NeutronDpdkMemoryChannels:
26     default: ""
27     description: Number of memory channels to be used for DPDK
28     type: string
29   NeutronDpdkSocketMemory:
30     default: ""
31     description: Memory allocated for each socket
32     type: string
33   NeutronDpdkDriverType:
34     default: "vfio-pci"
35     description: DPDK Driver type
36     type: string
37   # below parameters has to be set in neutron agent only for compute nodes.
38   # as of now there is no other usecase for these parameters except dpdk.
39   # should be moved to compute only ovs agent in case of any other usecases.
40   NeutronDatapathType:
41     default: ""
42     description: Datapath type for ovs bridges
43     type: string
44   NeutronVhostuserSocketDir:
45     default: ""
46     description: The vhost-user socket directory for OVS
47     type: string
48
49 resources:
50
51   NeutronOvsAgent:
52     type: ./neutron-ovs-agent.yaml
53     properties:
54       ServiceNetMap: {get_param: ServiceNetMap}
55       DefaultPasswords: {get_param: DefaultPasswords}
56       EndpointMap: {get_param: EndpointMap}
57
58 outputs:
59   role_data:
60     description: Role data for the Neutron OVS DPDK Agent service.
61     value:
62       service_name: neutron_ovs_dpdk_agent
63       config_settings:
64         map_merge:
65           - get_attr: [NeutronOvsAgent, role_data, config_settings]
66             neutron::agents::ml2::ovs::enable_dpdk: true
67             neutron::agents::ml2::ovs::datapath_type: {get_param: NeutronDatapathType}
68             neutron::agents::ml2::ovs::vhostuser_socket_dir: {get_param: NeutronVhostuserSocketDir}
69             vswitch::dpdk::core_list: {get_param: NeutronDpdkCoreList}
70             vswitch::dpdk::memory_channels: {get_param: NeutronDpdkMemoryChannels}
71             vswitch::dpdk::socket_mem: {get_param: NeutronDpdkSocketMemory}
72             vswitch::dpdk::driver_type: {get_param: NeutronDpdkDriverType}
73       step_config: {get_attr: [NeutronOvsAgent, role_data, step_config]}