diff --git a/setup/generate-keys.sh b/setup/generate-keys.sh index 1e4a499..24e0210 100755 --- a/setup/generate-keys.sh +++ b/setup/generate-keys.sh @@ -1,5 +1,5 @@ cd host_vars -for i in cluster-master01 cluster-master02 cluster-master03 cluster-worker01 cluster-worker02 cluster-worker03 cluster-worker04 cluster-worker05 cluster-worker06 +for i in cluster-frontend cluster-master01 cluster-master02 cluster-master03 cluster-worker01 cluster-worker02 cluster-worker03 cluster-worker04 cluster-worker05 cluster-worker06 do sed -i "s#^wg_secret_key.*#wg_secret_key: $(wg genkey)#" ${i}.yaml pubkey=$(cat ${i}.yaml | yq .wg_secret_key | sed 's/"//g' | wg pubkey) diff --git a/setup/host_vars/cluster-frontend.yaml b/setup/host_vars/cluster-frontend.yaml new file mode 100644 index 0000000..aebf9d9 --- /dev/null +++ b/setup/host_vars/cluster-frontend.yaml @@ -0,0 +1,3 @@ +wg_secret_key: mLZKKs1VKW33pIBZJCYZhkfeU/sSLx7h+Eqfk10ue3w= +wg_public_key: 3X5My19hXKILg0Sk6uEPprulY8mBayVbucEaMFTromw= +wg_ip: 10.42.23.1 diff --git a/setup/host_vars/cluster-master01.yaml b/setup/host_vars/cluster-master01.yaml index 90e9e52..d1467a6 100644 --- a/setup/host_vars/cluster-master01.yaml +++ b/setup/host_vars/cluster-master01.yaml @@ -1,3 +1,3 @@ -wg_secret_key: uC00qKf4vbfQ1Mn/ndWFX9h3JXKDv5ijIXpjchY/2Gc= -wg_public_key: 4a0DAKvszfFGxDn8Pq9OMdyZbqiELNalF/bOU+lS4ww= +wg_secret_key: kKQhmkBWXxSTcZX50BstuxfSfpMDgrhA1wldx1d6q0Y= +wg_public_key: vOIriQKWsL4haBCVFUCqp25ciBQrPf88CUtkMNQYGSY= wg_ip: 10.42.23.11 diff --git a/setup/host_vars/cluster-master02.yaml b/setup/host_vars/cluster-master02.yaml index 6b22cb3..da84be5 100644 --- a/setup/host_vars/cluster-master02.yaml +++ b/setup/host_vars/cluster-master02.yaml @@ -1,3 +1,3 @@ -wg_secret_key: QNqBGoi2Vd/J0Zc+s5G0y+yPFqV9kmqH9pGxb5ojDGE= -wg_public_key: 8wmpoiFyWhHEAP88dR1bBsZP7bQOKAUkNMki5S/9uFc= +wg_secret_key: IIn4Eiy6AXDevSIWfJwG9pme11gnC2DT/ieZuGdB+0M= +wg_public_key: +8OofyGdGtmp6/NMGsxcUfUlqctvm/GZeoGj9fNOe2w= wg_ip: 10.42.23.12 diff --git a/setup/host_vars/cluster-master03.yaml b/setup/host_vars/cluster-master03.yaml index 1467ebd..585556e 100644 --- a/setup/host_vars/cluster-master03.yaml +++ b/setup/host_vars/cluster-master03.yaml @@ -1,3 +1,3 @@ -wg_secret_key: sM+AFAKPGOcXNalGCGoBbCXG9msG5qF66Wz49CVvL2A= -wg_public_key: PhCEr0T1F0ABbFN0ngkIcLQ8OXmQZj+/U3DgAsWXXA8= +wg_secret_key: YM+dYmWJxk5ccTLOLjU+4z/p1gNfMtK6gW0x2Eb8C3s= +wg_public_key: RE7Uf3uBnllAk6m5qdbuYdh/GRaoSpHTCY63pVaZF2w= wg_ip: 10.42.23.13 diff --git a/setup/host_vars/cluster-worker01.yaml b/setup/host_vars/cluster-worker01.yaml index 017f454..83c45bc 100644 --- a/setup/host_vars/cluster-worker01.yaml +++ b/setup/host_vars/cluster-worker01.yaml @@ -1,3 +1,3 @@ -wg_secret_key: MMw5jxqi+4iO3pS1C99+Hck9jabDssQuQ3yC5Rhsgn0= -wg_public_key: GG1AGeGLX2KiCiK+/5wH3JhHDZvKHexfZgVhyX3I8Ag= +wg_secret_key: MHD6h2gFkzd2VhCVZtz89Jt9SxdcxwvZRqQ1PDZYBnk= +wg_public_key: WOqHy73XjVWjsyt2ZEMkJdXhtmKIx8E9/fPN3o7vcDQ= wg_ip: 10.42.23.21 diff --git a/setup/host_vars/cluster-worker02.yaml b/setup/host_vars/cluster-worker02.yaml index 7c28239..e6ee5e6 100644 --- a/setup/host_vars/cluster-worker02.yaml +++ b/setup/host_vars/cluster-worker02.yaml @@ -1,3 +1,3 @@ -wg_secret_key: KBMAarDchzYpPIq7J9LRUgll5jeo9wJkgjwC+tJc80Y= -wg_public_key: CiOc+aYn9xCvLLm2rDEE0HrfY9n/kHggwK0LNRDD0Qg= +wg_secret_key: 4Jk5ybHjBIyigcn7NPHgkms7JY1If/R/s8tqbR77MUk= +wg_public_key: QUT9iS/yxXKWWRQtLJ+AW5f3inVcwCHC3MLN4KJ3Uk4= wg_ip: 10.42.23.22 diff --git a/setup/host_vars/cluster-worker03.yaml b/setup/host_vars/cluster-worker03.yaml index a10522b..bd6f6fe 100644 --- a/setup/host_vars/cluster-worker03.yaml +++ b/setup/host_vars/cluster-worker03.yaml @@ -1,3 +1,3 @@ -wg_secret_key: AE9mrGQ3jJCqdWj6ZAHu9mdULr4HyBV5vE1+Wzjo+FY= -wg_public_key: hJ2CtHqxeB321TJZD+7bzSMNA1GzEteckUb//6KzjhQ= +wg_secret_key: WHc8cheBKC0I57bXUsfSUFDrRoPzafSFKUb7cdThbFs= +wg_public_key: nGf7wf8CvVtp1cfdngRda22TiqTMrFQY+KeZds8gnV8= wg_ip: 10.42.23.23 diff --git a/setup/host_vars/cluster-worker04.yaml b/setup/host_vars/cluster-worker04.yaml index 951603d..903a5d5 100644 --- a/setup/host_vars/cluster-worker04.yaml +++ b/setup/host_vars/cluster-worker04.yaml @@ -1,3 +1,3 @@ -wg_secret_key: WFMMXY1HPcIUw2I/2Z8x6wyR0r/CnGYeV6Rmyt6WbXo= -wg_public_key: Tc+GCAYefY+MJMwDVqyjLuR0JPvZMFj2xtS9oTAQvSg= +wg_secret_key: 6D/qBcJV+fxouP0ljRLYBcOxDPgd25BrKy6GKQWZ+nA= +wg_public_key: /HrA+19Ws+7SCDpAKnOpVhjGE7L25dez9PvApdgOIRc= wg_ip: 10.42.23.24 diff --git a/setup/host_vars/cluster-worker05.yaml b/setup/host_vars/cluster-worker05.yaml index 9f34215..85d3aaf 100644 --- a/setup/host_vars/cluster-worker05.yaml +++ b/setup/host_vars/cluster-worker05.yaml @@ -1,3 +1,3 @@ -wg_secret_key: oEql4vfFXVqdI6HiSDyQsSK19Xs+IzyMrz+7gbRgWWQ= -wg_public_key: xQozpZLyW7Gl+xYsLBvegmEtjhB7vBP2sKBJgfP22D4= +wg_secret_key: CKKgfHZ+kKLiuY3vu8ICITrZqouf1Hg3ZJuVQJHJ32o= +wg_public_key: ZdKh3IbP32xhUmSEMiDCmT28+RtoedhoF8ycE3StGQs= wg_ip: 10.42.23.25 diff --git a/setup/host_vars/cluster-worker06.yaml b/setup/host_vars/cluster-worker06.yaml index 410b2a5..b922675 100644 --- a/setup/host_vars/cluster-worker06.yaml +++ b/setup/host_vars/cluster-worker06.yaml @@ -1,3 +1,3 @@ -wg_secret_key: WCvlYVbX/ieEU6ZLNJcQEAl9YcHASiLMgrmkU9cUElI= -wg_public_key: iV+fDDW5bw9ANklUKa9Vbqi+fwJCzqebahcT7nE6PCA= +wg_secret_key: aK31k1FRtBeuUwdMd5haafX8czRcz7p8Ij7Ev9BzCHo= +wg_public_key: 1QyStXJpOGnsuLOjyOPiT1krelpZGDDrC3peGVL8BzQ= wg_ip: 10.42.23.26 diff --git a/setup/inventory.yaml b/setup/inventory.yaml index 3fca3f3..1dfc80d 100644 --- a/setup/inventory.yaml +++ b/setup/inventory.yaml @@ -1,3 +1,6 @@ +[frontend] +cluster-frontend ansible_ssh_host= + [master] cluster-master01 ansible_ssh_host= #cluster-master02 ansible_ssh_host=