2011-03-24 22:16:25 +00:00
|
|
|
cdist-type__key_value(7)
|
2011-03-24 22:22:08 +00:00
|
|
|
========================
|
2011-03-24 22:16:25 +00:00
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__key_value - Change property values in files
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This cdist type allows you to change values in a key value based config
|
|
|
|
file.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
value::
|
2011-03-24 22:47:05 +00:00
|
|
|
The value for the key. Setting the value to `__NOTSET__` will remove the key
|
2011-03-24 22:16:25 +00:00
|
|
|
from the file.
|
|
|
|
file::
|
|
|
|
The file to operate on.
|
|
|
|
delimiter::
|
|
|
|
The delimiter which seperates the key from the value.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
key::
|
|
|
|
The key to change. Defaults to object_id.
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
# Set the maximum system user id
|
|
|
|
__key_value SYS_UID_MAX --file /etc/login.defs --value 666 --delimiter ' '
|
|
|
|
|
|
|
|
# Same with fancy id
|
|
|
|
__key_value my-fancy-id --file /etc/login.defs --key SYS_UID_MAX --value 666 \
|
|
|
|
--delimiter ' '
|
|
|
|
|
|
|
|
# Enable packet forwarding
|
|
|
|
__key_value net.ipv4.ip_forward --file /etc/sysctl.conf --value 1 \
|
|
|
|
--delimiter '='
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(7)
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2011 Steven Armstrong. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|