- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: Re: Re: user id conflicts with user cookbook
- Date: Wed, 19 Oct 2011 14:01:58 +1300
Yo,
Bad luck re: automation
I mean create your users (with chef, from data-bags) in a high-UID range.
You can adjust the useradd configuration file to add users to a
different UID range, for your terrible, terrible, greybeard bad-mans,
when called by hand without a UID.
–AJ
On 19 October 2011 13:46, John Alberts
<
>
wrote:
>
Yeah, I know, but unfortunately, not manually adding users is not an option.
>
We are only partially automated and that's not going to change for a while.
>
I've already tried using a high uid and it doesn't matter. Whatever I
>
change it to, the next time a user is created using useradd, it just picks
>
up where chef left off.
>
>
On Tue, Oct 18, 2011 at 7:40 PM, AJ Christensen
>
<
>
>
wrote:
>
>
>
> Don't manually add users, manage everything with Chef.
>
>
>
> Try a high UID range, otherwise, like 4000
>
>
>
> On Oct 19, 2011 1:12 PM, "John Alberts"
>
> <
>
>
> wrote:
>
>>
>
>> i've been using the users cookbook for a while, and I've noticed an issue
>
>> that I wonder if anyone else has a solution to. When I add a new user to
>
>> the databag and run chef-client on a server that has been around for a
>
>> while
>
>> and had some users manually added to it, I get a uid and gid conflict.
>
>> Obviously the real problem here is that we are still manually adding
>
>> users
>
>> occasionally, but unfortunately that's unavoidable for now.
>
>>
>
>> I thought about removing the uid and gid attributes from the recipe so it
>
>> just creates the user with the next available uid and gid, but I thought I
>
>> would ask on the mailing list before doing that to see what other's have
>
>> done to avoid this.
>
>>
>
>> Thanks
>
>>
>
>> John
>
>
>
>
--
>
John Alberts
>
>
Archive powered by MHonArc 2.6.16.