Guest User

Untitled

a guest
Apr 20th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Create the group at compile time, so that you can have the gid available to
  2. # pass to the user at creation
  3. g = group "foo" do
  4. ...
  5. end
  6. g.run_action(:create)
  7. provider = Chef::Platform.provider_for_node(node, g)
  8. provider.load_current_resource
  9. new_gid = provider.current_resource.gid
  10.  
  11. user "bob" do
  12. gid new_gid
  13. end
Add Comment
Please, Sign In to add comment