The courier-imap (and courier-pop) services on my lab VMs don''t actually get refreshed after puppet drops in the config files. I suspect it''s something about the lack of /etc/init.d/courier-pop status, coupled with that I have the wrong pattern. Could anybody offer any hints of what I''m doing wrong, or what would be the correct pattern for these processes? Both the imap and pop manifests have the same structure, so I''ll use pop in this example. The platform is Debian Squeeze, and puppet 2.6.2. I get the same behaviour in Ubuntu 10.04 running puppet 2.6.2. Here is the process running after the post-instantiation puppet run, with default Courier values: root 4931 0.0 0.0 1880 360 ? S 12:41 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/pop3d.pid -start -name=pop3d /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup -address=0 110 /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir root 4932 0.0 0.0 1984 612 ? S 12:41 0:00 \_ /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup -address=0 110 /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir However, the config file was correctly installed by puppet, having my non-default values: $ grep -i max /etc/courier/pop3d ##NAME: MAXDAEMONS:0 # Maximum number of POP3 servers started MAXDAEMONS=200 ##NAME: MAXPERIP:4 # Maximum number of connections to accept from the same IP address MAXPERIP=25 Here''s a snip from the manifest: $pkg1 = ''courier-pop'' $popd = ''/etc/courier/pop3d'' $popdsource = "$filesource/$popdfile" $service = ''courier-pop'' $restarter = ''/usr/local/sbin/restart_courier-pop.sh'' $restartertemplate = "$classname/restart_courier.sh.erb" $mfile = ''/etc/monit/conf.d/courier-pop'' $mfilesource = "$filesource/monit__courier-pop" package { $pkg1: ensure => installed, } file { $popd: source => $popdsource, owner => ''root'', group => ''root'', mode => 644, require => Package[$pkg1], } service { $service: require => File[$popd], ensure => running, hasrestart => true, hasstatus => false, pattern => ''pop3d'', subscribe => File[$popd], } -- 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.
(My apologies for the attachment, I''m sleepy and did -a not -i in mutt.) -------------------------------- This electronic message contains information from Primus Telecommunications Canada Inc. ("PRIMUS") , which may be legally privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or e-mail (to the number or address above) immediately. Any views, opinions or advice expressed in this electronic message are not necessarily the views, opinions or advice of PRIMUS. It is the responsibility of the recipient to ensure that any attachments are virus free and PRIMUS bears no responsibility for any loss or damage arising in any way from the use thereof.The term "PRIMUS" includes its affiliates. -------------------------------- Pour la version en français de ce message, veuillez voir http://www.primustel.ca/fr/legal/cs.htm -- 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 01/13/2012 07:08 PM, Christopher Wood wrote:> The courier-imap (and courier-pop) services on my lab VMs don''t actually get refreshed after puppet drops in the config files. I suspect it''s something about the lack of /etc/init.d/courier-pop status, coupled with that I have the wrong pattern. Could anybody offer any hints of what I''m doing wrong, or what would be the correct pattern for these processes?Are the services started via initscript at all? If not, have a look at the binary parameter to the service type: http://docs.puppetlabs.com/references/stable/type.html#service Otherwise the hasrestart parameter may help you out. To test things, simply manipulate the config file on your agent node (slightly) and run puppet (you may want to dry --verbose and --debug when you do). Watch out for what the agent has to say about your service. HTH, 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.
Unfortunately I am unable to reproduce this except outside the target virtualized environment, currently unavailable due to resource concerns. So far courier-imap and courier-pop restart as they should elsewhere. On Tue, Jan 17, 2012 at 05:34:06PM +0100, Felix Frank wrote:> On 01/13/2012 07:08 PM, Christopher Wood wrote: > > The courier-imap (and courier-pop) services on my lab VMs don''t actually get refreshed after puppet drops in the config files. I suspect it''s something about the lack of /etc/init.d/courier-pop status, coupled with that I have the wrong pattern. Could anybody offer any hints of what I''m doing wrong, or what would be the correct pattern for these processes? > > Are the services started via initscript at all? > > If not, have a look at the binary parameter to the service type: > http://docs.puppetlabs.com/references/stable/type.html#service > > Otherwise the hasrestart parameter may help you out. > > To test things, simply manipulate the config file on your agent node > (slightly) and run puppet (you may want to dry --verbose and --debug > when you do). Watch out for what the agent has to say about your service. > > HTH, > 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. > >-- 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 01/25/2012 04:40 PM, Christopher Wood wrote:> Unfortunately I am unable to reproduce this except outside the target virtualized environment, currently unavailable due to resource concerns. > > So far courier-imap and courier-pop restart as they should elsewhere.I recommend puppet agent --test --noop. -- 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.