Merge "Add d3 graph presentation to yardstick reporting"
authorMorgan Richomme <morgan.richomme@orange.com>
Wed, 12 Oct 2016 16:25:00 +0000 (16:25 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 12 Oct 2016 16:25:00 +0000 (16:25 +0000)
prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp

index c4bff09..a1e7d5d 100644 (file)
@@ -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'))
 }