こんにちは、以下のコードを使用してグループを作成しています。シェフに「Chef::Provider::Group::Groupadd」プロバイダーを使用してもらいたいのですが、これを Red Hat Enterprise Linux Server リリース 6.4 で実行しています。
シェフ クライアント バージョン 11.4.0
グループの作成に使用された Chef レシピ
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