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

Let $purge_ignore accept an array of strings #211

Closed bitcrush closed 6 years ago

bitcrush commented 6 years ago

With the introduction of Puppet 4 data types in a recent commit to this module the accepted types for the $purge_ignore parameter got limited to strings only. The Puppet file resource however accepts arrays for its $ignore parameter as well. So the following examples should both be valid:

class { 'sudo':
  purge_ignore => 'custom_*',
}
class { 'sudo':
  purge_ignore => ['custom_*', 'vagrant'],
}

Currently the second declaration fails. This commit fixes that.