From fe25d03989c6f69880713d73159e18310ab4e214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 10 Aug 2023 19:35:17 +0300 Subject: [PATCH] Add Ansible config --- ansible.cfg | 12 ++++++++++++ inventory.yml | 27 +++++++++++++++++++++++++++ ssh_config | 6 ++++++ 3 files changed, 45 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory.yml create mode 100644 ssh_config 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 +