opentable/puppet-redis — pull request #7 by stevelacey (2014-02-19 13:56:27+00:00)
Title: Fix redis user group def

Upgrading from thomasvandoren/puppet-redis, I was getting the following:

```
err: /Stage[main]/Redis/User[redis]/ensure: change from absent to present failed: Could not create user redis: Execution of '/usr/sbin/useradd -G redis redis' returned 9: useradd: group redis exists - if you want to add this user to that group, use -g.
```

I think this is because I already had the redis group defined, but your user def was trying to create it, and failing to create the user when it couldn't.

Puppet docs:

```
groups

The groups to which the user belongs. The primary group should not be listed, and groups should be identified by name rather than by GID. Multiple groups should be specified as an array.
```

Note, the primary group should not be listed.

```
gid

The user’s primary group. Can be specified numerically or by name.
```

Specifying gid by name instead seems to do the trick.