[chef] Re: Re: CHEF-2205: manage_home on Redhat


Chronological Thread 
  • From: Bryan McLellan < >
  • To:
  • Subject: [chef] Re: Re: CHEF-2205: manage_home on Redhat
  • Date: Wed, 30 Jan 2013 10:31:43 -0500

On Mon, Jan 28, 2013 at 3:47 PM, Mike 
< >
 wrote:
> I, for one using RedHat/CentOS/Amazon Linux, expect a user's account
> creation to always have a home directory created, unless the following
> is true:
> - A 'system' user account is created (useradd -r)
> - Explicitly override with 'manage_home false' (effectively 'useradd -M')

That's exactly what I was asking. The problem is, there's currently no
way to use the user resource on these system and have it not create a
home directory, even explicitly. This is because manage_home defaults
to false already. Thus it is broken in two ways,

1) The user resource is different by default on redhat than other platforms

2) You can't use it to create user without two home directories

The goal of the ticket was to fixed #2, but it does change #1 too. If
the expectation of Redhat users, particularly ones who are new to how
Chef works now, expect home directories to always be created, then an
alternative would be to apply this fix, but also set manage_home to
default to true on those platforms. We could do this by platform,
platform_family, or be more hack-ish and look for a /etc/login.defs
with this value set.

> Don't break my Chef.
>
> If this is included in Chef 11 - as it probably should be, as it's a
> logical bug, considering the default value of :manage_home is false,
> then this should be lit up in lights, painted across the sky, shouted
> across the rooftops.

Please understand we're not trying to break you, but find the best
possible outcome to fix this bug and provide a Chef that produces the
least surprises to new users.

Bryan



Archive powered by MHonArc 2.6.16.

§