elements-dir: /etc/nodepool/elements
images-dir: /opt/nodepool_dib

zookeeper-servers:
  - host: zk01.openstack.org
    port: 2181
  - host: zk02.openstack.org
    port: 2181
  - host: zk03.openstack.org
    port: 2181

# NOTE(pabelanger): To avoid a race conditions between multiple launchers, only
# nl01.o.o will manage min-ready of our labels.  If nl01.o.o is ever disabled,
# another launcher will need to assume this logic.
labels:
  - name: centos-7
  - name: centos-8
  - name: debian-buster
  - name: debian-stretch
  - name: fedora-30
  - name: fedora-31
  - name: gentoo-17-0-systemd
  - name: opensuse-15
  - name: opensuse-tumbleweed
  - name: ubuntu-bionic
  - name: ubuntu-bionic-limestone-debug
  - name: ubuntu-focal
  - name: ubuntu-xenial
  - name: centos-7-expanded
    min-ready: 0
  - name: ubuntu-bionic-expanded
    min-ready: 0
  - name: ubuntu-bionic-32GB
    min-ready: 0
  - name: multi-numa-ubuntu-bionic
    min-ready: 0
  - name: multi-numa-ubuntu-bionic-expanded
    min-ready: 0
  - name: multi-numa-centos-7
    min-ready: 0
  - name: multi-numa-centos-7-expanded
    min-ready: 0
  - name: nested-virt-ubuntu-bionic
    min-ready: 0
  - name: nested-virt-centos-7
    min-ready: 0

