This sample all.yml file is only for reference. The suggested common user account called installer is shown in this example. You can find the all.yml file in the /mw_bundle/inventory/my-cluster/group_vars/all.yml directory.
---
# the user account using which we would do a passwordless ssh on all the nodes
ansible_user: installer
ssh_key_filename: "id_rsa"
# cloud provider information
cloud_provider: "dc" #can be aws or dc
# external registry url if deployed
external_registry: ""
# NTP Settings
# when true optionally append your external ntp servers
ntp_enabled: true
ntp_servers:
- "{{ hostvars[groups['global_controller'][0]]['ansible_host'] | default(groups['global_controller'][0]) }}"
# Set this to the DNS name of Bare Metal Orchestrator which is also used by Keycloak.
# If the default setting is used, then access BMO from a web browser using "https://bmo-globalcontroller".
# If using windows, add an entry in your C:\windows\system32\drivers\etc\hosts file.
keycloak_access_hostname: "bmo-globalcontroller"
# Backup Service Settings
velero_aws_access_key: "myaccesskey"
velero_bucket: "bmo-backup"
velero_backup_location: "https://localhost:30500" #https://ip:port
velero_ca_path: ""
# Deploy the cluster in HA mode
rke2_ha_mode: false
# Uncomment values to deploy multi node control-plane after setting rke2_ha_mode: true
#ha_worker_ip: "{{ hostvars[groups]['ha'] | default(groups['ha']) }}"
#lb_ip_1: "{{ hostvars[groups['loadbalancer'][0]]['ansible_host'] | default(groups['loadbalancer'][0]) }}"
#lb_ip_2: "{{ hostvars[groups['loadbalancer'][1]]['ansible_host'] | default(groups['loadbalancer'][1]) }}"
# Uncomment and set the hostname of the loadbalancers
#lb_hostname_1: ""
#lb_hostname_2: ""
#lb_vip_ip: ""
#longhorn mount path
storage_mount_path: "/longhorn/"
# Add Secondary IPs for Certificate Generation. Uncomment cp1_secondary_ip for singlenode only. Uncomment all 3 for HA
#cp1_secondary_ip: "{{ hostvars[groups['secondary_ip'][0]]['ansible_host'] | default(groups['secondary_ip'][0]) }}"
#cp2_secondary_ip: "{{ hostvars[groups['secondary_ip'][1]]['ansible_host'] | default(groups['secondary_ip'][1]) }}"
#cp3_secondary_ip: "{{ hostvars[groups['secondary_ip'][2]]['ansible_host'] | default(groups['secondary_ip'][2]) }}"
# Uncomment this for IPv4/IPv6 network CIDRs to be used for pod IPs (default: 10.42.0.0/16)
#cluster_cidr: "172.28.0.0/16"
# Uncomment this for IPv4/IPv6 network CIDRs to be used for service IPs (default: 10.43.0.0/16)
#service_cidr: "172.27.0.0/16"
#longhorn info
enable_longhorn: false
# set the partition name in which the volumes will be created for longhorn
# e.g. /dev/sdb1
storage_volume: ""
# update id incase multiple deployments in same subnet
keepalive_vrrp_id: "151"
# ---------------------------------------------------------- #
# do not change any of these attributes in the section below #
# ---------------------------------------------------------- #
host_base_dir: "/root"
global_controller_ip: "{{ hostvars[groups['global_controller'][0]]['ansible_host'] | default(groups['global_controller'][0]) }}"
worker_ip: "{{ hostvars[groups]['node'] | default(groups['node']) }}"
# min size required of storage volume for longhorn nodes in GB
min_longhorn_size: 200
registry_image: "localregistry.io:5047/registry:2.8.2"
# IAM settings
keycloak_namespace: "iam"
db_namespace: "db"
db_storage: "8Gi"
# Velero settings
velero_namespace: "velero"
velero_image: "{{registry_name}}/mw/velero/velero:v1.11.0"
velero_plugin_image: "{{registry_name}}/mw/velero/velero-plugin-for-aws:v1.7.0"
s3_route: "{{ hostvars[groups['global_controller'][0]]['ansible_host'] | default(groups['global_controller'][0]) }}"
s3_port: "30500"