在类中包含已定义的资源

我已经阅读了文档 ,但我不知道如何包含一个已定义的资源。 我累了

include User::Admin['beamin'] 

我得到:

 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 

我想怎么做?

来自木偶用户Google小组成员的回答:

不包括定义的资源。 他们被宣布,就像其他资源一样。 你可能会这样做:

通知{“woo!”:}

如果你定义一个名为“foo”的资源,那么你也可以这样做:

foo {“woo!”:}

通过无服务器木偶指南(也在docs.puppetlabs.com)阅读可能是比语言指南更好的介绍。