Hi > [...] > > It suggests creating a custom fact which indicates if the file exists > on the client or not. Well, frankly I don't like that idea, for two > reasons. > > 1. I'd have to create a custom fact for every check, which would > become cumbersome/tedious and is (IMHO) is just a hack/workaround. 2. > The ability to determine whether a file exists via puppet would be a > very useful and powerful feature that many, if not all puppeteers > could make use of. The mailing lists contain several postings to the > effect of 'custom facts work, just write your own and be quiet', > which frustrates me.
the main issue behind that is that all the functions are evaluated on the server and only there. And this makes totally sense due to other reasons. So if you use the client-server setup you're restricted to that. The only information the server can get _from_ the client are facts or information from an external source, which the client would have to feed. But if you would stay with local execution only I think you'll easily able to do what you want. > A wise manager once told me that you should > build your systems around the needs of your business instead of > building your business around the capabilities of your systems. What I could always observe is that people asking for such things are trying to get their used script thinking behaviour (to call it like that) into puppet. But one of the main ideas of puppet is that it changes the way how you look at your infrastructure and how you manage your infrastructure. So actually: Yes, puppet changes the way your doing your business. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---