# Role integration jobs.  These test the top-level generic roles/*
# under Zuul.  The range of platforms should be the same as those for
# openstack-zuul-jobs.
#
# NOTE(ianw): 2018-08 have left off Fedora & OpenSUSE because
#  no roles currently run on them.
- job:
    name: system-config-zuul-role-integration
    description: Test roles provided by system-config with Zuul.
    abstract: true
    parent: base
    run: roles-test/base.yaml
    files:
      - roles/

- job:
    name: system-config-zuul-role-integration-xenial
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-xenial
        - name: puppet4
          label: ubuntu-xenial
      groups:
        - name: puppet3
          nodes:
            - base
        - name: openafs
          nodes:
            - base

# NOTE(ianw): Run puppet3 tests until nb03.openstack.org is gone
# and we have no more puppet
- job:
    name: system-config-zuul-role-integration-xenial-arm64
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-xenial-arm64
      groups:
        - name: puppet3
          nodes:
            - base
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-bionic
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-bionic
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-bionic-arm64
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-bionic-arm64
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-focal
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-focal
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-focal-arm64
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: ubuntu-focal-arm64
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-debian-stable
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: debian-buster
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-debian-stable-arm64
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: debian-buster-arm64
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-centos-8
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: centos-8
      groups:
        - name: openafs
          nodes:
            - base

- job:
    name: system-config-zuul-role-integration-centos-8-arm64
    parent: system-config-zuul-role-integration
    nodeset:
      nodes:
        - name: base
          label: centos-8-arm64
      groups:
        - name: openafs
          nodes:
            - base

- project-template:
    name: system-config-zuul-role-integration
    check:
      jobs:
        - system-config-zuul-role-integration-xenial
        - system-config-zuul-role-integration-xenial-arm64
        - system-config-zuul-role-integration-bionic
        - system-config-zuul-role-integration-bionic-arm64
        - system-config-zuul-role-integration-focal
        - system-config-zuul-role-integration-focal-arm64
        - system-config-zuul-role-integration-debian-stable
        - system-config-zuul-role-integration-debian-stable-arm64
        - system-config-zuul-role-integration-centos-8
        - system-config-zuul-role-integration-centos-8-arm64
    gate:
      jobs:
        - system-config-zuul-role-integration-xenial
        - system-config-zuul-role-integration-xenial-arm64
        - system-config-zuul-role-integration-bionic
        - system-config-zuul-role-integration-bionic-arm64
        - system-config-zuul-role-integration-focal
        - system-config-zuul-role-integration-focal-arm64
        - system-config-zuul-role-integration-debian-stable
        - system-config-zuul-role-integration-debian-stable-arm64
        - system-config-zuul-role-integration-centos-8
        - system-config-zuul-role-integration-centos-8-arm64