Hi folks, I thought I''d get clever tonight and add to my base class for node configuation the statement: user { root : comment => "Root User on ${hostname}" } My hope was that I would change the GECOS field for the root user so that emails from root on the machines would identify which "root" they came from. What happened was the next run of the puppet agent resulted in a complaint of a cyclical reference. How do I get this to work without the cyclical reference? None of the classes that were listed as being part of the cyclical reference directly had dependencies on root, I''d imagine though there were implied references. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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 realize that you can set the RHS of the from address to an fqdn, right? On Fri, Sep 23, 2011 at 6:00 PM, Peter Berghold <salty.cowdawg@gmail.com>wrote:> Hi folks, > > I thought I''d get clever tonight and add to my base class for node > configuation the statement: > > user { root : comment => "Root User on ${hostname}" } > > My hope was that I would change the GECOS field for the root user so that > emails from root on the machines would identify which "root" they came from. > > > What happened was the next run of the puppet agent resulted in a complaint > of a cyclical reference. How do I get this to work without the cyclical > reference? > > None of the classes that were listed as being part of the cyclical > reference directly had dependencies on root, I''d imagine though there were > implied references. > > > -- > Peter L. Berghold > Owner, Shark River Technical Solutions LLC > > -- > 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.
Peter, are you using run stages? Your cyclical reference is probably related to the fact that every single file resource that installs a root-owned file has an implicit dependency on the root user. If you''ve got any root-owned files installed by stages that happen before the stage where you declared this, it will create a cycle. On Sep 23, 9:00 pm, Peter Berghold <salty.cowd...@gmail.com> wrote:> Hi folks, > > I thought I''d get clever tonight and add to my base class for node > configuation the statement: > > user { root : comment => "Root User on ${hostname}" } > > My hope was that I would change the GECOS field for the root user so that > emails from root on the machines would identify which "root" they came from. > > What happened was the next run of the puppet agent resulted in a complaint > of a cyclical reference. How do I get this to work without the cyclical > reference? > > None of the classes that were listed as being part of the cyclical reference > directly had dependencies on root, I''d imagine though there were implied > references. > > -- > Peter L. Berghold > Owner, Shark River Technical Solutions LLC-- 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.