On 06-08-10 17:13, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: cfagent and defining classes
> Author: pupu
> Link to topic: https://cfengine.com/forum/read.php?3,17858,17858#msg-17858
>
> Hello,
>
> I'm new to cfengine and I've encountered problem while running it on RedHat 
> Linux 5. I'm trying to distinguish between two DMZs:
>
> classes:
>
>     dmz1 = ( IPRange(172.16.0.0/16)|IPRange(14.0.0.0/8) )
>
> But the result is strange:
>
> # cfagent -v -p |grep 'Defined Classes'
> Defined Classes = ( 14_151_2 172_16_216 172_16_216_175 64_bit August Day6 
> Friday GMT_Hr15 Hr17 Hr17_Q1 Min00_05 Min02 Q1 Yr2010 any apl_mzem_net 
> cfengine_2 cfengine_2_2 cfengine_2_2_10 compiled_on_linux_gnu dmz1 
> eagri_apl_mzem_net eagritest_apl_mzem_net fe80__21b_78ff_fe29_af92 
> fe80__21b_78ff_fe29_af93 ipv4_14 ipv4_14_151 ipv4_14_151_2 ipv4_14_151_2_20 
> ipv4_172 ipv4_172_16 ipv4_172_16_216 ipv4_172_16_216_175 linux 
> linux_2_6_18_128_el5 linux_x86_64 linux_x86_64_2_6_18_128_el5 
> linux_x86_64_2_6_18_128_el5__1_SMP_Wed_Dec_17_11_41_38_EST_2008 mzem_net 
> n2rhps85 n2rhps85_apl_mzem_net n2rhps85_eagritest_cz n2rhps85_mzem_net net 
> net_iface_bond0 net_iface_bond1 net_iface_lo redhat redhat_s redhat_s_5 
> redhat_s_5_5 x86_64 )
>
> # cfagent -v  |grep 'Defined Classes'
> Defined Classes = ( 14_151_2 172_16_216 172_16_216_175 64_bit August Day6 
> Friday GMT_Hr15 Hr17 Hr17_Q1 Min00_05 Min02 Q1 Yr2010 any apl_mzem_net 
> cfengine_2 cfengine_2_2 cfengine_2_2_10 compiled_on_linux_gnu 
> eagri_apl_mzem_net eagritest_apl_mzem_net fe80__21b_78ff_fe29_af92 
> fe80__21b_78ff_fe29_af93 ipv4_14 ipv4_14_151 ipv4_14_151_2 ipv4_14_151_2_20 
> ipv4_172 ipv4_172_16 ipv4_172_16_216 ipv4_172_16_216_175 linux 
> linux_2_6_18_128_el5 linux_x86_64 linux_x86_64_2_6_18_128_el5 
> linux_x86_64_2_6_18_128_el5__1_SMP_Wed_Dec_17_11_41_38_EST_2008 mzem_net 
> n2rhps85 n2rhps85_apl_mzem_net n2rhps85_eagritest_cz n2rhps85_mzem_net net 
> net_iface_bond0 net_iface_bond1 net_iface_lo redhat redhat_s redhat_s_5 
> redhat_s_5_5 x86_64 )
>
> I don't have class 'dmz1' defined in the second case. Why...?
>
> GNU cfengine 2.2.10...
>
> Thanks for any suggestion or for pointing me to the right TFM...
>

I must leave out the | symbol:
  - dmz1 = ( IPRange(172.16.0.0/16) IPRange(14.0.0.0/8) )


-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to