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:
                - cloud-init
        options:
          gpgkeys:
            mpp-eval: gpgkeys
          exclude:
            docs: true
      - type: org.osbuild.cloud-init
        options:
          filename: 00-default_user.cfg
          config:
            system_info:
              default_user:
                name: ec2-user
      - type: org.osbuild.cloud-init
        options:
          filename: 10-azure-kfp.cfg
          config:
            reporting:
              logging:
                type: log
              telemetry:
                type: hyperv
      - type: org.osbuild.cloud-init
        options:
          filename: 91-azure_datasource.cfg
          config:
            datasource_list:
              - Azure
            datasource:
              Azure:
                apply_network_config: false
      - type: org.osbuild.cloud-init
        options:
          filename: 06_logging_override.cfg
          config:
            output:
              all: '>> /var/log/cloud-init-all.log'
