I''m having problems with a definition not being found. I get the following error when running puppetd -vt: err: Could not find type "manual_apt_get_update" in file /etc/puppet/manifests/definitions/apt_misc.pp at line 22 The definition is present for sure. Can anyone spot a problem with the code below? define manual_apt_get_update { exec { "/usr/bin/apt-get --force-yes --allow-unauthenticated update": path=>"/usr/sbin:/usr/bin:/sbin:/bin", } } define pinned_package($packages, $pinning_release ) { $stable_priority = "700" $pin_priority = "1001" file { "preferences": path=> "/etc/apt/preferences", content=> template("preferences.erb") } package { $packages: ensure=> installed, require=> [file["preferences"],manual_apt_get_update["standard"]] } manual_apt_get_update {"standard":} }
On Mon, Aug 13, 2007 at 10:14:48AM +0100, Stephen Tan wrote:> The definition is present for sure. Can anyone spot a problem with the > code below?[...]> require=> [file["preferences"],manual_apt_get_update["standard"]]You need to capitalize the references when you require. So: | require=> [File["preferences"],Manual_apt_get_update["standard"]] -- Marcin Owsiany Web Systems Integrator - Guardian Unlimited Please help to save paper - do you really need to print this email? ------------------------------------------------------------------ Visit Guardian Unlimited - the UK''s most popular newspaper website http://guardian.co.uk http://observer.co.uk ------------------------------------------------------------------ The Newspaper Marketing Agency Opening Up Newspapers http://www.nmauk.co.uk ------------------------------------------------------------------ This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group PLC Registered Office Number 1 Scott Place, Manchester M3 3GG Registered in England Number 908396
Doh. Thanks - feel a bit dumb now. On 13/08/07, Marcin Owsiany <marcin.owsiany@guardian.co.uk> wrote:> On Mon, Aug 13, 2007 at 10:14:48AM +0100, Stephen Tan wrote: > > The definition is present for sure. Can anyone spot a problem with the > > code below? > [...] > > require=> [file["preferences"],manual_apt_get_update["standard"]] > > You need to capitalize the references when you require. So: > > | require=> [File["preferences"],Manual_apt_get_update["standard"]] > > -- > Marcin Owsiany > Web Systems Integrator - Guardian Unlimited > > Please help to save paper - do you really need to print this email? > > ------------------------------------------------------------------ > Visit Guardian Unlimited - the UK''s most popular newspaper website > http://guardian.co.uk http://observer.co.uk > ------------------------------------------------------------------ > The Newspaper Marketing Agency > Opening Up Newspapers > http://www.nmauk.co.uk > ------------------------------------------------------------------ > > This e-mail and all attachments are confidential and may also > be privileged. If you are not the named recipient, please notify > the sender and delete the e-mail and all attachments immediately. > Do not disclose the contents to another person. You may not use > the information for any purpose, or store, or copy, it in any way. > > Guardian News & Media Limited is not liable for any computer > viruses or other material transmitted with or as part of this > e-mail. You should employ virus checking software. > > Guardian News & Media Limited > A member of Guardian Media Group PLC > Registered Office > Number 1 Scott Place, Manchester M3 3GG > Registered in England Number 908396 > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
On Aug 13, 2007, at 4:49 AM, Stephen Tan wrote:> Doh. Thanks - feel a bit dumb now.Did that fix your problem, or are you still having issues? -- What''s the good of having mastery over cosmic balance and knowing the secrets of fate if you can''t blow something up? -- Terry Pratchett, "Reaper Man" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Hi Luke Yes, that did fix it - thanks! Stephen On 13/08/07, Luke Kanies <luke@madstop.com> wrote:> On Aug 13, 2007, at 4:49 AM, Stephen Tan wrote: > > > Doh. Thanks - feel a bit dumb now. > > Did that fix your problem, or are you still having issues? > > -- > What''s the good of having mastery over cosmic balance and knowing the > secrets of fate if you can''t blow something up? > -- Terry Pratchett, "Reaper Man" > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >