andreid20
2008-Jul-28 12:32 UTC
[Puppet Users] turn string into an array that works in a file declaration
e.g. if you have the following puppet code: $hosts=generate(''/usr/bin/perl'', ''/usr/bin/gethosts.pl'', "/home/user/ bin") file { $hosts: ensure => present } I know it works if you do $hosts=["/tmp/test1", "/tmp/test2"] instead of the generate function. But I really would like to generate 100+ lines of this kind of file, if possible. So can this be done? --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---