...and just after pressing send, I realized what the error was: The
exec statement should look like this:
exec { "/usr/sbin/update-rc.d puppet defaults":
require => File["/etc/init.d/puppet"]
}
Sorry!
On Oct 19, 2006, at 22:29, Juri Rischel Jensen wrote:
> Hi,
>
> When I try to specify a file I want copied in place, like:
>
> configfile { "/etc/init.d/puppet":
> source => "config/apps/puppet/puppet"
> }
>
> and has a require on that later on:
>
> exec { "/usr/sbin/update-rc.d puppet defaults":
> require => "/etc/init.d/puppet"
> }
>
> puppetd throws an error:
>
> err: Could not find type "/etc/init.d/puppet" in file
/etc/puppet/
> manifests/packages/puppet.pp at line 12
>
> The line specified is actually the closing bracket of the exec
> statement, so I suspect that it''s the require that fails.
>
> I use other places without problems.
>
>
> --
> Med venlig hilsen
> Juri Rischel Jensen
>
> Fab:IT ApS
> Vesterbrogade 50
> DK-1620 København
> Tlf: 70 202 407 / Fax: 33 313 640
> www.fab-it.dk / juri@fab-it.dk
>
>
>
> _______________________________________________
> Puppet-users mailing list
> Puppet-users@madstop.com
> https://mail.madstop.com/mailman/listinfo/puppet-users
--
Med venlig hilsen
Juri Rischel Jensen
Fab:IT ApS
Vesterbrogade 50
DK-1620 København
Tlf: 70 202 407 / Fax: 33 313 640
www.fab-it.dk / juri@fab-it.dk