Salut J'utilise le code ci-dessous pour créer un groupe, je voudrais que le chef utilise le fournisseur "Chef :: Provider :: Group :: Groupadd", je l'exécute sur Red Hat Version Enterprise Linux Server 6.4.Erreur lors de l'utilisation de la ressource "groupe" CHEF
chef cuisinier version client 11.4.0
Chef de recipie utilisé pour créer le groupe
group node['was']['usr_grp'] do
action :create
end
erreur
================================================================================
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
Avez-vous trouvé une solution à ce problème? C'est correct de répondre à votre propre question. S'il vous plaît ne pas oublier de marquer une réponse comme correcte! :) – sethvargo