Hello Everyone; I am stuck... I am testing creating virtual resources and having no luck at all. I am not getting any errors when I execute puppet agent --test but, the user account is never getting created. I would be so grateful if anyone would be kind enough to offer some advice. (virtual.pp) class user::virtual { @user {"john": ensure => present} @user {"graham": ensure => present} @user {"steven":} } class user::developers { realize( User["graham"], User["steven"] ) } node ''default'' { include test include motd include user::virtual include user::developers } Thanks in advance! -- 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 Wed, Jun 6, 2012 at 4:26 PM, Worker Bee <beeworker08@gmail.com> wrote:> Hello Everyone; > > I am stuck... > > I am testing creating virtual resources and having no luck at all. I am not > getting any errors when I execute puppet agent --test but, the user account > is never getting created. I would be so grateful if anyone would be kind > enough to offer some advice.What version of Puppet? -Jeff -- 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.
2.7.9.. On Wed, Jun 6, 2012 at 7:37 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Wed, Jun 6, 2012 at 4:26 PM, Worker Bee <beeworker08@gmail.com> wrote: > > Hello Everyone; > > > > I am stuck... > > > > I am testing creating virtual resources and having no luck at all. I am > not > > getting any errors when I execute puppet agent --test but, the user > account > > is never getting created. I would be so grateful if anyone would be kind > > enough to offer some advice. > > What version of Puppet? > > -Jeff > > -- > 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.
We usually choose to inherit the developers class from the virtual class, have you tried that approach? On Thu, Jun 7, 2012 at 7:44 AM, Worker Bee <beeworker08@gmail.com> wrote:> 2.7.9.. > > > > > > > On Wed, Jun 6, 2012 at 7:37 PM, Jeff McCune <jeff@puppetlabs.com> wrote: >> >> On Wed, Jun 6, 2012 at 4:26 PM, Worker Bee <beeworker08@gmail.com> wrote: >> > Hello Everyone; >> > >> > I am stuck... >> > >> > I am testing creating virtual resources and having no luck at all. I am >> > not >> > getting any errors when I execute puppet agent --test but, the user >> > account >> > is never getting created. I would be so grateful if anyone would be >> > kind >> > enough to offer some advice. >> >> What version of Puppet? >> >> -Jeff >> >> -- >> 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.-- Walter Heck -- Check out my startup: Puppet training and consulting @ http://www.olindata.com Follow @olindata on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/olindata -- 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 06/07/2012 01:26 AM, Worker Bee wrote:> > I am testing creating virtual resources and having no luck at all. I am > not getting any errors when I execute puppet agent --test but, the user > account is never getting created. I would be so grateful if anyone > would be kind enough to offer some advice.Is *none* of the users created? Please double check that there is in fact no user "graham" on the box in question. Thanks, Felix -- 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 other option is to move the include virtual to inside the user::developers class. On Thu, Jun 7, 2012 at 9:11 AM, Walter Heck <walterheck@gmail.com> wrote:> We usually choose to inherit the developers class from the virtual > class, have you tried that approach? > > On Thu, Jun 7, 2012 at 7:44 AM, Worker Bee <beeworker08@gmail.com> wrote: >> 2.7.9.. >> >> >> >> >> >> >> On Wed, Jun 6, 2012 at 7:37 PM, Jeff McCune <jeff@puppetlabs.com> wrote: >>> >>> On Wed, Jun 6, 2012 at 4:26 PM, Worker Bee <beeworker08@gmail.com> wrote: >>> > Hello Everyone; >>> > >>> > I am stuck... >>> > >>> > I am testing creating virtual resources and having no luck at all. I am >>> > not >>> > getting any errors when I execute puppet agent --test but, the user >>> > account >>> > is never getting created. I would be so grateful if anyone would be >>> > kind >>> > enough to offer some advice. >>> >>> What version of Puppet? >>> >>> -Jeff >>> >>> -- >>> 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. > > > > -- > Walter Heck > > -- > Check out my startup: Puppet training and consulting @ http://www.olindata.com > Follow @olindata on Twitter and/or ''Like'' our Facebook page at > http://www.facebook.com/olindata-- Walter Heck -- Check out my startup: Puppet training and consulting @ http://www.olindata.com Follow @olindata on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/olindata -- 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 06/07/2012 10:18 AM, Walter Heck wrote:> The other option is to move the include virtual to inside the > user::developers class. > > On Thu, Jun 7, 2012 at 9:11 AM, Walter Heck <walterheck@gmail.com> wrote: >> > We usually choose to inherit the developers class from the virtual >> > class, have you tried that approach?Are you implying a parse order dependency? That should not be the case. I''ve yet to see any evidence for this happening. The theory is: If a virtual resource X is declared *anywhere* in a given node''s manifest, realizing it will add it to the catalog. Regards, Felix -- 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 Jun 7, 3:23 am, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote:> On 06/07/2012 10:18 AM, Walter Heck wrote: > > > The other option is to move the include virtual to inside the > > user::developers class. > > > On Thu, Jun 7, 2012 at 9:11 AM, Walter Heck <walterh...@gmail.com> wrote: > >> > We usually choose to inherit the developers class from the virtual > >> > class, have you tried that approach? > > Are you implying a parse order dependency? > > That should not be the case. I''ve yet to see any evidence for this > happening. > > The theory is: If a virtual resource X is declared *anywhere* in a given > node''s manifest, realizing it will add it to the catalog.Does that suppose that the realize function enqueues a command to be processed later, to perform the actual realization after everything has been parsed? I don''t think that''s the way it works. Yes, the virtual resource can be declared anywhere, but its declaration needs to have been parsed before the resource can be realized. Personally, I would put "include ''user::virtual''" at the beginning of the body of class user::developers to address that requirement. I do not think it''s a parse-order issue, however. In the first place, Puppet should emit an error message if instructed to realize an (at that point) unknown resource. In the second place, the node declaration includes user::virtual before user::developers, so they should be parsed in that order. I''m with Felix in thinking that there is some missing or incorrect information here. The output from "puppet agent --debug --no- daemonize --onetime" might help clarify things. John -- 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.