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

Support enable/disable repo option in yum package_module

    XMLWordPrintable

    Details

      Description

      I've just had to remove the Fedora (EPEL) perl-DateTime package and replace it with the rpmforge perl-DateTime package, to install some other rpmforge package that specified perl-DateTime had to be 0.17 or greater (I had 0.41 installed from EPEL).

      On the CLI, I can install a package from a specific repo as follows:

      --disablerepo=* --enablerepo=rpmforge

      Contributed PR: https://github.com/cfengine/masterfiles/pull/1014, https://github.com/cfengine/masterfiles/pull/1069

      Usage

      bundle agent main
      {
        packages:
          "git"
              policy => "present",
              package_module => yum,
              options => { "enablerepo=updates" };
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                atsaloli Aleksey Tsalolikhin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel