Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1440

FreeBSD pkgng package installs fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.x
    • Component/s: Promise type: packages
    • Labels:
      None
    • Platform:
      Other (details)
    • Steps to reproduce:
      Manual steps provided

      Description

      Cf engine replaces the name of the package to be installed with CF_NOMATCH causing the install to fail.

      Can be reproduced on vagrant basebox:
      http://files.wunki.org/freebsd-10.0-amd64-wunki.box

      pkg install cfengine
      cp /usr/local/sbin/cf-* /var/cfengine/bin/.
      touch /var/cfengine/inputs/promises.cf

      cf-agent -f /usr/home/vagrant/pkgng_test.cf
      2014-05-08T14:36:30+0000 error: Bulk package schedule execution failed somewhere - unknown outcome for 'CF_NOMATCH-CF_NOMATCH'

        1. pkgng_test.cf
        2. A minimal policy to test pkgng package installs

      body common control
      {
      any::
      bundlesequence =>

      { testpkgng }

      ;
      }

      bundle agent testpkgng

        1. A simple bundle to install something with pkgng
          {
          packages:

      any::
      "ssmtp"
      package_policy => "add",
      package_method => freebsd_pkgng,
      comment => "Install something with pkgng";
      }

      body package_method freebsd_pkgng
      {
      package_changes => "bulk";

      package_list_command => "/usr/sbin/pkg info -qa";

      package_list_update_command => "/usr/sbin/pkg update";
      package_list_update_ifelapsed => "240";

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

      package_name_regex => "([^\s]+)-.*";
      package_version_regex => "[^\s]-([^\s]).*";

      package_verify_command => "/usr/sbin/pkg check -s ";
      package_noverify_regex => ".*";

      package_installed_regex => ".*";

      package_name_convention => "$(name)-$(version)";

      package_update_command => "/usr/sbin/pkg upgrade -y ";
      package_add_command => "/usr/sbin/pkg install -y ";
      package_delete_command => "/usr/sbin/pkg delete -y ";
      }

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              rpoyner Russell Poyner
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel