version: '2'
pipelines:
  - mpp-import-pipelines:
      path: ../manifests/fedora-vars.ipp.yaml
  - mpp-import-pipeline:
      path: ../manifests/fedora-build-v2.ipp.yaml
      id: build
    runner:
      mpp-format-string: org.osbuild.fedora{release}
  - name: tree
    build: name:build
    stages:
      - type: org.osbuild.rpm
        inputs:
          packages:
            type: org.osbuild.files
            origin: org.osbuild.source
            mpp-depsolve:
              architecture: $arch
              module-platform-id: $module_platform_id
              repos:
                mpp-eval: repos
              packages:
                - kmod
        options:
          gpgkeys:
            mpp-eval: gpgkeys
          exclude:
            docs: true

      - type: org.osbuild.modprobe
        options:
          filename: disallow-modules.conf
          commands:
            - command: blacklist
              modulename: nouveau
            - command: blacklist
              modulename: floppy
      - type: org.osbuild.modprobe
        options:
          filename: disallow-additional-modules.conf
          commands:
            - command: blacklist
              modulename: my-module
      - type: org.osbuild.modprobe
        options:
          filename: firewalld-sysctls.conf
          commands:
            - command: install
              modulename: nf_conntrack
              cmdline: /usr/sbin/modprobe --ignore-install nf_conntrack $CMDLINE_OPTS && /usr/sbin/sysctl --quiet --pattern 'net[.]netfilter[.]nf_conntrack.*' --system
