您好我正在使用以下代码创建一个组,我希望厨师使用“Chef::Provider::Group::Groupadd”提供程序,我在 Red Hat Enterprise Linux Server 6.4 版上执行此操作。
厨师客户端版本 11.4.0
用于创建组的主厨食谱
group node['was']['usr_grp'] do
action :create
end
错误
================================================================================
Error executing action `create` on resource 'group[webspher]'
================================================================================
Chef::Exceptions::Exec
----------------------
groupmod webspher returned 6, expected 0
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/WAS/recipes/default.rb
35: group node['was']['usr_grp'] do
36: action :create
37: end
38:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/WAS/recipes/default.rb:35:in `from_file'
group("webspher") do
action [:create]
retries 0
retry_delay 2
group_name "webspher"
gid 901
cookbook_name "WAS"
recipe_name "default"
end
[2013-09-25T13:36:45-05:00] INFO: Running queued delayed notifications before re-raising exception
[2013-09-25T13:36:45-05:00] ERROR: Running exception handlers
[2013-09-25T13:36:45-05:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-09-25T13:36:45-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-09-25T13:36:45-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-09-25T13:36:45-05:00] FATAL: Chef::Exceptions::Exec: group[webspher] (WAS::default line 35) had an error: Chef::Exceptions::Exec: groupmod webspher returned 6, expected 0