HomeSoftware Heritage

Grant role with unit tests (#762)

Description

Grant role with unit tests (#762)

  • Adding grant_role and updating README
  • Add unit tests for grant_role
  • Define relationships with role and group

But only if they are defined, similar to other defined types in this
module.

  • Add connect_settings to grant_role

Only require Postgresql::Server if it is not specified. This check might
change, depending on MODULES-3229.

  • Document grant_role/connect_settings
  • Add 'ensure' to grant_role

Does not affect the relationships with Role[$user] and $Role[$group].
They don't have have an ensure argument (yet), so there is no situation
where you would first revoke the membership and then drop the role.

  • Fix variable typo (user => role)
  • Use correct quotes for identifier
  • Add validation for group and role
  • Puppet 3 treats numbers like strings

Details

Provenance
Jan Fabry <jan.fabry@monkeyman.be>Authored on Sep 8 2016, 12:43 AM
Bryan Jen <bryan.jen@gmail.com>Committed on Sep 8 2016, 12:43 AM
olasdPushed on Mar 14 2017, 5:00 PM
Parents
rSPPGd9dd33099e7a: Merge pull request #777 from tdevelioglu/master
Branches
Unknown
Tags
Unknown

Event Timeline

Bryan Jen <bryan.jen@gmail.com> committed rSPPG84454c6a7471: Grant role with unit tests (#762) (authored by Jan Fabry <jan.fabry@monkeyman.be>).Sep 8 2016, 12:43 AM