files in subdirs of masterfiles directory not distributed to clients.

13 views
Skip to first unread message

Xander Cage

unread,
Jun 14, 2016, 6:51:39 AM6/14/16
to help-cfengine

Hi,

we have some templates in a subdir under the masterfiles directory, but changes in this files do not show up on the clients. is this expected behaviour, and if yes, what needs to be done to get this files distributed (separate copy policy for each subdir)? until now, i thought everything in the masterfiles directorty gets copied to clients?

root@nimmsag: /var/cfengine/masterfiles/itsv/templates # ls
ntp.conf.tmpl              resolv.conf.tmpl           root.authorized_keys.tmpl  syslog.conf.tmpl

best regards
xander

Nick Anderson

unread,
Jun 14, 2016, 9:12:30 AM6/14/16
to help-c...@googlegroups.com
Hi Xander

In the Masterfiles Policy Framework the the update_def bundle defines
input_name_patterns as a list of regular expressions matching files
which should be considered for copying during update.

https://docs.cfengine.com/docs/master/guide-writing-and-serving-policy-policy-framework.html#input_name_patterns-variable

https://github.com/cfengine/masterfiles/blob/master/controls/update_def.cf.in#L47-L52

So you will probably want to either change your template file names, or
add .*\.tmpl to the list of input_name_patterns.




signature.asc
Reply all
Reply to author
Forward
0 new messages