6989871896d13f040c3dc40ad2e819911bb0d30d
[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   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   KernelPidMax:
22     default: 1048576
23     description: Configures sysctl kernel.pid_max key
24     type: number
25
26 outputs:
27   role_data:
28     description: Role data for the Kernel modules
29     value:
30       service_name: kernel
31       config_settings:
32         kernel_modules:
33           nf_conntrack: {}
34         sysctl_settings:
35           net.ipv4.tcp_keepalive_intvl:
36             value: 1
37           net.ipv4.tcp_keepalive_probes:
38             value: 5
39           net.ipv4.tcp_keepalive_time:
40             value: 5
41           net.nf_conntrack_max:
42             value: 500000
43           net.netfilter.nf_conntrack_max:
44             value: 500000
45           # prevent neutron bridges from autoconfiguring ipv6 addresses
46           net.ipv6.conf.all.accept_ra:
47             value: 0
48           net.ipv6.conf.default.accept_ra:
49             value: 0
50           net.ipv6.conf.all.autoconf:
51             value: 0
52           net.ipv6.conf.default.autoconf:
53             value: 0
54           net.core.netdev_max_backlog:
55             value: 10000
56           kernel.pid_max:
57             value: {get_param: KernelPidMax}
58       step_config: |
59         include ::tripleo::profile::base::kernel