Forum: Cfengine Help
Subject: Re: duplicate selection of value error
Author: szarag...@salesforce.com
Link to topic: https://cfengine.com/forum/read.php?3,19046,19274#msg-19274

I see the same type of error message...

cf3  !! Duplicate selection of value for variable "secondary_packages" in scope 
qa_host_imaging_2


Here is the relevant bundle info


bundle agent qa_host_imaging_2

{

vars:

        "secondary_packages" rlist => { 
readreallist("/var/tmp/qa_web-base-pkgs.txt", "#.*", "[\n]", 100, 1000) };

packages:

        (qa_cache|qa_www).new_server::

                "$(secondary_packages)"
                package_policy => "add",
                package_method => yum;

}

body package_method yum

{
        package_changes => "bulk";
        package_list_command => "/usr/bin/yum list installed";

        package_list_name_regex    => "([^.]+).*";
        package_list_version_regex => "[^\s]\s+([^\s]+).*";
        package_list_arch_regex    => "[^.]+\.([^\s]+).*";

        package_installed_regex => ".*installed.*";
        package_name_convention => "$(name)";

        package_add_command => "/usr/bin/yum -y install ";
        package_delete_command => "/bin/rpm -e";
        package_verify_command => "/bin/rpm -V";

}


The file /var/tmp/qa_web-base-pkgs.txt is just a list of rpm's that need to be 
installed.

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

Reply via email to