f7023f423e
Use of cat | grep is an anti-pattern, grep can read files, so drop the use of cat, saving two processes being forked off. Change-Id: I64bf8aad5bebcd3f2f89c67ac47d8e527a5d9117 |
||
---|---|---|
.. | ||
bin | ||
install.d | ||
os-refresh-config/configure.d | ||
README.md | ||
element-deps |
README.md
Manages sysctl settings.
Two ways to make use of this element:
-
Elements can make use of sysctl-set-value directly by requiring this element and calling /usr/local/bin/sysctl-set-value. This will help ensure conflicting sysctl values are not in use across elements.
-
Alternately you can make use of the element via Heat by adding metadata in the configuration example below. The sysctl-set-data binary will take care of applying these settings during configuration time.
Configuration example
sysctl: net.ipv4.conf.all.arp_filter: 1 net.ipv4.conf.all.arp_ignore: 2 net.ipv4.conf.all.arp_announce: 2 net.ipv4.conf.default.arp_filter: 1 net.ipv4.conf.default.arp_ignore: 2 net.ipv4.conf.default.arp_announce: 2
** Any valid sysctl key/value may be specified in this configuration format.