diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..fc206d3 --- /dev/null +++ b/ansible.cfg @@ -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 diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..ee93559 --- /dev/null +++ b/inventory.yml @@ -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: diff --git a/ssh_config b/ssh_config new file mode 100644 index 0000000..901de57 --- /dev/null +++ b/ssh_config @@ -0,0 +1,6 @@ +Host * + User root + ControlPersist 8h + ControlMaster auto + ControlPath ~/.ssh/cm-%r@%h:%p +