1CDIST-TYPE__CONFIG_FILE(7)           cdist          CDIST-TYPE__CONFIG_FILE(7)
2
3
4

NAME

6       cdist-type__config_file - _Manages config files
7

DESCRIPTION

9       Deploy  config  files  using  the file type.  Run the given code if the
10       files changes.
11

REQUIRED PARAMETERS

13       None.
14

OPTIONAL PARAMETERS

16       group  see cdist-type__file
17
18       mode   see cdist-type__file
19
20       onchange
21              the code to run if the file changes
22
23       owner  see cdist-type__file
24
25       source Path to the config file.  If source is '-' (dash), take what was
26              written to stdin as the config file content.
27
28       state  see cdist-type__file
29

EXAMPLES

31          __config_file /etc/consul/conf.d/watch_foo.json \
32             --owner root --group consul --mode 640 \
33             --source "$__type/files/watch_foo.json" \
34             --state present \
35             --onchange 'service consul status >/dev/null && service consul reload || true'
36

SEE ALSO

38       cdist-type__file(7)
39

AUTHORS

41       Steven Armstrong <steven-cdist--@--armstrong.cc>
42

COPYING

44       Copyright  (C)  2015  Steven  Armstrong. You can redistribute it and/or
45       modify it under the terms of the GNU General  Public  License  as  pub‐
46       lished  by  the  Free  Software Foundation, either version 3 of the Li‐
47       cense, or (at your option) any later version.
48
50       ungleich GmbH 2021
51
52
53
54
557.0.0                            Jul 31, 2022       CDIST-TYPE__CONFIG_FILE(7)
Impressum