voxpupuli / puppet-augeasproviders_pam

Augeas-based PAM type and provider for Puppet
Other
5 stars 21 forks source link

Ability to delete more specific items #7

Closed fgimian closed 9 years ago

fgimian commented 9 years ago

Hey there, still loving this library (it's a lifesaver) :smile:

Perhaps I'm missing something, but it seems that the absent keyword doesn't look at the control passed in:

e.g.

  pam { 'remove sufficient unix auth instance from system-auth':
    ensure  => absent,
    service => 'system-auth',
    type    => 'auth',
    control => 'sufficient',
    module  => 'pam_unix.so',
  }

This seems to remove pam_unix.so regardless of the control.

Is it possible to be more specific when removing entries like this?

Thanks Fotis

raphink commented 9 years ago

There is a control_is_param parameter which lets you decide if control should be treated as a parameter or a property. Set it to false and it should do what you want.

fgimian commented 9 years ago

@raphink that did the trick, thanks a million for replying so fast!! :smile: