help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem using packages: or NOT operator?


From: Villalovos, John L
Subject: RE: Problem using packages: or NOT operator?
Date: Thu, 29 Apr 2004 16:36:25 -0700

Phil D'Amore wrote:
> You are likely not setting a package manager.
> 
> packages: requires a package manager to be set, even though
> the only one
> that works right now is rpm.  you can either do this:
> 
> vim-enhanced  pkgmgr=rpm elsedefine=vimEnhanced
> 
> or
> 
> control:
>     DefaultPkgMgr = ( rpm )
> 
> which will set it for all of your checks.  Cfengine does not
> error out
> if this is not specified but it should print a message to warn you if
> you run with -d 1.  Sorry if this was unintuitive, it seemed like the
> Right Thing (tm) to do at the time.

I am setting DefaultPkgMgr.

In the output from cfagent -d 1 -d 2 -v

I see where it says:

LVALUE DefaultPkgMgr
HandleLVALUE(DefaultPkgMgr) in action Control Defintions:
EQUALS =
LEFTBRACK
RVAL-VAROBJ rpm
ExpandVarstring(rpm)
Assign variable [DefaultPkgMgr=rpm] when redhat)

I also see this:
DEFINED PACKAGE CHECKS

PACKAGE NAME: vim-enhanced2
 Package database: rpm
 IfElapsed=1, ExpireAfter=120
 Matches any package version.
 Define
 ElseDefine needVimEnhanced

Still no success though :(

This is 2.1.5 of cfengine.

John

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting
Q: What is the most annoying thing on usenet and in e-mail?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]