Issue #19871 has been updated by Marcin Deranek.
Our specific use case (as mentioned in the request) is the following: we have template which requires certain fact to be present. Obviously when the fact is not present we do not want to update template/file as file would have incorrect content. So far so good. In our specific use case we have dynamic facts created from external sources (facts.d) which are generated by Puppet. To be able to fix template generation we need to be able to push text files containg fact which due to catalog compilation problem we can't. Besides, "broken" template won't allow you to push *ANY* updates to clients which is sub-optimal. ---------------------------------------- Feature #19871: Templates Shouldn't Cause Runs To Fail https://projects.puppetlabs.com/issues/19871#change-90885 * Author: Celia Cottle * Status: Needs Decision * Priority: Normal * Assignee: eric sorenson * Category: parser * Target version: * Affected Puppet version: * Keywords: template function customer * Branch: ---------------------------------------- A customer submitted the following feature request: Currently all templates are generated during catalog compilation phase. If for whatever reason any template cannot be generated fatal error is thrown and Puppet fails during catalog compilation - nothing gets done. This seems like a design flaw to me as sometimes on purpose we do not want to generate template if eg. certain fact is not present (so file does not get updated) whereas we still want to be able to run Puppet to eg. fix the issue. This easily can lead to deadlock situations when certain template cannot be generated because certain fact is not present and Puppet run is required to cure it. Would it be possible to fail templates in the very same manner as other resources (eg. files), so only dependent resources get affected and not everything. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
