Forum: Cfengine Help Subject: help with a warning (?) message Author: yourdog Link to topic: https://cfengine.com/forum/read.php?3,18510,18510#msg-18510
I'm seeing the following warning message in my cfengine 3.0.5p1 runs, but the promises are acting as I expect them to. Is there something broken here, even though things appear to work, or what do I need to do to clean this up to stop the warning? !! Inconsistent "package_version" constraints break this promise Promise (version not specified) belongs to bundle 'lab' in file '/var/cfengine/inputs/lab.cf' near line 163 The relevant lines in lab.cf (line 163 is the line starting with package_method in the packages stanza): bundle agent lab { files: need_stb:: "/tmp/install_stb.sh" copy_from => mycopy("/tank1/cfengine/PKG/install_stb.sh","cf-server"), perms => u_p("755"), action => update_immediate, classes => if_repaired("install_stb"); packages: solaris|solarisx86:: "SUNWexplo" package_method => solaris("SUNWexplo","../dev/null","../dev/null"), package_policy => "add", package_version => "6.4,REV=2010.04.07.10.47", package_architectures => { "all" }, package_version => ">=", classes => if_repaired("need_stb"); commands: install_stb:: "/tmp/install_stb.sh -runmode auto && rm /tmp/install_stb.sh" contain => in_shell; } The basic logic here is to identify if the Solaris package SUNWexplo is installed at version 6.4,REV=2010.04.07.10.47 (or newer), and if it's not installed, set the class "need_stb" which will copy the installer to the system (and the pkgadd from /tmp/../dev/null will fail in the OS and not cfengine, since there doesn't appear to be a verify for Solaris packages), setting the class "install_stb" which will then run the installer (which includes the SUNWexplo package, amongst others). Thanks, Norman _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine