Re: [Puppet Users] coping linked files problem

2012-05-03 Thread rjl
Thanks for the reply Tom (didn't need the basename call). That works great for getting the filename. However, now my path is not getting evaluated correctly. I have this in my /etc/puppet/fileserver.conf [ams_repo_path] path /opt/level3/component/ams/repo allow * Here is my class class

Re: [Puppet Users] coping linked files problem

2012-05-03 Thread Thomas A. Fine
It looks like you should be able to do something like this: $linkvalue = generate('/usr/bin/readlink', '/somepath/current'); $linkbasename = generate('/usr/bin/basename', $linkvalue); and then path -> "destinationpath/$linkbasename", tom On 5/3/12 2:03 PM, rjl wrote: Hi, It seems like

[Puppet Users] coping linked files problem

2012-05-03 Thread rjl
Hi, It seems like this should be pretty easy but I can't find a solution. On my puppet master, I have a directory of zipped files. These are created by another application. When a new zipped file is added to the directory, the other application attaches a symlink to it called current. /somepath