Source for Chef Docs is available via github[1]. You can search for the affected bit of text and submit a pull request. The change describing this problem has been committed[2] and should go live in the next build later today.Thanks for pushing that into docs, James!On Thu, Jul 17, 2014 at 11:08 AM, Mark Selby < " target="_blank"> > wrote:
I have also confirmed that this fixes the problem. What is the best way to communicate to the Chef Docs owner that it may be a good idea to update the official docs?On Thu, Jul 17, 2014 at 9:08 AM, George Miranda < " target="_blank"> > wrote:
Confirmed. Array gets the expected behavior. Single comma separated string "works", but always updates every time.On Thu, Jul 17, 2014 at 9:04 AM, Ranjib Dey < " target="_blank"> > wrote:
can you try specifying memebers as an arraygroup "foobarbaz" domembers ['user1', 'user2']endOn Thu, Jul 17, 2014 at 8:58 AM, Mark Selby < " target="_blank"> > wrote:
Here are the details of what I am seeing. Please let me know if you need anymore info. I can confirm that for me with the lastest chef client I am still seeing this behavior on Ubuntu.(test) ~ 931# cat /etc/issue.netUbuntu 12.04.4 LTS(test) ~ 933# chef-client --versionChef: 11.12.8
(test) ~ 923# grep user[0-9] /etc/passwduser1:x:1023:1023::/home/user1:/bin/shuser2:x:1024:1024::/home/user2:/bin/sh(test) ~ 932# grep foobarbaz /etc/groupfoobarbaz:x:1025:user1,user2# client has a single recipe in the run list. The recipe isgroup "foobarbaz" domembers "user1,user2"end(test) ~ 934# chef-clientStarting Chef Client, version 11.12.8resolving cookbooks for run list: ["nbs_test::default"]Synchronizing Cookbooks:- nbs_testCompiling Cookbooks...Converging 1 resourcesRecipe: nbs_test::default* group[foobarbaz] action create- alter group group[foobarbaz]- replace group members with new list of members
Running handlers:Running handlers completeChef Client finished, 1/1 resources updated in 3.549844354 seconds
# here is the debug outout of this recipeRecipe: nbs_test::default* group[foobarbaz] action create[2014-07-17T15:52:47+00:00] INFO: Processing group[foobarbaz] action create (nbs_test::default line 1)[2014-07-17T15:52:47+00:00] DEBUG: Platform ubuntu version 12.04 found[2014-07-17T15:52:47+00:00] DEBUG: Executing groupmod foobarbaz[2014-07-17T15:52:47+00:00] DEBUG: ---- Begin output of groupmod foobarbaz ----[2014-07-17T15:52:47+00:00] DEBUG: STDOUT:[2014-07-17T15:52:47+00:00] DEBUG: STDERR:[2014-07-17T15:52:47+00:00] DEBUG: ---- End output of groupmod foobarbaz ----[2014-07-17T15:52:47+00:00] DEBUG: Ran groupmod foobarbaz returned 0[2014-07-17T15:52:47+00:00] DEBUG: group[foobarbaz] setting group members to: user1,user2[2014-07-17T15:52:47+00:00] INFO: group[foobarbaz] altered- alter group group[foobarbaz]- replace group members with new list of members
Archive powered by MHonArc 2.6.16.