>> Both scenarios involve a decision based on output from the client. > > Based on output from client, but in totally different ways. When the > client requests a configuration, it sends all known facts to the server. > The server then computes the list of resources (evaluating functions > like "include") and sends that back to the client. This is a very > efficient one-roundtrip request to the server. > > Having something like your "client_exec" would require many additional > roundtrips from the server to the client. Besides the fundamental > ugliness of such an approach, in many environments server->client > connections are forbidden.
And to add, as suggested before you might have a look at puppet internals [1] which might help you to understand why the parameter-onlyif is evaluated on the client and functions as well facts etc. are on the server. cheers pete [1] http://reductivelabs.com/trac/puppet/wiki/PuppetInternals --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---