안녕하세요 그룹을 만들 때 아래 코드를 사용하고 있습니다. Chef :: Provider :: Group :: Groupadd 공급자를 사용하고 싶습니다. Red Hat에서이 코드를 실행하고 있습니다. Enterprise Linux Server 릴리스 6.4. CHEF "group"리소스를 사용하는 중에 오류가 발생했습니다.
요리사 클라이언트 버전 11.4.0 그룹을 만드는 데 사용요리사 recipie
group node['was']['usr_grp'] do
action :create
end
ERROR
================================================================================
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
이 문제를 해결하는 방법을 찾으셨습니까? 자신의 질문에 대답해도 괜찮습니다. 정확한 답을 표시하는 것을 잊지 마십시오! :) – sethvargo