On 07/24/2012 02:10 PM, Mikhail Gusarov wrote:
> On 07/24/2012 01:23 PM, no-re...@cfengine.com wrote:
>> Forum: CFEngine Help
>> Subject: cfengine 3.3.4 sys.domain empty ???
>> Author: stchesmeli
>> Link to topic: https://cfengine.com/forum/read.php?3,26600,26600#msg-26600
>>
>> Hi all, since i upgrade to cfengine 3.3.4 
>> (cfengine-community_3.3.4_amd64.deb from this website) the variable 
>> "sys.domain" is empty. My update bundle use this variable to automatically 
>> get the right files on mu hub server, so my nodes get wrong files from the 
>> hub.... big disaster !
>> I have made test:
>>
>> body common control
>> {
>>      bundlesequence =>  { "test"};
>> }
>>
>> bundle agent test
>> {
>> reports:
>>      linux::
>> "sys.arch value is ${sys.arch}";
>> "sys.cdate value is ${sys.cdate}";
>> "sys.cf_agent value is ${sys.cf_agent}";
>> "sys.cf_execd value is ${sys.cf_execd}";
>> "sys.cf_hub value is ${sys.cf_hub}";
>> "sys.cf_key value is ${sys.cf_key}";
>> "sys.domain value is ${sys.domain}";
>> }
>>
>> Output:
>>
>>
>> R: sys.arch value is x86_64
>> R: sys.cdate value is Tue_Jul_24_13_05_17_2012
>> R: sys.cf_agent value is "/var/cfengine/bin/cf-agent"
>> R: sys.cf_execd value is "/var/cfengine/bin/cf-execd"
>> R: sys.cf_hub value is ${sys.cf_hub}
>> R: sys.cf_key value is "/var/cfengine/bin/cf-key"
>> R: sys.domain  value is
>>
>>
>> So i roolback to 3.2.1 and everything is ok now. But, wow.... all my node 
>> get bad files... is a bug ? Or do you have change something with the 
>> sys.domain variable ?
> 
> You're right, please file it as a bug. Please also show the value of 
> sys.host, 
> sys.uqhost and sys.fqhost in your case.
> 
> 
I just send i pull request and here are my outputs with the patch commited:
{{{
: sys.arch value is x86_64
R: sys.cdate value is Tue_Jul_24_14_23_34_2012
R: sys.cf_agent value is "/var/lib/cfengine3/bin/cf-agent"
R: sys.cf_execd value is "/var/lib/cfengine3/bin/cf-execd"
R: sys.cf_hub value is ${sys.cf_hub}
R: sys.cf_key value is ${sys.cf_key}
R: sys.domain value is lisa.sara.nl
R: sys.host value is install2.lisa.sara.nl
R: sys.uqhost value is install2
R: sys.fqhost value is install2.lisa.sara.nl
}}}

-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to