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"],
}
root@warbjohn# puppet --verbose --noop /tmp/symlink2.pp
info: Applying configuration version ''1299817006''
notice: /Stage[main]//Package[somepackage]/ensure: current_value absent,
should be present (noop)
err: /Stage[main]//File[/path/created/by/some/package/link]: Could not
evaluate: Could not retrieve information from source(s)
/path/created/by/some/package/source at /tmp/symlink2.pp:7
notice: Finished catalog run in 10.63 seconds
IMHO, I don''t think this should be an error from noop. Is this a bug,
or am
I pushing my luck?
Thanks
John
--
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.
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
On 11 March 2011 20:57, Stefan Schulte <stefan.schulte@taunusstein.net>wrote:> On Fri, Mar 11, 2011 at 03:20:20PM +1100, John Warburton wrote: > > 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"], > } > > Oh duh, thanks Stefan - couldn''t see the wood for the trees!John -- 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.