Pass ServiceNetMap to services
[apex-tripleo-heat-templates.git] / puppet / services / kernel.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Load kernel modules with kmod and configure kernel options with sysctl.
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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18
19 outputs:
20   role_data:
21     description: Role data for the Kernel modules
22     value:
23       service_name: kernel
24       config_settings:
25         kernel_modules:
26           nf_conntrack: {}
27         sysctl_settings:
28           net.ipv4.tcp_keepalive_intvl:
29             value: 1
30           net.ipv4.tcp_keepalive_probes:
31             value: 5
32           net.ipv4.tcp_keepalive_time:
33             value: 5
34           net.nf_conntrack_max:
35             value: 500000
36           net.netfilter.nf_conntrack_max:
37             value: 500000
38           # prevent neutron bridges from autoconfiguring ipv6 addresses
39           net.ipv6.conf.default.accept_ra:
40             value: 0
41           net.ipv6.conf.default.autoconf:
42             value: 0
43           net.core.netdev_max_backlog:
44             value: 10000
45       step_config: |
46         include ::tripleo::profile::base::kernel