Hi > I would like to have puppet manage a file on each client. The file is > the same for all clients, but has two random numbers in it. > > I assume I can use something like fqdn_rand(0-59) to generate a random > number between 0 and 59, right? > > My main question is how to I get puppet to not think the file is > different every time puppetd runs? Would I use a template or a file > def and contents?
neither will help. either you make your random function depending on a seed, which means it isn't really random anymore. Or if you create the file, replace => false might be your friend. But then for sure if you change your other content it won't adjust them as well. 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 -~----------~----~----~----~------~----~------~--~---