- From: Roland Moriz <
>
- To:
- Subject: [chef] Re: Antwort: Re: Testing idempotence of chef cookbooks
- Date: Fri, 22 May 2015 04:33:25 +0200
Am 21.05.2015 um 17:30 schrieb Ranjib Dey <
" class="">
>:
yeah, its should be 0 resources updated if everything is idempotent and already converged. those two numbers relfect number of updated resources / number of total resources. Total resources is sum of all resources defined by all recipes, lwrps as part of the expanded run list, while updated resources are a subset of them which was modified (like absent file being created, absent packaged being installed etc) during the chef run.
Some resources are very hard to make „chef-idempotent“, e.g. ruby blocks. Even if you make sure your ruby code is idempotent, the execution of the block already counts as „updated resource“. Even popular community cookbooks do have that "problem“.
You probably want to add each converge result to a temp file and calculate/check the difference or some kind of percentage instead.
regards Roland
|
Archive powered by MHonArc 2.6.16.