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

Promise module for appstreams custom promise type

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Priority: Higher
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cfbs, Promise modules
    • Labels:
      None

      Description

      A promise type to manage yum/dnf module streams.

      bundle agent __main__
      {
        appstreams:
          redhat_8::
            "nginx:1.18" default => "true";
      
          redhat_9::
            # yum module disbale nginx:1.18; yum module enable nginx:1.19
            "nginx:1.19" state => "enabled|disabled";
            "nginx:1.19" state => "enabled|disabled", default => "true|false";
            "php:7.3"
              state => "enabled|disabled",
              force => "true", # yum module disable -y php; yum module enable -y php:7.3
              distro_sync => "true|false"; #After enabling the proper module stream, ~yum distro-sync -y~. This could as well be done via commands promise type, but might as well do it directly here for convenience
              allow_erase => "true|false";
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              a10042 Nick Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: