On Mon, 2011-01-17 at 20:41 -0500, Daniel Bidwell wrote:
> I am trying to configure cf3 to do an 'apt-get -y upgrade' on some
> ubuntu servers.  I have a packages.cf which contains snippets like:
> 
> bundle agent packages
> {
> vars:
> 
> ...
> 
> commands:
>       ubuntu_servers::
> 
>       "apt-get -y upgrade";
> 
> packages:
>       any::
> ...
> }
> 
> In cf2 I used a "shellcommands:" group and it worked well.  Does this
> not work a "bundle agent packages" area?
> 
> If someone could point me to some examples that I can follow I would
> greatly appreciate it.

Wouldn't you know it.  As soon as you ask, you find the answer yourself
(somtimes at least).

It looks something like:

processes:
        ubuntu-servers::

        "apt-get"
                restart_class => "apt_get_upgrade";

commands:
        apt_get_upgrade::
                "/usr/bin/apt-get -y upgrade";


Now I will have to make this happen only a few times per day, but that
will wait until morning.

> 
> Thanks in advance.
> -- 
> Daniel R. Bidwell       |       bidw...@andrews.edu
> Andrews University      |       Information Technology Services
> If two always agree, one of them is unnecessary
> "Friends don't let friends do DOS"
> "In theory, theory and practice are the same.
> In practice, however, they are not."
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
> 
> 

-- 
Daniel R. Bidwell       |       bidw...@andrews.edu
Andrews University      |       Information Technology Services
If two always agree, one of them is unnecessary
"Friends don't let friends do DOS"
"In theory, theory and practice are the same.
In practice, however, they are not."


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to