saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
107 stars 215 forks source link

ensure_packages(): Wrong number of arguments given (2 for 1) at /etc/puppet/modules/sudo/manifests/package.pp:77 #199

Closed phar1no closed 6 years ago

phar1no commented 6 years ago

With this setttings:

class { 'sudo':
        purge               => false,
        config_file_replace => false,
  }

  sudo::conf { 'user':
        priority    => 10,
        content     => "user ALL=(ALL) NOPASSWD: ALL",
  }

I get the error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ensure_packages(): Wrong number of arguments given (2 for 1) at /etc/puppet/modules/sudo/manifests/package.pp:77 on node some.node.domain

But if i comment next lines in /etc/puppet/modules/sudo/manifests/package.pp, all works fine!

 74     }
 75     default: {
 76         #if $package != '' {
 77         #  ensure_packages([$package], {'ensure' => $package_ensure})
 78         #}
 79     }

saz-sudo-4.2.0 puppet-server-3.7.1-1.el6.noarch clients: RHEL5,6,7 Ubuntu1604

saz commented 6 years ago

This should be fixed in the current master.