-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You folks were so helpful with my last problem I thought I''d try again. I''m attempting to use the services filetype to ensure that ntpd is running on all my hosts. Unfortunately this does not seem to be working on my Gentoo test system. I get the following output on the client log: puppetd[3436]: Starting configuration run rc-scripts: status: stopped puppetd[3436]: (//puppeteer/ntpd_client/service=ntpd) Failed to retrieve current state: Service ntpd does not support enabling puppetd[3436]: Finished configuration run in 7.31 seconds My ntpd puppet configuration looks like this: class ntpd_client { #----------------------------------------------------------------- # Description : All of our hosts should be running NTP so we''re all # refering to the same time. Here we ensure that NTP # is installed on all the machines and that they all # have a sane configuration file. # Author : Paul Ortman # Date : October 2006 #----------------------------------------------------------------- # First things first, make sure we have ntp installed by the # OS/vendor packaging system. package { "ntp" : ensure => latest } # This is the standard configuration file, make sure this # requires ntp to be installed before we place it. remotefile { "/etc/ntp.conf" : source => "etc/ntp.conf", mode => 660, require => package["ntp"] } # These next two files are clearly Gentoo specific, should # probably hide them from others... FIXME remotefile { "/etc/conf.d/ntp-client" : source => "etc/conf.d/ntp-client", mode => 644 } remotefile { "/etc/conf.d/ntpd" : source => "etc/conf.d/ntpd", mode => 644 } # Finally, we should definitely all be in the same timezone, and # this is reflected by creating a symlink to the correct timezone # file. file { "/etc/localtime" : ensure => "/usr/share/zoneinfo/US/Eastern" } # We should also ensure that the ntpd service is running or else # all of our work is for naught. Additionally this service # should be reloaded whenever the configuration file changes. # FIXME service { ntpd : enable => true, ensure => running, hasrestart => true, hasstatus => true, name => "ntpd", path => "/etc/init.d" } } This seems to be correct from my beginner perspective, but what am I doing wrong? Incidentally, I''m using Puppet 0.19.3 and Facter 1.3.5. - -- Paul Ortman PGP Key: 55602C81 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFL7KRfw8KGlVgLIERAgk/AJ9xrGXpopixsl69P+7hKvxUJtOb3wCff1vZ 9lpmLNhjDwNHfDpztn+PLbo=RVV2 -----END PGP SIGNATURE-----
Paul Ortman wrote: [SNIP]> # We should also ensure that the ntpd service is running or else > # all of our work is for naught. Additionally this service > # should be reloaded whenever the configuration file changes. > # FIXME > service { ntpd : > enable => true, > ensure => running, > hasrestart => true, > hasstatus => true, > name => "ntpd", > path => "/etc/init.d" } > } > > This seems to be correct from my beginner perspective, but what am I > doing wrong? Incidentally, I''m using Puppet 0.19.3 and Facter 1.3.5.Init-style services do not support enabling. Red Hat supports it via chkconfig, Debian supports it via update-rc.d, but that''s it. Does Gentoo have a tool like either of these? If it has either of them, then you can specify the appropriate platform''s service provider. Otherwise, you''ll have to manually enable/disable the service using symlinks that you manage directly via Puppet. -- I am a kind of paranoiac in reverse. I suspect people of plotting to make me happy. --J. D. Salinger --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Gentoo has a tool for this: the rc-update script. On 16/10/06, Luke Kanies <luke@madstop.com> wrote:> > Paul Ortman wrote: > [SNIP] > > # We should also ensure that the ntpd service is running or else > > # all of our work is for naught. Additionally this service > > # should be reloaded whenever the configuration file changes. > > # FIXME > > service { ntpd : > > enable => true, > > ensure => running, > > hasrestart => true, > > hasstatus => true, > > name => "ntpd", > > path => "/etc/init.d" } > > } > > > > This seems to be correct from my beginner perspective, but what am I > > doing wrong? Incidentally, I''m using Puppet 0.19.3 and Facter 1.3.5. > > Init-style services do not support enabling. Red Hat supports it via > chkconfig, Debian supports it via update-rc.d, but that''s it. > > Does Gentoo have a tool like either of these? If it has either of them, > then you can specify the appropriate platform''s service provider. > > Otherwise, you''ll have to manually enable/disable the service using > symlinks that you manage directly via Puppet. > > -- > I am a kind of paranoiac in reverse. I suspect people of plotting > to make me happy. --J. D. Salinger > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Thijs Oppermann wrote:> Gentoo has a tool for this: the rc-update script.Okay; then we''ll have to create a "gentoo" service provider as a subclass of the init provider, with the enable/disable code modified to use rc-update. -- Sometimes I think we''re alone. Sometimes I think we''re not. In either case, the thought is staggering. --R. Buckminster Fuller --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
2006/10/16, Luke Kanies <luke@madstop.com>:> > Thijs Oppermann wrote: > > Gentoo has a tool for this: the rc-update script. > > Okay; then we''ll have to create a "gentoo" service provider as a > subclass of the init provider, with the enable/disable code modified to > use rc-update. >This is in my TODO list... I hoped to take a look at it during this week Best regards Jose _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
José González Gómez wrote:> > > This is in my TODO list... I hoped to take a look at it during this weekIf you want it to be in 0.20, please hurry. -- At my lemonade stand I used to give the first glass away free and charge five dollars for the second glass. The refill contained the antidote. -- Emo Phillips --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
2006/10/17, Luke Kanies <luke@madstop.com>:> > José González Gómez wrote: > > > > > > This is in my TODO list... I hoped to take a look at it during this week > > If you want it to be in 0.20, please hurry. >Hope I''m in time, Paul, can you test it from svn or will you wait until 0.20is released?: http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/318 Could you also include this in 0.20? http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/319 Thanks a lot, best regards Jose _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
José González Gómez wrote:> > > Hope I''m in time, Paul, can you test it from svn or will you wait until > 0.20 is released?: > > http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/318 > > Could you also include this in 0.20? > > http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/319Yes, you''re in time; thanks. BTW, can you add ''[PATCH]'' to the title of tickets you submit with patches? That way I know when a ticket will be easy to handle. Thanks! -- Neonle will continue to be rude, and will nretend that you had a small stroke which makes you unable to say or see the letter "n". Stunid nractical joke, if you ask me. Bunch of noon-heads, huh? -- Fred Barling, Humorscope --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
2006/10/17, Luke Kanies <luke@madstop.com>:> > José González Gómez wrote: > > > > > > Hope I''m in time, Paul, can you test it from svn or will you wait until > > 0.20 is released?: > > > > http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/318 > > > > Could you also include this in 0.20? > > > > http://www.reductivelabs.com/cgi-bin/puppet.cgi/ticket/319 > > Yes, you''re in time; thanks. > > BTW, can you add ''[PATCH]'' to the title of tickets you submit with > patches? That way I know when a ticket will be easy to handle. > >Sure, I''ll do so next time... if you haven''t noticed so, 319 is a PATCH one, 318 includes the whole file to be dropped at provider/service. Best regards Jose _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 José González Gómez wrote:> 2006/10/17, Luke Kanies <luke@madstop.com <mailto:luke@madstop.com>>: > > José González Gómez wrote: > > > > > > This is in my TODO list... I hoped to take a look at it during > this week > > If you want it to be in 0.20, please hurry. > > > Hope I''m in time, Paul, can you test it from svn or will you wait until > 0.20 is released?:I''ll try to take a look in the next couple of days, but right now time is extremely precious and I''m not sure I''ll get to it for a bit. By the way, Jose and Luke, you guys rock. I''ve been showing off what can be done and in general people are fairly impressed. I''m still learning where Puppet has its strengths and where attention and work is better spent lavished on individual machines -- note I''m in an academic environment with specialty servers instead of relatively uniform systems. I hope to find some time to share my "recipes" with others on the site. Thanks again for your work, it truly is excellent. - -- Paul Ortman PGP Key: 55602C81 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFNio0fw8KGlVgLIERAkMnAJ9oNX6AJHi58bjrZdkDe+5bKp3idQCfaPIW lN9bEYBDApSy8u62HRGa0Vk=Tz+8 -----END PGP SIGNATURE-----
Paul Ortman wrote:> > I''ll try to take a look in the next couple of days, but right now time > is extremely precious and I''m not sure I''ll get to it for a bit.It''s in SVN now, but assuming testing goes well, 0.20 will be out today.> By the way, Jose and Luke, you guys rock. I''ve been showing off what > can be done and in general people are fairly impressed. I''m still > learning where Puppet has its strengths and where attention and work is > better spent lavished on individual machines -- note I''m in an academic > environment with specialty servers instead of relatively uniform > systems. I hope to find some time to share my "recipes" with others on > the site. Thanks again for your work, it truly is excellent.Great, glad to hear it. -- I have lost friends, some by death... others through sheer inability to cross the street. -- Virginia Woolf --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com