Re: [Puppet Users] Y[es] on Upgrade whith puppet

2010-03-01 Thread Joe McDonagh

Ghislain Mokolomboka wrote:


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 use apt-get, but I also need (in addition to -y) --force-yes -o 
Dpkg::Options::="--force-confold". I forget exactly why but I know I ran 
into something that bit me in the ass so I added those options.


--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Y[es] on Upgrade whith puppet

2010-02-26 Thread Dan Bode
HiGhislain,

On Fri, Feb 26, 2010 at 5:37 AM, Ghislain Mokolomboka  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' tatatat...@yahoo.com": }
> }
>
> 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


> **
>
>
>
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Y[es] on Upgrade whith puppet

2010-02-26 Thread Ghislain Mokolomboka
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' tatatat...@yahoo.com": }
}

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].

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.


*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.