fujin (owner)

Fork Of

gist: 227303 by anonymous

Revisions

gist: 227304 Download_button fork
public
Public Clone URL: git://gist.github.com/227304.git
Embed All Files: show embed
sanintized-attributes.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
users Mash.new unless attribute?("users")
groups Mash.new unless attribute?("groups")
ssh_keys Mash.new unless attribute?("ssh_keys")
roles Mash.new unless attribute?("roles")
 
groups[:admin] = {:gid => 113}
 
roles[:chef] = {:groups => [:admin], :sudo_groups => [:admin]}
roles[:staff] = {:groups => [:admin], :sudo_groups => [:admin]}
 
users[:username] = {:password => "crypt", :comment => "First Last", :uid => 2005, :groups => [ :admin ] }
 
ssh_keys[:username] = "ssh-rsa keydata"