Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook Name:: sudo
|
||||
# Attribute File:: default
|
||||
#
|
||||
# Copyright 2008-2013, Opscode, Inc.
|
||||
# Copyright 2008-2016, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -20,16 +20,19 @@
|
||||
default['authorization']['sudo']['groups'] = ['sysadmin']
|
||||
default['authorization']['sudo']['users'] = []
|
||||
default['authorization']['sudo']['passwordless'] = false
|
||||
default['authorization']['sudo']['setenv'] = false
|
||||
default['authorization']['sudo']['include_sudoers_d'] = false
|
||||
default['authorization']['sudo']['agent_forwarding'] = false
|
||||
default['authorization']['sudo']['sudoers_defaults'] = ['!lecture,tty_tickets,!fqdn']
|
||||
default['authorization']['sudo']['command_aliases'] = []
|
||||
default['authorization']['sudo']['env_keep_add'] = []
|
||||
default['authorization']['sudo']['env_keep_subtract'] = []
|
||||
|
||||
case node['platform_family']
|
||||
when 'smartos'
|
||||
default['authorization']['sudo']['prefix'] = '/opt/local/etc'
|
||||
when 'freebsd'
|
||||
default['authorization']['sudo']['prefix'] = '/usr/local/etc'
|
||||
else
|
||||
default['authorization']['sudo']['prefix'] = '/etc'
|
||||
end
|
||||
default['authorization']['sudo']['prefix'] = case node['platform_family']
|
||||
when 'smartos'
|
||||
'/opt/local/etc'
|
||||
when 'freebsd'
|
||||
'/usr/local/etc'
|
||||
else
|
||||
'/etc'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user