如果我尝试使用http://docs.puppetlabs.com/references/latest/function.html#createresources中显示的create_resources:
class foobar
{
$myusers = {
'nick' => { uid => '1330',
group => allstaff,
groups => ['developers', 'operations', 'release'], },
'dan' => { uid => '1308',
group => allstaff,
groups => ['developers', 'prosvc', 'release'], }
}
create_resources(user, $myusers)
}
我收到此错误:
Error: undefined method `symbolizehash!' for Puppet::Util:Module
我如何让这个工作!?
答案 0 :(得分:1)
您提供的代码不是源代码的直接副本。
group => allstaff,
^应该是:
gid => allstaff,
事情是,' group'不是'用户'的有效参数。资源。
答案 1 :(得分:0)