Morning all I''m currently scratching my head with this one, as it''s something I''ve done several times already in this module... Anyways, the problem... I''m trying to create a defined type which will add a new fragment to a concat file... The class/define is: https://gist.github.com/fatmcgav/4713861#file-tnsnames-pp. The file path within the module is: *modules/act/manifests/util/linux/oracle/tnsnames.pp* Whenever I try and use *tnsnames::add*, I get: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type tnsnames::add at /etc/puppet/modules/act/manifests/env/oracle/instance/netapp.pp:119 on node act-star-db07.card.co.uk Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Example usage is: https://gist.github.com/fatmcgav/4713861#file-netapp-pp However this defined type model is no different to several others that I''ve defined... A working example is: https://gist.github.com/fatmcgav/4713861#file-oraenvs-pp. This file path is: *modules/act/manifests/util/linux/oracle/oraenvs.pp*. I''ve tried restarting the puppet master service without any success. Any ideas why I''m having issues? Cheers Gavin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Gavin Williams
2013-Feb-05 11:48 UTC
[Puppet Users] Re: Fun and games with defined types :(
Doh, just had that brain-wave moment... I forgot to include the tnsnames class in my parent server definition class... Added it as an include and now working perfectly... Cheers Gavin On Tuesday, 5 February 2013 11:35:31 UTC, Gavin Williams wrote:> > Morning all > > I''m currently scratching my head with this one, as it''s something I''ve > done several times already in this module... > > Anyways, the problem... > > I''m trying to create a defined type which will add a new fragment to a > concat file... > The class/define is: > https://gist.github.com/fatmcgav/4713861#file-tnsnames-pp. The file path > within the module is: *modules/act/manifests/util/linux/oracle/tnsnames.pp > * > > Whenever I try and use *tnsnames::add*, I get: > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type tnsnames::add at > /etc/puppet/modules/act/manifests/env/oracle/instance/netapp.pp:119 on node > act-star-db07.card.co.uk > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > Example usage is: https://gist.github.com/fatmcgav/4713861#file-netapp-pp > > However this defined type model is no different to several others that > I''ve defined... A working example is: > https://gist.github.com/fatmcgav/4713861#file-oraenvs-pp. This file path > is: *modules/act/manifests/util/linux/oracle/oraenvs.pp*. > > I''ve tried restarting the puppet master service without any success. > > Any ideas why I''m having issues? > > Cheers > Gavin >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.