On Thursday 05 January 2012 07:23:33 you wrote:
> While I don't know if it's possible to negate an existing class, if what 
> you're trying to do is force cfengine to unconditionally use apt-get 
> rather than aptitude, then you could copy the "body package_method apt" 
> promise from the stdlib, and change it to

Good point, I could do that too.  I am actually trying to conditionally force 
cfengine to use apt-get, only on ubuntu_11_10, I didn't include that in 
examples.  This is due to a bug in aptitude to do with multiarch.

For now I changed the exec_command in body executor control to include '-N 
have_aptitude' on ubuntu_11_10 hosts which seems to work fine.  Not ideal 
though as at least for now, while still developing my cfe policies I tend to 
run cf-agent by hand a lot and have to remember to add that option :P

Thanks for the suggestion.

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
supp...@henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

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

Reply via email to