If you re-run chef-client on a node that has had a previously-successful chef-client run, it will re-converge the necessary cookbook(s) to put the node into
the desired state. In you example, the original cookbook that installed java will detect that a different java has been (manually) installed, and re-install its java version. You can write report handlers to send a notification (email?) if a cookbook converged. Chris From: Medya [mailto:
I meant if someone goes and install a different java manualy (not through a chef run) can that be detected ? On Wed, Aug 12, 2015 at 12:12 PM, niristotle okram <
" target="_blank">
> wrote: Haven't done it yet, but the report handler can tell you what are the resources that were updated in the chef run. The chef-run will bring back to java6 in your case and will show up in the report. On Wed, Aug 12, 2015 at 10:08 AM, Medya <
" target="_blank">
> wrote: Let say I install Java 6 on a node using chef, if someone goes and install java 7 on it, can chef alert me and tell me? or is there a tool on the top of Chef that can help me do that?
-- Regards |
Archive powered by MHonArc 2.6.16.