Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.321 kB
dep 'admins can sudo' do
requires 'admin group', 'sudo.bin'
met? { !sudo('cat /etc/sudoers').split("\n").grep(/^%admin/).empty? }
meet { append_to_file '%admin ALL=(ALL) ALL', '/etc/sudoers', :sudo => true }
end
dep 'admin group' do
met? { '/etc/group'.p.grep(/^admin\:/) }
meet { sudo 'groupadd admin' }
end
Jump to Line
Something went wrong with that request. Please try again.