Having issues trying to create the same symlink for multiple web sites. This is my class:
class assoc_symlinks { $assocs=[ "asecs", "mgsa", "athe" ] define create_assoc_symlinks() { file {"/www/domains/${name}.press.jhu.edu/cgi-bin/ membership_directory.cgi": ensure => symlink, target => "/www/shared/cgi-bin/membership_directory.cgi", owner => apache, group => apache, mode => 2775, } } create_assoc_symlinks { "$assocs" } } Then I call it in my nodes.pp file as "include assoc_symlinks" When I run puppet, it gives me this error: hu May 12 14:14:57 -0400 2011 //Node[adv01jh]/ Assoc_symlinks[asecsmgsaathe]/File[/www/domains/ asecsmgsaathe.press.jhu.edu/cgi-bin/membership_directory.cgi]/ensure (err): change from absent to link failed: Could not set link on ensure: No such file or directory - /www/domains/ asecsmgsaathe.press.jhu.edu/cgi-bin at /etc/puppet/manifests/classes/ assoc_symlinks.pp:8 As you can see, it is combining my $assocs array into one string, instead of iterating through it as an array. Any suggestions would be great as I am relatively new and only been using puppet for a month or 2 now. Thanks, Thom -- 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.