Skip to content

Commit

Permalink
Enable passwordless sudo for test user on RHEL/CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Dec 15, 2016
1 parent 472f037 commit 62ec964
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/fixtures/policies/default.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name 'default'
default_source :community
default_source :supermarket
default_source :chef_repo, '..'
cookbook 'consul', path: '../../..'
run_list 'consul::default', "consul_spec::#{name}"
named_run_list :centos, 'yum::default', 'yum-centos::default', 'sudo::default', run_list
named_run_list :centos, 'sudo::default', run_list
named_run_list :debian, 'apt::default', run_list
named_run_list :freebsd, 'freebsd::default', 'sudo::default', run_list
named_run_list :windows, 'windows::default', run_list

default['authorization']['sudo']['users'] = %w(kitchen vagrant)
default['authorization']['sudo']['passwordless'] = true

0 comments on commit 62ec964

Please sign in to comment.