2015-02-24 11:46:40 +00:00
|
|
|
cdist-type__config_file(7)
|
|
|
|
==========================
|
2016-05-20 06:50:56 +00:00
|
|
|
Manages config files
|
2015-02-24 11:46:40 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
2015-02-24 11:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2015-02-24 11:46:40 +00:00
|
|
|
see cdist-type__file
|
2016-05-20 06:50:56 +00:00
|
|
|
mode
|
2015-02-24 11:46:40 +00:00
|
|
|
see cdist-type__file
|
2016-05-20 06:50:56 +00:00
|
|
|
onchange
|
2015-02-24 11:46:40 +00:00
|
|
|
the code to run if the file changes
|
2016-05-20 06:50:56 +00:00
|
|
|
owner
|
2015-02-24 11:46:40 +00:00
|
|
|
see cdist-type__file
|
2016-05-20 06:50:56 +00:00
|
|
|
source
|
2015-02-24 11:46:40 +00:00
|
|
|
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
|
2015-02-24 11:46:40 +00:00
|
|
|
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'
|
2015-02-24 11:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
- `cdist-type(7) <cdist-type.html>`_
|
|
|
|
- `cdist-type__file(7) <cdist-type__file.html>`_
|
2015-02-24 11:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
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).
|