On Fri, Mar 11, 2011 at 03:20:20PM +1100, John Warburton wrote: > Hi All > > I have a bit of a strange one, and am not sure I'm doing this right. This is > with 2.6.4 on Solaris 10 > > We want to create a sym link from a source file that is created by a > package. If the package isn't installed, puppet in noop is registering an > error (big red in the dashboard) because it cannot stat the source file of > the link. > > root@warbjohn# cat /tmp/symlink2.pp > package {"somepackage": > ensure => installed, > } > file {"/path/created/by/some/package/link": > source => "/path/created/by/some/package/source", > require => Package["somepackage"], > } >
Currently you're copying a file from source to link. If you want to create a symlink do: file { '/path/created/by/some/package/link': target => "/path/created/by/some/package/source", ensure => link, require => Package["somepackage"], } -Stefan
pgpy1uivw1xAq.pgp
Description: PGP signature