I''m looking to get around a bit of a problem I''ve run into with Puppet. On my puppet master, I have this definition: class httpd { package { httpd: ensure => installed } file { "/etc/httpd/conf/httpd.conf": source => ["puppet:///httpd/httpd.conf-$my_role", "puppet:/// httpd/httpd.conf-$hostname","puppet:///httpd/httpd.conf" ], mode => 644, require => Package["httpd"] } group { apache: gid => 48 } user { apache: comment => "Apache", uid => 48, gid => 48, home => "/var/www", shell => "/sbin/nologin" } service { "httpd": enable => true, ensure => running, require => Package["httpd"], subscribe => [ file["/etc/httpd/conf/httpd.conf"], package["httpd"] ] } } From what I understood this would enforce the package would be installed, and keep httpd running, which is the desired effect. However, since puppetd checks in about every 30 min, I noticed in my log that yum was throwing an error about "network abuse" due to the polling of yum to make sure the package is installed. I''m curious if I could use a "schedule" and include that in the package definition there. i.e. add: schedule { daily: period => daily, range => [2, 4] } and then modify the package def: package { httpd: ensure => installed, schedule => daily } Would that be the best way to handle this issue? Any opinions? Thanks! -- 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.
Patrick Mohr
2010-Nov-03 18:46 UTC
Re: [Puppet Users] (RHEL) RHN banning && require package
On Wed, Nov 3, 2010 at 10:37 AM, erikthered <j.e.redding@gmail.com> wrote:> I''m looking to get around a bit of a problem I''ve run into with > Puppet. On my puppet master, I have this definition: > > Would that be the best way to handle this issue? Any opinions? > >I think they best way would be to put a caching proxy between your computers and the mirror or run your own mirror. -- 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 Nov 3, 1:46 pm, Patrick Mohr <kc7...@gmail.com> wrote:> On Wed, Nov 3, 2010 at 10:37 AM, erikthered <j.e.redd...@gmail.com> wrote: > > I''m looking to get around a bit of a problem I''ve run into with > > Puppet. On my puppet master, I have this definition: > > > Would that be the best way to handle this issue? Any opinions? > > I think they best way would be to put a caching proxy between your computers > and the mirror or run your own mirror.fair enough... just for the record it appears to be working while our local repo is being built. -- 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.
Iain Sutton
2010-Nov-05 00:04 UTC
Re: [Puppet Users] Re: (RHEL) RHN banning && require package
Also for the record. We''ve experienced the banning - but only for RHEL4 hosts (which use up2date) and not RHEL5 (which use yum). Our solution while we still have RHEL4 hosts and haven''t implemented RedHat Satellite or Spacewalk was to push the runinterval out to 14400 for these hosts. This matches the 4 hour polling cycle that RedHat set with rhnsd. We disable rhnsd on these hosts too, so the only RHN polling mechanism is the puppet run. Iain On 4 November 2010 06:43, erikthered <j.e.redding@gmail.com> wrote:> > > On Nov 3, 1:46 pm, Patrick Mohr <kc7...@gmail.com> wrote: > > On Wed, Nov 3, 2010 at 10:37 AM, erikthered <j.e.redd...@gmail.com> > wrote: > > > I''m looking to get around a bit of a problem I''ve run into with > > > Puppet. On my puppet master, I have this definition: > > > > > Would that be the best way to handle this issue? Any opinions? > > > > I think they best way would be to put a caching proxy between your > computers > > and the mirror or run your own mirror. > > fair enough... > > just for the record it appears to be working while our local repo is > being built. > > -- > 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<puppet-users%2Bunsubscribe@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.