[chef] Re: Re: Re: Re: Re: Re: group resource always updated


Chronological Thread 
  • From: George Miranda < >
  • To: " " < >
  • Cc: James Scott < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: group resource always updated
  • Date: Thu, 17 Jul 2014 12:12:33 -0700

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 array
group "foobarbaz" do
  members ['user1', 'user2']
end


On 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.net 
Ubuntu 12.04.4 LTS

(test) ~ 933# chef-client --version
Chef: 11.12.8

(test) ~ 923# grep user[0-9] /etc/passwd
user1:x:1023:1023::/home/user1:/bin/sh
user2:x:1024:1024::/home/user2:/bin/sh

(test) ~ 932# grep foobarbaz /etc/group
foobarbaz:x:1025:user1,user2

# client has a single recipe in the run list. The recipe is
group "foobarbaz" do
  members "user1,user2"
end

(test) ~ 934# chef-client          
Starting Chef Client, version 11.12.8
resolving cookbooks for run list: ["nbs_test::default"]
Synchronizing Cookbooks:
  - nbs_test
Compiling Cookbooks...
Converging 1 resources
Recipe: nbs_test::default
  * group[foobarbaz] action create
    - alter group group[foobarbaz]
    - replace group members with new list of members


Running handlers:
Running handlers complete

Chef Client finished, 1/1 resources updated in 3.549844354 seconds


# here is the debug outout of this recipe

Recipe: 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.

§