copy additional files during update policy run to maintain autonomy of client if server is missing #5676
-
I have a bunch of files that don't match the "files considered for copy during policy update" patterns and many of the files don't have an extension so don't really work with that mechanism. e.g.
I see there are hooks for additional policy files and bundles to extend update policy. I would assume this would be the "way to go" so I can add some similar remote_dcp bits for each host and ensure that the files are in place on the client so that it can fix things that get broken even if it can't reach the policy server. Any other recommendations? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I used the referred to hooks in masterfiles policy framework and had success. I am using a cfbs Build project so in my cfbs.json I added a json file: custom_update.json: {
"variables": {
"default:def.update_inputs": {
"value": [
"services/foo/custom_update.cf"
]
},
"default:def.control_common_update_bundlesequence_end": {
"value": [
"foo_update_policy"
]
}
}
} and then added it as a step to an already existing cfbs module:
I had to remember to use bodies from the update policy, mostly update_policy.cf and update/lib.cf and NOT the standard ones from masterfiles/lib/*. So custom_update.cf
So I use either a flag file, In this case the files in my policy set under QED. Thanks CFEngine. :) |
Beta Was this translation helpful? Give feedback.
I used the referred to hooks in masterfiles policy framework and had success.
I am using a cfbs Build project so in my cfbs.json I added a json file:
custom_update.json:
and then added it as a step to an already existing cfbs module:
I had to remember to use bodies from the update policy, mostly update_policy.cf and update/lib.cf and NOT the standard ones from masterfiles/lib/*.
So
remote_dcp
b…