providers:
  - name: limestone-regionone
    region-name: 'RegionOne'
    cloud: limestone
    boot-timeout: 120
    launch-timeout: 300
    rate: 0.01
    diskimages: &provider_diskimages
      - name: centos-7
        config-drive: true
      - name: centos-8
        config-drive: true
      - name: debian-buster
        config-drive: true
      - name: debian-stretch
        config-drive: true
      - name: fedora-30
        config-drive: true
      - name: fedora-31
        config-drive: true
      - name: gentoo-17-0-systemd
        config-drive: true
      - name: opensuse-15
        config-drive: true
      - name: opensuse-tumbleweed
        config-drive: true
      - name: ubuntu-bionic
        config-drive: true
      - name: ubuntu-focal
        config-drive: true
      - name: ubuntu-xenial
        config-drive: true
    pools:
      - name: main
        max-servers: 50
        labels:
          - name: centos-7
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: centos-8
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: centos-8
            key-name: infra-root-keys-2020-05-13
          - name: debian-buster
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: debian-buster
            key-name: infra-root-keys-2020-05-13
          - name: debian-stretch
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: debian-stretch
            key-name: infra-root-keys-2020-05-13
          - name: fedora-30
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: fedora-30
            key-name: infra-root-keys-2020-05-13
          - name: fedora-31
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: fedora-31
            key-name: infra-root-keys-2020-05-13
          - name: gentoo-17-0-systemd
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: gentoo-17-0-systemd
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-15
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: opensuse-15
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-tumbleweed
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: opensuse-tumbleweed
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic-limestone-debug
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-focal
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: ubuntu-focal
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-xenial
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: ubuntu-xenial
            key-name: infra-root-keys-2020-05-13
          - name: nested-virt-ubuntu-bionic
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: nested-virt-centos-7
            min-ram: 8000
            flavor-name: 'nodepool.0'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13

  - name: openedge-us-east
    region-name: 'us-east'
    cloud: openedge
    boot-timeout: 120
    launch-timeout: 300
    rate: 0.01
    diskimages: *provider_diskimages
    pools:
      - name: main
        max-servers: 40
        labels:
          - name: centos-7
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: centos-8
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: centos-8
            key-name: infra-root-keys-2020-05-13
          - name: debian-buster
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: debian-buster
            key-name: infra-root-keys-2020-05-13
          - name: debian-stretch
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: debian-stretch
            key-name: infra-root-keys-2020-05-13
          - name: fedora-30
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: fedora-30
            key-name: infra-root-keys-2020-05-13
          - name: fedora-31
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: fedora-31
            key-name: infra-root-keys-2020-05-13
          - name: gentoo-17-0-systemd
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: gentoo-17-0-systemd
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-15
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: opensuse-15
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-tumbleweed
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: opensuse-tumbleweed
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-focal
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: ubuntu-focal
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-xenial
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: ubuntu-xenial
            key-name: infra-root-keys-2020-05-13
          - name: nested-virt-ubuntu-bionic
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: nested-virt-centos-7
            min-ram: 8000
            flavor-name: '8cpu-8GBram-80GBdisk'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
      - name: custom
        max-servers: 10
        labels:
          - name: centos-7-expanded
            min-ram: 16000
            flavor-name: '8cpu-16GBram-80GBdisk'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic-expanded
            min-ram: 16000
            flavor-name: '8cpu-16GBram-80GBdisk'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: multi-numa-ubuntu-bionic
            min-ram: 8000
            flavor-name: 'multi-numa'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: multi-numa-ubuntu-bionic-expanded
            min-ram: 16000
            flavor-name: 'multi-numa-expanded'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: multi-numa-centos-7
            min-ram: 8000
            flavor-name: 'multi-numa'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: multi-numa-centos-7-expanded
            min-ram: 16000
            flavor-name: 'multi-numa-expanded'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic-32GB
            min-ram: 32000
            flavor-name: '8cpu-32GBram-100GBdisk'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13

  - name: airship-kna1
    region-name: 'Kna1'
    cloud: airship-citycloud
    boot-timeout: 120
    launch-timeout: 600
    clean-floating-ips: true
    rate: 0.25
    diskimages: *provider_diskimages
    pools:
      - name: main
        # Canary capacity (by memory less than half capacity of airship pool).
        max-servers: 10
        labels:
          - name: centos-7
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: centos-7
            key-name: infra-root-keys-2020-05-13
          - name: centos-8
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: centos-8
            key-name: infra-root-keys-2020-05-13
          - name: debian-buster
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: debian-buster
            key-name: infra-root-keys-2020-05-13
          - name: debian-stretch
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: debian-stretch
            key-name: infra-root-keys-2020-05-13
          - name: fedora-30
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: fedora-30
            key-name: infra-root-keys-2020-05-13
          - name: fedora-31
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: fedora-31
            key-name: infra-root-keys-2020-05-13
          - name: gentoo-17-0-systemd
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: gentoo-17-0-systemd
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-15
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: opensuse-15
            key-name: infra-root-keys-2020-05-13
          - name: opensuse-tumbleweed
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: opensuse-tumbleweed
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-focal
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: ubuntu-focal
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-xenial
            min-ram: 8000
            flavor-name: '8C-8GB-100GB'
            diskimage: ubuntu-xenial
            key-name: infra-root-keys-2020-05-13
          # TODO add nested virt labels once confirmed nested virt works
          # to some degree.
      - name: airship
        # Jobs expected to run 1x 32GB instance + 3x 16GB instances with
        # goal of running 4 jobs concurrently.
        max-servers: 16
        labels:
          - name: ubuntu-bionic-expanded
            min-ram: 16000
            flavor-name: '8C-16GB-100GB'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13
          - name: ubuntu-bionic-32GB
            min-ram: 32000
            flavor-name: '8C-32GB-100GB'
            diskimage: ubuntu-bionic
            key-name: infra-root-keys-2020-05-13

diskimages:
  - name: centos-7
  - name: centos-8
  - name: debian-buster
  - name: debian-stretch
  - name: fedora-30
  - name: fedora-31
  - name: gentoo-17-0-systemd
  - name: opensuse-15
  - name: opensuse-tumbleweed
  - name: ubuntu-bionic
  - name: ubuntu-focal
  - name: ubuntu-xenial