saltstack-formulas / users-formula

Configure users via pillar
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
99 stars 362 forks source link

Allow state to update the gid #188

Closed noelmcloughlin closed 5 years ago

noelmcloughlin commented 5 years ago

This PR allows user.present state to change the gid auto-generated by gid_from_name parameter when the pillar data needs this.

Otherwise state fails when gid_from_name clashes with optional_groups pillar data for example.

Encountered error checking for needed changes. Additional info follows
Changing gid (20 -> 507) not permitted

For implementation, users.allow_gid_change: True is global default, so Salt can cope, but parameter can be set per-user.