-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
homebrew_chef.erb
17 lines (17 loc) · 1.47 KB
/
homebrew_chef.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# From https://github.com/chef-cookbooks/homebrew/issues/105
# Allow NOPASSWD for homebrew actions
Defaults:<%= @user -%> env_keep += "ARCHFLAGS PKG_CONFIG_PATH GOPATH PYTHONPATH COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS GIT_WORK_TREE GIT_DIR HTTP_PROXY HTTPS_PROXY FTP_PROXY RSYNC_PROXY", !requiretty
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /bin/chmod
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/sbin/chown
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /bin/mkdir
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/bin/chgrp
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/bin/touch
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/sbin/softwareupdate
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /bin/rm
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /bin/mv
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/sbin/installer
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/bin/env
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /usr/local/bin/VBoxManage extpack install *
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /Applications/VMware\ Fusion.app/Contents/Library/Initialize\ VMware\ Fusion.tool *
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /Applications/VMware\ Fusion\ Tech\ Preview.app/Contents/Library/Initialize\ VMware\ Fusion.tool *
<%= @user -%> <%= @hostname -%>=(root) NOPASSWD:SETENV: /bin/mv /usr/local/Caskroom/*