$ cat /tmp/symlink.pp 
file { '/tmp/link_to_zz':
  ensure => link,
  target => 'zz',
}
$ puppet /tmp/symlink.pp 
notice: /Stage[main]//File[/tmp/link_to_zz]/ensure: created
$ ls -l /tmp/link_to_zz 
lrwxrwxrwx 1 cwood cwood 2 Mar 21 13:03 /tmp/link_to_zz -> zz

(ln target linkname)

On Wed, Mar 21, 2012 at 09:59:50AM -0700, Douglas Garstang wrote:
> Is there any way to get relative symlinks in puppet?
> 
> This:
> 
>     file {
>         "tomcat-current":
>         #"/opt/foo/apache-tomcat-current":
>             ensure => link,
>             target => "/opt/foo/apache-tomcat-${tomcat_version}";
>     }
> 
> yields:
> 
> Wed Mar 21 09:58:05 -0700 2012 Puppet (err): Failed to apply catalog:
> Parameter path failed: File paths must be fully qualified, not
> 'tomcat-current' at
> /etc/puppet/env/development/modules/tomcat7/manifests/server.pp:18
> 
> Doug
> 
> -- 
> 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.
> 
> 

-- 
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.

Reply via email to