I have this problem where I''m trying to create a user and the error message I am getting is: err: Could not run Puppet configuration client: Could not find user admin Here is what I have in the manifest and I am realizing the user at the basenode level and all my nodes inherit the basenode. @user { "admin": ensure => present, uid => 1100, gid => 1100, comment => "Admin User", shell => "/bin/bash", managehome => "true", } @group { "admin": ensure => present, gid => 1100 } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
How are you realizing the user? -- Jeff McCune - (+1-503-208-4484) On Feb 1, 2011, at 12:54 PM, Matt <mjblack@gmail.com> wrote:> I have this problem where I''m trying to create a user and the error > message I am getting is: > > err: Could not run Puppet configuration client: Could not find user > admin > > Here is what I have in the manifest and I am realizing the user at the > basenode level and all my nodes inherit the basenode. > > @user { "admin": > ensure => present, > uid => 1100, > gid => 1100, > comment => "Admin User", > shell => "/bin/bash", > managehome => "true", > } > @group { "admin": > ensure => present, > gid => 1100 > } > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Inside my basenode definiton, which is being inherited by another node definition it is doing realize(User["admin"],Group["admin"]) The strange thing is if remove the specified node definition and just have the basenode it works correctly. On Tue, Feb 1, 2011 at 12:59 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> How are you realizing the user? > > -- > Jeff McCune - (+1-503-208-4484) > > On Feb 1, 2011, at 12:54 PM, Matt <mjblack@gmail.com> wrote: > >> I have this problem where I''m trying to create a user and the error >> message I am getting is: >> >> err: Could not run Puppet configuration client: Could not find user >> admin >> >> Here is what I have in the manifest and I am realizing the user at the >> basenode level and all my nodes inherit the basenode. >> >> @user { "admin": >> ensure => present, >> uid => 1100, >> gid => 1100, >> comment => "Admin User", >> shell => "/bin/bash", >> managehome => "true", >> } >> @group { "admin": >> ensure => present, >> gid => 1100 >> } >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Feb 1, 2011 at 1:20 PM, Matthew Black <mjblack@gmail.com> wrote:> Inside my basenode definiton, which is being inherited by another node > definition it is doing > > realize(User["admin"],Group["admin"]) > > The strange thing is if remove the specified node definition and just > have the basenode it works correctly.This may be a bug then. In general, I prefer User <| title == admin |> over realize(User["admin"]), so you may want to try that. I''d also try using two realize calls with only one resource per call and trying an array: realize([ User["admin"], Group["admin"] ]) Hope this helps, -- Jeff McCune http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I tried what you suggested and it seems to have made no difference, I am still getting the same error. On Tue, Feb 1, 2011 at 1:30 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Tue, Feb 1, 2011 at 1:20 PM, Matthew Black <mjblack@gmail.com> wrote: >> Inside my basenode definiton, which is being inherited by another node >> definition it is doing >> >> realize(User["admin"],Group["admin"]) >> >> The strange thing is if remove the specified node definition and just >> have the basenode it works correctly. > > This may be a bug then. > > In general, I prefer User <| title == admin |> over > realize(User["admin"]), so you may want to try that. > > I''d also try using two realize calls with only one resource per call > and trying an array: > > realize([ User["admin"], Group["admin"] ]) > > Hope this helps, > -- > Jeff McCune > http://www.puppetlabs.com/ > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Really silly question here, is the virtual user in a class? In the basenode are you including the class that contains the virtual user? If the virtual user is in a class, can you put a notify resource in there to make sure the class is included as expected? HTH, Nan On Tue, Feb 1, 2011 at 10:39 AM, Matthew Black <mjblack@gmail.com> wrote:> I tried what you suggested and it seems to have made no difference, I > am still getting the same error. > > On Tue, Feb 1, 2011 at 1:30 PM, Jeff McCune <jeff@puppetlabs.com> wrote: >> On Tue, Feb 1, 2011 at 1:20 PM, Matthew Black <mjblack@gmail.com> wrote: >>> Inside my basenode definiton, which is being inherited by another node >>> definition it is doing >>> >>> realize(User["admin"],Group["admin"]) >>> >>> The strange thing is if remove the specified node definition and just >>> have the basenode it works correctly. >> >> This may be a bug then. >> >> In general, I prefer User <| title == admin |> over >> realize(User["admin"]), so you may want to try that. >> >> I''d also try using two realize calls with only one resource per call >> and trying an array: >> >> realize([ User["admin"], Group["admin"] ]) >> >> Hope this helps, >> -- >> Jeff McCune >> http://www.puppetlabs.com/ >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
The virtual user is in a class, that class is included at the basenode. I did put a log message in there and on the master it is loading the class. From the master perspective it looks like everything is fine. On Tue, Feb 1, 2011 at 1:50 PM, Nan Liu <nan@puppetlabs.com> wrote:> Really silly question here, is the virtual user in a class? In the > basenode are you including the class that contains the virtual user? > If the virtual user is in a class, can you put a notify resource in > there to make sure the class is included as expected? > > HTH, > > Nan > > On Tue, Feb 1, 2011 at 10:39 AM, Matthew Black <mjblack@gmail.com> wrote: >> I tried what you suggested and it seems to have made no difference, I >> am still getting the same error. >> >> On Tue, Feb 1, 2011 at 1:30 PM, Jeff McCune <jeff@puppetlabs.com> wrote: >>> On Tue, Feb 1, 2011 at 1:20 PM, Matthew Black <mjblack@gmail.com> wrote: >>>> Inside my basenode definiton, which is being inherited by another node >>>> definition it is doing >>>> >>>> realize(User["admin"],Group["admin"]) >>>> >>>> The strange thing is if remove the specified node definition and just >>>> have the basenode it works correctly. >>> >>> This may be a bug then. >>> >>> In general, I prefer User <| title == admin |> over >>> realize(User["admin"]), so you may want to try that. >>> >>> I''d also try using two realize calls with only one resource per call >>> and trying an array: >>> >>> realize([ User["admin"], Group["admin"] ]) >>> >>> Hope this helps, >>> -- >>> Jeff McCune >>> http://www.puppetlabs.com/ >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >>> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.