Permalink
Browse files

FreeBSD support in the sudo cookbook:

* package action :upgrade is not supported on FreeBSD;
* the group for `root' is `wheel'.
  • Loading branch information...
1 parent 22b98c3 commit 750a14c91c015769db6a0a90feb5ca29eb458e5e @andreacampi andreacampi committed with jtimberman Apr 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 sudo/recipes/default.rb
View
@@ -18,14 +18,14 @@
#
package "sudo" do
- action :upgrade
+ action platform?("freebsd") ? :install : :upgrade
end
template "/etc/sudoers" do
source "sudoers.erb"
mode 0440
owner "root"
- group "root"
+ group platform?("freebsd") ? "wheel" : "root"
variables(
:sudoers_groups => node['authorization']['sudo']['groups'],
:sudoers_users => node['authorization']['sudo']['users'],

0 comments on commit 750a14c

Please sign in to comment.