1
0
forked from k-space/kube

Add Ansible config

This commit is contained in:
Lauri Võsandi 2023-08-10 19:35:17 +03:00
parent d0bfdf5147
commit fe25d03989
3 changed files with 45 additions and 0 deletions

12
ansible.cfg Normal file
View File

@ -0,0 +1,12 @@
[defaults]
ansible_managed = This file is managed by Ansible, manual changes will be overwritten.
inventory = inventory.yml
nocows = 1
pipelining = True
pattern =
deprecation_warnings = False
fact_caching = jsonfile
fact_caching_connection = ~/.ansible/k-space-fact-cache
[ssh_connection]
ssh_args = -F ssh_config

27
inventory.yml Normal file
View File

@ -0,0 +1,27 @@
all:
children:
masters:
hosts:
master1.kube.k-space.ee:
master2.kube.k-space.ee:
master3.kube.k-space.ee:
workers:
hosts:
mon1.kube.k-space.ee:
mon2.kube.k-space.ee:
mon3.kube.k-space.ee:
storage1.kube.k-space.ee:
storage2.kube.k-space.ee:
storage3.kube.k-space.ee:
storage4.kube.k-space.ee:
worker1.kube.k-space.ee:
worker2.kube.k-space.ee:
worker3.kube.k-space.ee:
worker4.kube.k-space.ee:
worker9.kube.k-space.ee:
doors:
hosts:
100.102.3.1:
100.102.3.2:
100.102.3.3:
100.102.3.4:

6
ssh_config Normal file
View File

@ -0,0 +1,6 @@
Host *
User root
ControlPersist 8h
ControlMaster auto
ControlPath ~/.ssh/cm-%r@%h:%p