Hi,

I'm trying to create a package_method that is verifiable on all policies.
But I keep getting messages like:
-----
cf3  !! Unsatisfied constraints in promise (somepackage,*,*)
-----
Package schedule execution ok for somepackage (outcome cannot be promised by 
cf-agent)
-----

Here is my method:
-----
body package_method apt {
    package_changes => "individual";#The promise can not be verified with this 
option

    package_name_convention => "$(name)";
    package_delete_convention => "$(name)";
    package_add_command => "/usr/bin/apt-get --yes install";
    package_delete_command => "/usr/bin/apt-get --yes remove";
    package_update_command =>  "/usr/bin/apt-get --yes install";

    package_installed_regex => "ii\s+.*"; # all reported are installed
    package_list_command => "/usr/bin/dpkg -l";
    package_list_name_regex    => "ii\s+([^\s]+).*";
    package_list_version_regex => "ii\s+[^\s]+\s+([^\s]+).*";

    #package_list_update_command => "/usr/bin/apt-get update";
    #package_list_update_ifelapsed => "240";
}
-----

Does anyone have a solid solution to this?

Best regards
Operational Services LUX Application Platforms within BI Enterprise Services

Emil Assarsson
Sony Ericsson Mobile Communications AB
Nya Vattentornet, SE-221 88 Lund, Sweden
e-Mail: [email protected]
Phone: +46 (0)10 8017422
"The information in this email, and attachment(s) thereto, is strictly 
confidential and may be legally privileged. It is intended solely for the named 
recipient(s), and access to this e-mail, or any attachment(s) thereto, by 
anyone else is unauthorized. Violations hereof may result in legal actions. Any 
attachment(s) to this e-mail has been checked for viruses, but please rely on 
your own virus-checker and procedures. If you contact us by e-mail, we will 
store your name and address to facilitate communications in the matter 
concerned. If you do not consent to us storing your name and address for above 
stated purpose, please notify the sender promptly. Also, if you are not the 
intended recipient please inform the sender by replying to this transmission, 
and delete the e-mail, its attachment(s), and any copies of it without, 
disclosing it."

<<attachment: Assarsson, Emil.vcf>>

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to