Skip to content

Instantly share code, notes, and snippets.

@nadenf
Created May 29, 2021 12:46
Show Gist options
  • Save nadenf/73d7cc843c8887c8b5309268fed64c84 to your computer and use it in GitHub Desktop.
Save nadenf/73d7cc843c8887c8b5309268fed64c84 to your computer and use it in GitHub Desktop.
#
# Common variables for the inventory
#
[all:vars]
#
# Internal variables
#
ansible_python_interpreter=/usr/bin/python3
ansible_ssh_pipelining=True
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
kubeinit_inventory_network_gateway=11.0.0.254
kubeinit_inventory_network_netmask=255.255.255.0
kubeinit_inventory_network_dhcp_start=11.0.0.1
kubeinit_inventory_network_dhcp_end=11.0.0.253
kubeinit_inventory_network_cidr=24
kubeinit_inventory_network_net=11.0.0.0
kubeinit_inventory_network_name=kimgtnet0
kubeinit_inventory_network_bridge=kimgtbr0
# external network variables
kubeinit_inventory_network_bridge_external=kiextbr0
kubeinit_inventory_network_bridge_external_dev=wlp2s0
kubeinit_inventory_network_bridge_external_ip=11.19.41.157
kubeinit_inventory_network_bridge_external_gateway=11.19.41.254
kubeinit_inventory_network_bridge_external_netmask=255.255.255.0
kubeinit_inventory_network_bridge_external_mac=52:54:00:6a:39:ad
kubeinit_inventory_network_bridge_external_interfaceid=2e75c44c-630e-4bbf-9b40-62934d0b984c
kubeinit_inventory_cluster_dns_server=11.0.0.100
kubeinit_inventory_cluster_distro=eks
kubeinit_inventory_cluster_name=eks
kubeinit_inventory_cluster_domain=kubeinit.local
[master_nodes:vars]
os=centos
disk=20G
ram=20971520
vcpus=8
maxvcpus=16
prefix=24
root_device=/dev/sda1
[worker_nodes:vars]
os=centos
disk=300G
ram=20971520
vcpus=8
maxvcpus=16
prefix=24
root_device=/dev/sda1
[service_nodes:vars]
os=centos
disk=20G
ram=20971520
vcpus=8
maxvcpus=16
prefix=24
root_device=/dev/sda1
#
# Hosts definitions
#
# The cluster's guest machines can be distributed across
# mutiple hosts. By default they will be deployed in the first
# Hypervisor
[hypervisor_hosts]
hypervisor-01 ansible_host=harana
# hypervisor-02 ansible_host=tyto
# hypervisor-03 ansible_host=strix
# hypervisor-04 ansible_host=otus
# Master, worker, service, and bootstrap nodes can be configured as virtual
# machines or using the already provisioned baremetal machines for the deployment.
# Only use an odd number configuration, this means
# enabling only 1, 3, or 5 master nodes at a time.
[master_nodes]
eks-master ansible_host=11.0.0.1 mac=52:54:00:47:68:32 interfaceid=c875158a-09c6-47ba-8e83-84cf98327790 target=hypervisor-01 type=virtual
#eks-master2 ansible_host=11.0.0.2 mac=52:54:00:75:99:92 interfaceid=6ec8a8af-1930-4288-b732-937d7ce08d54 target=hypervisor-01 type=virtual
#eks-master3 ansible_host=11.0.0.3 mac=52:54:00:96:68:89 interfaceid=25a13077-4b03-4eba-a52f-8b4048275d0c target=hypervisor-01 type=virtual
# eks-master-04 ansible_host=11.0.0.4 mac=52:54:00:46:85:77 interfaceid=03376844-3ea3-48e9-858c-7a0653c63a3e target=hypervisor-01 type=virtual
# eks-master-05 ansible_host=11.0.0.5 mac=52:54:00:48:40:78 interfaceid=53e874f5-1972-4dd1-ab88-82ac0af52ca0 target=hypervisor-01 type=virtual
# From .6 to .99 worker nodes
[worker_nodes]
eks-worker-core ansible_host=11.0.0.6 mac=52:54:00:39:22:52 interfaceid=9edc6913-d6f9-4091-ad11-1138d1caacb1 target=hypervisor-01 type=virtual
eks-worker-task ansible_host=11.0.0.7 mac=52:54:00:14:61:67 interfaceid=73139f80-1564-40e4-ba9f-5b0941e780da target=hypervisor-01 type=virtual
#eks-worker-task2 ansible_host=11.0.0.8 mac=52:54:00:34:34:47 interfaceid=3584b702-4b70-44be-be6d-0995277b8a6d target=hypervisor-01 type=virtual
# eks-worker-04 ansible_host=11.0.0.9 mac=52:54:00:36:62:46 interfaceid=f7f13b74-d92f-4a2a-9356-202d50a426de target=hypervisor-01 type=virtual
# eks-worker-05 ansible_host=11.0.0.10 mac=52:54:00:37:86:62 interfaceid=5529bac2-dc06-43dc-b105-671c5efb514b target=hypervisor-01 type=virtual
# eks-worker-06 ansible_host=11.0.0.11 mac=52:54:00:99:54:46 interfaceid=ae954f70-6832-4019-a6c0-fae9b1560517 target=hypervisor-01 type=virtual
# eks-worker-07 ansible_host=11.0.0.12 mac=52:54:00:77:65:53 interfaceid=c14d902e-66e7-46c1-b8af-808d52aa6ea8 target=hypervisor-01 type=virtual
# eks-worker-08 ansible_host=11.0.0.13 mac=52:54:00:99:59:66 interfaceid=857128c6-489d-4b0f-81c3-c3fa366bebe1 target=hypervisor-01 type=virtual
# eks-worker-09 ansible_host=11.0.0.14 mac=52:54:00:18:72:28 interfaceid=4828b7a6-f365-495a-96b1-aeb28039e1c4 target=hypervisor-01 type=virtual
# eks-worker-10 ansible_host=11.0.0.15 mac=52:54:00:91:81:15 interfaceid=d12980db-c115-41db-8c1f-3981c5271478 target=hypervisor-01 type=virtual
# From .100 to .109 service nodes
[service_nodes]
eks-service1 ansible_host=11.0.0.100 mac=52:54:00:74:22:74 interfaceid=c6f17433-ab73-4b9a-9f0f-3fa89b2ac40a target=hypervisor-01 type=virtual
eks-service2 ansible_host=11.0.0.101 mac=52:54:00:74:22:75 interfaceid=c6f17433-ab73-4b9a-9f0f-3fa89b2ac40b target=hypervisor-01 type=virtual
# Auxiliary groups
[all_hosts]
[all_nodes]
[all_master_nodes]
[all_worker_nodes]
[all_service_nodes]
[all_bootstrap_nodes]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment