Not sure if this will help, I was running into the same issue and
found that this will work.
test:
group:
- present
- gid: 50173
user:
- present
- fullname: Test User
- shell: /bin/bash
- home: /home/test
- uid: 50173
- gid: 50173
- groups:
- test
- require:
- group: test
On Apr 11, 2:00 pm, Duane Crouch <
duane.cro...@mnxsolutions.com>
wrote:
> Thank you.
>
> On Wed, Apr 11, 2012 at 1:44 PM, Thomas S Hatch <
thatc...@gmail.com> wrote:
>
>
>
> > Oh, useradd is attempting to add the default user group, remove the group
> > and the group dec from your sls and then do it again. I will have to have
> > something to handle this
>
> > On Wed, Apr 11, 2012 at 11:29 AM, Duane Crouch <
> >
duane.cro...@mnxsolutions.com> wrote:
>
> >> Using that, still same issue. I think the issue that I'm having comes
> >> from salt attempting the following command.
>
> >> [root@salt-minion ~]# useradd -s /bin/bash -m -d /home/dcrouch dcrouch
> >> useradd: group dcrouch exists - if you want to add this user to that
> >> group, use -g.
>
> >> On Wed, Apr 11, 2012 at 1:13 PM, Thomas S Hatch <
thatc...@gmail.com>wrote:
>
> >>> could you add a:
>
> >>> require:
> >>> - group: dcrouch
>
> >>> to your user state dec?
>
> >>> On Wed, Apr 11, 2012 at 11:07 AM, Duane Crouch <
> >>>
duane.cro...@mnxsolutions.com> wrote:
>
> >>>> Here's the data I'm working with salt state and output.
>
> >>>> I've been trying to create user/group. I've tested using the command
> >>>> output, before I was, not, though I realized groups was the cause. The
> >>>> trouble I'm having is even ensuring group is created it seems to be a flag
> >>>> with the useradd state.
>
> >>>>
http://thunked.org/p/view/pri/3tzi4e6qb
>
> >>>> On Wed, Apr 11, 2012 at 12:49 PM, Thomas S Hatch <
thatc...@gmail.com>wrote:
>
> >>>>> Oh, are you declaring and then requiring the group? you need to make
> >>>>> sure the group exists before assigning a user to it
>
> >>>>> On Wed, Apr 11, 2012 at 10:36 AM, Duane Crouch <
> >>>>>
duane.cro...@mnxsolutions.com> wrote:
>
> >>>>>> Oh, I believe it was yum on centos 6, and git on Ubuntu.
>
> >>>>>> On Wed, Apr 11, 2012 at 12:35 PM, Duane Crouch <
> >>>>>>
duane.cro...@mnxsolutions.com> wrote:
>
> >>>>>>> After so many snapshots and failures on my own part.
>
> >>>>>>> I'll try and grab from git, any specific branch?
>
> >>>>>>> On Wed, Apr 11, 2012 at 12:32 PM, Thomas S Hatch <
thatc...@gmail.com
> >>>>>>>>> will not function correctly.- Hide quoted text -
>
> - Show quoted text -