diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-10-12 12:56:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-12 12:56:49 +0000 |
commit | f9a4eeb385d42c60af5b68624da8ad2a46fbad3c (patch) | |
tree | 94eec77eac497820d2bc313afba9790a6b1343dd | |
parent | d9ab655653e2d343a8eac7560c50c6bed632a09f (diff) | |
parent | a795342c11357784b522ccf347eb3463124aa525 (diff) |
Merge "Tune sudo settings on server"
-rw-r--r-- | prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp b/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp index c4bff0962..a1e7d5d0e 100644 --- a/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp +++ b/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp @@ -224,6 +224,20 @@ class opnfv::server ( } } - # add hosts entries + # ensure that we have non-pass sudo, and + # not require tty + file_line { 'sudo_rule_no_pw': + path => '/etc/sudoers', + line => '%wheel ALL=(ALL) NOPASSWD: ALL', + } + file_line { 'sudo_rule_notty': + path => '/etc/sudoers', + line => 'Defaults requiretty', + match => '.*requiretty.*', + match_for_absence => true, + ensure => absent, + multiple => true, + } + create_resources('host', hiera_hash('hosts')) } |