kernel: allow to override modules & sysctl settings
Allow to easily personalize Kernel modules and sysctl settings with two new parameters.
ExtraKernelModules and ExtraSysctlSettings are dictionaries that will take precedence
over the defaults settings provided in the composable service.
Closes-Bug: #1742440
Change-Id: I9cd43331e5e9a6074cd47040c29815ca32c61693
(cherry picked from commit ec1be1f4cd
)
This commit is contained in:
parent
ad865190bf
commit
e9e0206bb4
@ -26,6 +26,14 @@ parameters:
|
|||||||
default: 1024
|
default: 1024
|
||||||
description: Configures sysctl fs.inotify.max_user_instances key
|
description: Configures sysctl fs.inotify.max_user_instances key
|
||||||
type: number
|
type: number
|
||||||
|
ExtraKernelModules:
|
||||||
|
default: {}
|
||||||
|
description: Hash of extra Kernel modules to load.
|
||||||
|
type: json
|
||||||
|
ExtraSysctlSettings:
|
||||||
|
default: {}
|
||||||
|
description: Hash of extra sysctl settings to apply.
|
||||||
|
type: json
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -34,36 +42,41 @@ outputs:
|
|||||||
service_name: kernel
|
service_name: kernel
|
||||||
config_settings:
|
config_settings:
|
||||||
kernel_modules:
|
kernel_modules:
|
||||||
nf_conntrack: {}
|
map_merge:
|
||||||
nf_conntrack_proto_sctp: {}
|
- nf_conntrack: {}
|
||||||
|
nf_conntrack_proto_sctp: {}
|
||||||
|
- {get_param: ExtraKernelModules}
|
||||||
sysctl_settings:
|
sysctl_settings:
|
||||||
net.ipv4.tcp_keepalive_intvl:
|
map_merge:
|
||||||
value: 1
|
- net.ipv4.tcp_keepalive_intvl:
|
||||||
net.ipv4.tcp_keepalive_probes:
|
value: 1
|
||||||
value: 5
|
net.ipv4.tcp_keepalive_probes:
|
||||||
net.ipv4.tcp_keepalive_time:
|
value: 5
|
||||||
value: 5
|
net.ipv4.tcp_keepalive_time:
|
||||||
net.ipv4.conf.all.arp_accept:
|
value: 5
|
||||||
value: 1
|
net.ipv4.conf.all.arp_accept:
|
||||||
net.nf_conntrack_max:
|
value: 1
|
||||||
value: 500000
|
net.nf_conntrack_max:
|
||||||
net.netfilter.nf_conntrack_max:
|
value: 500000
|
||||||
value: 500000
|
net.netfilter.nf_conntrack_max:
|
||||||
# prevent neutron bridges from autoconfiguring ipv6 addresses
|
value: 500000
|
||||||
net.ipv6.conf.all.accept_ra:
|
# prevent neutron bridges from autoconfiguring ipv6 addresses
|
||||||
value: 0
|
net.ipv6.conf.all.accept_ra:
|
||||||
net.ipv6.conf.default.accept_ra:
|
value: 0
|
||||||
value: 0
|
net.ipv6.conf.default.accept_ra:
|
||||||
net.ipv6.conf.all.autoconf:
|
value: 0
|
||||||
value: 0
|
net.ipv6.conf.all.autoconf:
|
||||||
net.ipv6.conf.default.autoconf:
|
value: 0
|
||||||
value: 0
|
net.ipv6.conf.default.autoconf:
|
||||||
net.core.netdev_max_backlog:
|
value: 0
|
||||||
value: 10000
|
net.core.netdev_max_backlog:
|
||||||
kernel.pid_max:
|
value: 10000
|
||||||
value: {get_param: KernelPidMax}
|
kernel.pid_max:
|
||||||
# set inotify value for neutron/dnsmasq scale
|
value: {get_param: KernelPidMax}
|
||||||
fs.inotify.max_user_instances:
|
# set inotify value for neutron/dnsmasq scale
|
||||||
value: {get_param: InotifyIntancesMax}
|
fs.inotify.max_user_instances:
|
||||||
|
value: {get_param: InotifyIntancesMax}
|
||||||
|
- {get_param: ExtraSysctlSettings}
|
||||||
|
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::kernel
|
include ::tripleo::profile::base::kernel
|
||||||
|
6
releasenotes/notes/kernel-extra-aa48704056be72cd.yaml
Normal file
6
releasenotes/notes/kernel-extra-aa48704056be72cd.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Allow to easily personalize Kernel modules and sysctl settings with two new parameters.
|
||||||
|
ExtraKernelModules and ExtraSysctlSettings are dictionaries that will take precedence
|
||||||
|
over the defaults settings provided in the composable service.
|
Loading…
Reference in New Issue
Block a user