cdist/cdist/conf/type/__config_file/man.rst

65 lines
1.3 KiB
ReStructuredText
Raw Normal View History

cdist-type__config_file(7)
==========================
NAME
----
cdist-type__config_file - _Manages config files
DESCRIPTION
-----------
Deploy config files using the file type.
Run the given code if the files changes.
REQUIRED PARAMETERS
-------------------
None.
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
group
see cdist-type__file
2016-05-20 06:50:56 +00:00
mode
see cdist-type__file
2016-05-20 06:50:56 +00:00
onchange
the code to run if the file changes
2016-05-20 06:50:56 +00:00
owner
see cdist-type__file
2016-05-20 06:50:56 +00:00
source
Path to the config file.
If source is '-' (dash), take what was written to stdin as the config file content.
2016-05-20 06:50:56 +00:00
state
see cdist-type__file
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
__config_file /etc/consul/conf.d/watch_foo.json \
--owner root --group consul --mode 640 \
--source "$__type/files/watch_foo.json" \
--state present \
--onchange 'service consul status >/dev/null && service consul reload || true'
SEE ALSO
--------
2016-06-30 13:12:32 +00:00
:strong:`cdist-type__file`\ (7)
AUTHORS
-------
Steven Armstrong <steven-cdist--@--armstrong.cc>
COPYING
-------
2016-08-10 16:15:54 +00:00
Copyright \(C) 2015 Steven Armstrong. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.