> Anyway, it appears that what I'm looking for may not be possible today > without custom facts. Ok, fine. >My next question is, why? If it's because such functionality just hasn't >been added yet, >that's perfectly reasonable. I'll be glad to submit a more detailed and >descriptive feature request. >However, if the answer is because people (most importantly, puppet >developers) believe that what I'm looking for >(ability to conditionally process puppet logic based on the result of a >command executed on the client) is unwanted by users, >well I don't believe that's true. I definitely want it and it's clear others >do as well.
I don't want to get deeply into the middle of this (and so will leave my contribution to just this e-mail), but there is a small point I want to make, that I think Peter touched on, but may not have gotten across. Puppet manifests are declarative, not executable. The manifests are not a script which is executed in order, but rather a declaration of the state in which the client node should be. Kind of like the difference between Imperative programming (C/Ruby) and Logical programming (PROLOG). So you are looking at it saying "I want to evaluate this condition, then execute this bit of code only if the condition is true". Puppet wants to look at the state of the node, compare/contrast to the desired state, then "Make It So". To do that, you need to know various "Facts" about the node. And from there, I think the position of the puppet maintainers/developers follows. If you want to apply a certain resource based on whether a file exists, then make a fact about it and let Puppet do it's things from there. It's a fairly "purist" approach, and I will leave discussions of the merit of that up to others, but I hope that makes it a little clearer where they are coming from. And if I've missed the point completely, someone smack me upside the head and tell me to be quiet :) Craig Miskell Puppet Newbie :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---