voxpupuli / puppet-augeasproviders_pam

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

delete all references to module in file does not work. #14

Open PodioSpaz opened 8 years ago

PodioSpaz commented 8 years ago

The readme says that to "delete all references to module in file" use the following:

pam { "Remove all pam_sss.so from system-auth":
  ensure  => absent,
  service => 'system-auth',
  module  => 'pam_sss.so',
}

When using the above method to delete all reference I receiving the following:

Nothing to manage: no ensure and the resource doesn't exist

The only way I can delete a reference is to specify a type.

pam { "Remove all pam_sss.so from system-auth":
  ensure  => absent,
  service => 'system-auth',
  module  => 'pam_sss.so',
  type => 'auth',
}