Directory resource creates user/group?

I’m looking through a cookbook (the Engineyard Redis cookbook here:
http://github.com/engineyard/ey-cloud-recipes/tree/master/cookbooks/redis ),
and I notice that it creates a directory for redis data with the uid/gid of
’redis’. But, I don’t see the redis user created anywhere else.

Does the directory resource call create the user automatically? If so, what
permissions and passwords is the user created with?

Thanks,
Micah

The directory resource does not create users.

Installing the package does.

On Fri, Oct 29, 2010 at 2:54 PM, Micah Wedemeyer <
fanmail@micah-wedemeyer.net> wrote:

I'm looking through a cookbook (the Engineyard Redis cookbook here:
ey-cloud-recipes/cookbooks/redis at master · engineyard/ey-cloud-recipes · GitHub ),
and I notice that it creates a directory for redis data with the uid/gid of
'redis'. But, I don't see the redis user created anywhere else.

Does the directory resource call create the user automatically? If so, what
permissions and passwords is the user created with?

Thanks,
Micah

On Fri, Oct 29, 2010 at 1:54 PM, Micah Wedemeyer
fanmail@micah-wedemeyer.net wrote:

I'm looking through a cookbook (the Engineyard Redis cookbook
here: ey-cloud-recipes/cookbooks/redis at master · engineyard/ey-cloud-recipes · GitHub ),
and I notice that it creates a directory for redis data with the uid/gid of
'redis'. But, I don't see the redis user created anywhere else.

The user is created by the packager. In this particular example, this
cookbook runs on Gentoo. This is evidenced by their enable_package
definition used this this recipe. You can find it [1] in their emerge
cookbook. Portage creates the user on installation of the dev-db/redis
[2] package.

btm

[1] http://github.com/engineyard/ey-cloud-recipes/blob/master/cookbooks/emerge/definitions/enable_package.rb
[2] http://gentoo-portage.com/dev-db/redis/ChangeLog

Ah, thanks. This really clears it up. Thanks for the links.

On Fri, Oct 29, 2010 at 1:54 PM, Micah Wedemeyer
fanmail@micah-wedemeyer.net wrote:

I'm looking through a cookbook (the Engineyard Redis cookbook
here:
ey-cloud-recipes/cookbooks/redis at master · engineyard/ey-cloud-recipes · GitHub
),
and I notice that it creates a directory for redis data with the uid/gid
of
'redis'. But, I don't see the redis user created anywhere else.

The user is created by the packager. In this particular example, this
cookbook runs on Gentoo. This is evidenced by their enable_package
definition used this this recipe. You can find it [1] in their emerge
cookbook. Portage creates the user on installation of the dev-db/redis
[2] package.

btm

[1]
http://github.com/engineyard/ey-cloud-recipes/blob/master/cookbooks/emerge/definitions/enable_package.rb
[2] http://gentoo-portage.com/dev-db/redis/ChangeLog