---
# This is a list of nodes with groups for each scenario/cluster layouts
scenarios:
  separate:
    - ['kube_control_plane']
    - ['kube_node']
    - ['etcd']
  ha:
    - ['kube_control_plane', 'etcd']
    - ['kube_control_plane', 'etcd']
    - ['kube_node', 'etcd']
  default:
    - ['kube_control_plane', 'etcd']
    - ['kube_node']
  all-in-one:
    - ['kube_control_plane', 'etcd', 'kube_node']
  ha-recover:
    - ['kube_control_plane', 'etcd']
    - ['kube_control_plane', 'etcd', 'broken_kube_control_plane', 'broken_etcd']
    - ['kube_node', 'etcd']
  ha-recover-noquorum:
    - ['kube_control_plane', 'etcd', 'broken_kube_control_plane', 'broken_etcd']
    - ['kube_control_plane', 'etcd', 'broken_kube_control_plane', 'broken_etcd']
    - ['kube_node', 'etcd']
  node-etcd-client:
    - ['kube_node', 'kube_control_plane', 'etcd']
    - ['kube_node', 'etcd']
    - ['kube_node', 'etcd']
    - ['kube_node']

# Get pod metadata / CI vars from environment

ci_job_id: "{{ lookup('ansible.builtin.env', 'CI_JOB_ID', default=undefined) }}"
ci_job_name: "{{ lookup('ansible.builtin.env', 'CI_JOB_NAME', default=undefined) }}"
pod_name: "{{ lookup('ansible.builtin.env', 'POD_NAME', default=undefined) }}"
pod_uid: "{{ lookup('ansible.builtin.env', 'POD_UID', default=undefined) }}"
pod_namespace: "{{ lookup('ansible.builtin.env', 'POD_NAMESPACE', default=undefined) }}"
