Tomas Barton
Tomas Barton
Would it be ok to remove home directory only `$force_removal` is set to `true`? (default would be `false`). In #23 we've introduced executing `pkill` which might be safer to disable...
@ruriky Have you installed `deric-gpasswd` module which is listed in [dependencies](https://github.com/deric/puppet-accounts/blob/master/metadata.json#L17)?
@ruriky Sorry for late reply. From [Puppet's documentation](https://docs.puppet.com/puppet/latest/types/user.html#user-attribute-gid): > gid: The user’s primary group. Can be specified numerically or by name. It doesn't make much sense to set `uid !=...
Yeah, I understand your motivation. It sounds rather easy, but it's actually quite hard to implement. The module currently creates user accounts first, then groups and assigns users into groups....
I've managed to write a hacky way how to bypass commands executed by Puppet's providers. I'm not sure if this is the best way how to tackle this issue. But...
Could you post some code example? You're probably looking for `home_permissions` parameter ```yaml accounts::users: john: home_permissions: '0740' groups: ["sudo", "users"] shell: "/bin/bash" ```
Good question. If I recall it correctly the original motivation was to replace [group management functionality which isn't really working in Puppet](https://tickets.puppetlabs.com/browse/PUP-1298). I found an [alternative implementation of group management](https://github.com/pdxcat/puppet-module-group/blob/master/lib/puppet/provider/group/ggroupadd.rb)...
@redno2 I've refactored group provider to work with `usermod`. The effort is currently tracked in [1.6 branch](https://github.com/deric/puppet-accounts/compare/1.6?expand=1). The problematic part is ensuring explicit members of a given group. This is...
Btw. according to [Puppet docs](https://docs.puppet.com/puppet/4.10/types/user.html#user-provider-user_role_add) on Solaris provider `user_role_add` is used. Best solution would be not to override provider and just use provider shipped with Puppet.
@redno2 I've created a [Docker image](https://hub.docker.com/r/deric/opensuse-puppet/) for testing purposes. On Docker hub there are official images of [opensuse 13.2](https://hub.docker.com/r/opensuse/amd64/tags/) and 42.2. Currently most of the tests are passing: ``` 1)...