beamin melbin
2011-Nov-29 22:00 UTC
[Puppet Users] Including a defined resource in a class
I''ve read the documentation over at: http://docs.puppetlabs.com/guides/language_guide.html I cannot figure out how to include a defined resource. I''ve tired: include User::Admin[''beamin''] I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `downcase'' for User::Admin[beamin] {:name=>"beamin"}:Puppet::Resource at /etc/puppet/modules/team/ manifests/uni.pp:3 on node u1x2.example.com -- 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.
Phillip Frost
2011-Nov-29 22:06 UTC
Re: [Puppet Users] Including a defined resource in a class
On Nov 29, 2011, at 5:00 PM, beamin melbin wrote:> I''ve read the documentation over at: > > http://docs.puppetlabs.com/guides/language_guide.html > > I cannot figure out how to include a defined resource. I''ve tired: > > include User::Admin[''beamin'']Defined resources aren''t included. They are declared, just like other resources. You might do this: notify { "woo!": } And if you define a resource called "foo", then you can also do this: foo { "woo!": } Reading through the serverless puppet guide (also at docs.puppetlabs.com) might be a better introduction than the language guide. -- 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.