On Fri, Feb 26, 2010 at 8:31 PM, Dan Bode <[email protected]> wrote:
> HiGhislain, > > On Fri, Feb 26, 2010 at 5:37 AM, Ghislain Mokolomboka < > [email protected]> wrote: > >> Hi everyone, >> >> I'm newer in use of puppet. >> >> I have installed the puppet-master with this manifest site.pp >> >> *class update_class { >> >> Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin" } >> >> exec { "aptitude update && aptitude upgrade -s | mail -s 'Puppet >> master-update on $mycomputer' [email protected]": } >> } >> >> node "puppet-client.localhost.loc" { >> >> $mycomputer="Calavero Development workstation" >> include update_class >> >> }* >> >> What I would like to understand is: >> >> 1. Why my client (puppet-client) run periodicly the command *puppetd >> --test *? Does someone know how to desactivate it or where can I >> configure this. [I do not have any cron scheduled on puppet-client]. >> > > --test implies --one-time which means that puppet should run one time and > exit. this should not fire off puppet as a daemon. Most likely you > previously ran without this option. > > I would kill the running puppet process, run with --test again, and verify > with `ps` that a process does not start in the background. > > >> >> 2. The client *send me an email: >> >> * >> >> *Reading package lists... >> Building dependency tree... >> Reading state information... >> Reading extended state information... >> Initializing package states... >> >> >> >> The following packages will be upgraded: >> foomatic-filters libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 >> libpurple-bin libpurple0 linux-firmware openoffice.org-base-core >> openoffice.org-calc openoffice.org-common openoffice.org-core >> >> >> >> openoffice.org-draw openoffice.org-emailmerge openoffice.org-gnome >> openoffice.org-gtk openoffice.org-impress openoffice.org-math >> openoffice.org-style-human openoffice.org-writer python-uno >> ttf-opensymbol uno-libs3 ure >> >> >> >> 24 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. >> Need to get 74.6MB of archives. After unpacking 8192B will be used.* >> *Do you want to continue? [Y/n/?] Abort. >> >> >> >> >> 2. Question: >> >> How can I do to tell [Y] to puppet-master or to the puppet-client to install >> these packages. >> >> Thx for your help! >> >> Ghislain. >> >> * >> >> > I had a look at the man page for aptitude, there is a -y option that should > fix this. > > You can always try piping the linux command `yes` to the command, its a > little hackish, but its another option. > > hope this helps, > > Dan > > Hi Dan, Thx for your answer. The upgrade is Ok! with the option -Y After exec 'ps aux' I have those process in running: root 1415 2.4 5.1 38516 25532 ? Ssl 09:46 1:40 /usr/bin/ruby1.8 /usr/sbin/puppetd avahi 3710 2.0 0.3 2824 1500 ? Ss 10:54 0:00 avahi-daemon: running [puppet-client.local] I kill the first one * /usr/bin/ruby1.8 /usr/sbin/puppetd. This fixes the problem. Thx, Ghislain. * > ** >> >> >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<puppet-users%[email protected]> >> . >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-users%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
