# Add hosts to the groups below. Use `ansible_host` for SSH and `ip` for node-to-node traffic. # If `ip` is omitted, Ansible falls back to the default interface address. # assethost ansible_host=100.89.14.74 ip=10.114.0.9 # Below variables are set for all machines in the inventory. [all:vars] # If you need to ssh as a user that's not the same user as the one running ansible ansible_user= ansible_password= ansible_become_pass= # This user must be allowed to sudo. # ansible_user = root # if you choose to avoid passing passwords in the above format, you can also setup ansible_ssh_private_key_file and allow sudo access to ansible_user # ansible_ssh_private_key_file="ssh/id_ed25519" [assethost] assethost ansible_host=10.1.1.1 # Cassandra nodes. [cassandra] cassandra1 ansible_host=10.1.1.17 cassandra2 ansible_host=10.1.1.2 cassandra3 ansible_host=10.1.1.16 # One Cassandra seed node. [cassandra_seed] cassandra1 [cassandra:vars] cassandra_network_interface = enp1s0 # Elasticsearch nodes. [elasticsearch] elasticsearch1 ansible_host=10.1.1.9 elasticsearch2 ansible_host=10.1.1.15 elasticsearch3 ansible_host=10.1.1.19 [elasticsearch:vars] elasticsearch_network_interface = enp1s0 [elasticsearch_master:children] elasticsearch # Kubernetes nodes. Add `node_labels` or `node_annotations` here when needed. [kube-node] kubenode1 ansible_host=10.1.1.3 etcd_member_name=kubenode1 ip=10.1.1.3 kubenode2 ansible_host=10.1.1.4 etcd_member_name=kubenode2 ip=10.1.1.4 kubenode3 ansible_host=10.1.1.8 etcd_member_name=kubenode3 ip=10.1.1.8 # Additional worker nodes. # kubenode4 ansible_host=10.1.1.88 etcd_member_name=kubenode4 ip=10.1.1.88 # Add all nodes that should be the master [kube-master:children] kube-node # !!! There MUST be an UNEVEN amount of etcd servers [etcd:children] kube-master [k8s-cluster:children] kube-master kube-node # MinIO nodes. [minio] minio1 ansible_host=10.1.1.6 minio2 ansible_host=10.1.1.7 minio3 ansible_host=10.1.1.20 [minio:vars] minio_network_interface = enp1s0 # PostgreSQL nodes. [postgresql] postgresql1 ansible_host=10.1.1.11 postgresql2 ansible_host=10.1.1.5 postgresql3 ansible_host=10.1.1.12 [postgresql:vars] postgresql_network_interface=enp7s0 wire_dbname=wire-server # Keys in `repmgr_node_config` must match the PostgreSQL hostnames above. repmgr_node_config={"postgresql1":{"node_id":1,"priority":150,"role":"primary"},"postgresql2":{"node_id":2,"priority":100,"role":"standby"},"postgresql3":{"node_id":3,"priority":50,"role":"standby"}} # Primary PostgreSQL node. [postgresql_rw] postgresql1 # Standby PostgreSQL nodes. [postgresql_ro] postgresql2 postgresql3 # RabbitMQ nodes. [rmq-cluster] # host name here must match each node's actual hostname rabbitmq1 ansible_host=10.1.1.18 rabbitmq2 ansible_host=10.1.1.13 rabbitmq3 ansible_host=10.1.1.14 # `rabbitmq_cluster_master` must match one host in [rmq-cluster]. [rmq-cluster:vars] rabbitmq_cluster_master=rabbitmq1 rabbitmq_network_interface=enp7s0