How to create a group with chef

chef

I assume this is straightforward, but I'm lost in the abstractions in Chef. I want to create a new Unix group on Red Hat Linux, called deployers, and then add some of my users to that group. What are the steps to achieve this?

Best Answer

Use the group LWRP:

group "mygroup"

In order to add members, you can list them:

group "mygroup" do
  members "member1"
end
Related Topic