It should look like this example; I've got "cf2_if_else" body from
'cfengine_stdlib.cf'
files:
linux::
"/etc/config.cong"
comment => "...",
perms => mog("440","root","root"),
copy_from => secure_cp("/cfroot/etc/config.conf","$(master)"),
classes => cf2_if_else("newConfig","NOnewConfig");
Cheers,
--Nakarin
On Jun 1, 2010, at 2:42 PM, Tom Van de Velde wrote:
> Hi,
>
> Just looking for a version 3 replacement of the define and failover statement
> that was used in version 2??
>
> Like ...
>
> copy:
> linux::
> /cfroot/etc/config.conf dest=/etc/config.cong
> owner=root
> group=root
> mode=440
> server=master
> trustkey=true
> type=sum
> linktype=copy
> backup=timestamp
> define=newConfig
> failover=NOnewConfig
>
> Any ideas?
>
> Regards,
> Tom
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine