you'll need to upgrade.

Tom Van de Velde wrote:
> Hi,
> 
> Thanks for the reply I tried that but got an error and he is falling back to 
> failsafe
> 
> cf3:/var/cfengine/inputs/promises.cf:7,32: Constraint lvalue 
> ignore_missing_inputs is not allowed in 'common' constraint body, near token 
> 'true"'
> Can't stat file "/var/cfengine/inputs/cf3.framework" for parsing
>  !!! System error for stat: "No such file or directory"
> cf3 cf-agent was not able to get confirmation of promises from cf-promises, 
> so going to failsafe
> cf3   > Parsing file /var/cfengine/inputs/failsafe.cf
> 
> My common control is defined as below...
> 
> body common control
> {
>         domain => "main";
>         bundlesequence => { "seq1", "seq2" };
> 
>         # The equivalent of imports
>         ignore_missing_inputs => "true";
>         inputs => {
>                 "cf3.framework"
>                };
> }
> /var/cfengine/bin/cf-agent --version
> This comprises cf-agent core community version 3.0.3 - (C) Cfengine AS 2008-
> 
> Any ideas??
> Regards,
> Tom
> 
> 
> 
> --- On Tue, 4/20/10, Mark Burgess <mark.burg...@iu.hio.no> wrote:
> 
>> From: Mark Burgess <mark.burg...@iu.hio.no>
>> Subject: Re: Question on FileExists and imports when upgrading from CF2 to 
>> CF3.
>> To: "Tom Van de Velde" <tom_vandeve...@yahoo.com>
>> Cc: help-cfengine@cfengine.org
>> Date: Tuesday, April 20, 2010, 10:00 AM
>>
>> TAke a  look at
>>
>> http://www.cfengine.org/manuals/cf3-reference.html#ignore_005fmissing_005finputs-in-common
>>
>> Perhaps this is what you need. But see also the special
>> topics guide on teamwork,
>>
>> M
>>
>> Tom Van de Velde wrote:
>>> Hi,
>>>
>>> We have a very specific setup in our cfengine
>> environment. It is the result of a separation of people
>> producing the cfengine code and system engineer who will
>> determine what needs to be done on a specific system. 
>>> It comes down to 2 steps in the cfengine 2 :
>>> 1.Determine if a file is there. (FileExists)
>>> 2.Import the file and basically execute it.
>>>
>>> An example is something like
>>> classes:
>>>     do_apache =
>> (FileExists(/var/cfengine/inputs/cf2.apache}) )
>>> import:
>>>     do_apache::  
>>>   cf2.apache
>>>
>>> This way we do allow engineers to use predefined
>> modules without editing the CFengine code. Any idea what is
>> the best option to migrate this kind of behavior to a
>> version 3 structure?
>>> Kind regards,
>>> Tom
>>>
>>>
>>>        
>>> _______________________________________________
>>> Help-cfengine mailing list
>>> Help-cfengine@cfengine.org
>>> https://cfengine.org/mailman/listinfo/help-cfengine
>> -- 
>> Mark Burgess
>>
>> -------------------------------------------------
>> Professor of Network and System Administration
>> Oslo University College, Norway
>>
>> Personal Web: http://www.iu.hio.no/~mark
>> Office Telf : +47 22453272
>> -------------------------------------------------
>>
> 
> 
>       

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to