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:
                - chrony
        options:
          gpgkeys:
            mpp-eval: gpgkeys
          exclude:
            docs: true
      - type: org.osbuild.chrony
        options:
          timeservers:
            - ntp.example.com
            - ntp2.example.com
          refclocks:
            - driver:
                name: PPS
                device: "/dev/pps42"
                clear: true
              poll: 1
              dpoll: 2
              offset: 0.3
            - driver:
                name: SHM
                segment: 42
                perm: "0660"
              poll: 1
              dpoll: 2
              offset: 0.3
            - driver:
                name: SOCK
                path: "/run/time/thingie.socket"
              poll: 1
              dpoll: 2
              offset: 0.3
            - driver:
                name: PHC
                path: "/dev/ptp11"
                nocrossts: true
                extpps: true
                pin: 3
                channel: 4
                clear: true
              poll: 1
              dpoll: 2
              offset: 0.3
