61 lines
1.3 KiB
Text
61 lines
1.3 KiB
Text
|
cdist-type__config_file(7)
|
||
|
==========================
|
||
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
||
|
|
||
|
|
||
|
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
|
||
|
-------------------
|
||
|
group::
|
||
|
see cdist-type__file
|
||
|
mode::
|
||
|
see cdist-type__file
|
||
|
onchange::
|
||
|
the code to run if the file changes
|
||
|
owner::
|
||
|
see cdist-type__file
|
||
|
source::
|
||
|
Path to the config file.
|
||
|
If source is '-' (dash), take what was written to stdin as the config file content.
|
||
|
state::
|
||
|
see cdist-type__file
|
||
|
|
||
|
|
||
|
EXAMPLES
|
||
|
--------
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
__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
|
||
|
--------
|
||
|
- cdist-type(7)
|
||
|
- cdist-type__file(7)
|
||
|
|
||
|
|
||
|
COPYING
|
||
|
-------
|
||
|
Copyright \(C) 2015 Steven Armstrong. Free use of this software is
|
||
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|