Don't create users and rewrite the sudo config in dev environment
It breaks the vagrant user
This commit is contained in:
parent
c64383c2a4
commit
26097197ca
@ -19,6 +19,9 @@ end
|
||||
package 'mailutils'
|
||||
package 'mosh'
|
||||
|
||||
# Don't create users and rewrite the sudo config in development environment.
|
||||
# It breaks the vagrant user
|
||||
unless node.chef_environment == "development"
|
||||
# Searches data bag "users" for groups attribute "sysadmin".
|
||||
# Places returned users in Unix group "sysadmin" with GID 2300.
|
||||
users_manage 'sysadmin' do
|
||||
@ -36,6 +39,7 @@ node.override['authorization']['sudo']['sudoers_defaults'] = [
|
||||
]
|
||||
node.override['authorization']['sudo']['passwordless'] = true
|
||||
include_recipe 'sudo'
|
||||
end
|
||||
|
||||
include_recipe 'kosmos-postfix'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user