tripleo-image-elements/elements/sysctl
Steve Kowalik f7023f423e Do not use cat in sysctl-set-value
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
2014-06-19 15:28:34 +10:00
..
bin Do not use cat in sysctl-set-value 2014-06-19 15:28:34 +10:00
install.d A sysctl element to manage settings via sysctl.d. 2014-04-16 21:18:21 -04:00
os-refresh-config/configure.d A sysctl element to manage settings via sysctl.d. 2014-04-16 21:18:21 -04:00
README.md A sysctl element to manage settings via sysctl.d. 2014-04-16 21:18:21 -04:00
element-deps A sysctl element to manage settings via sysctl.d. 2014-04-16 21:18:21 -04:00

README.md

Manages sysctl settings.

Two ways to make use of this element:

  1. 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.

  2. 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.