Compare commits

...

3 Commits

Author SHA1 Message Date
chris 5d9b9f68f6 gitignore more potential sensitive data 2019-12-18 19:19:58 +01:00
chris 638014a6ae add k3s token 2019-12-18 19:18:58 +01:00
chris 936219a1a3 gitignore cruft and potential sensitive data 2019-12-18 19:16:21 +01:00
5 changed files with 8 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.retry
host_vars/*yaml
group_vars/cluster.yaml

View File

@ -9,7 +9,7 @@
local requirements: wireguard-tools, yq, jq, ansible
* adapt inventory.yaml (use external IPs!)
* run ./generate-keys.sh to generate your wireguard keys
* run ./generate-keys.sh and ./generate-k3s-token.sh to generate your keys
* do NOT commit your wireguard keys to git, or use ansible-vault
## deploy

2
generate-k3s-token.sh Executable file
View File

@ -0,0 +1,2 @@
cd group_vars
sed -i "s#^k3s_token.*#k3s_token: $(pwgen 32 1)#" cluster.yaml

1
group_vars/cluster.yaml Normal file
View File

@ -0,0 +1 @@
k3s_token: aibahrighaemaeshi2Dahgu9Ahquoo0c

View File

@ -1,3 +1,4 @@
[cluster]
node01 ansible_ssh_user=root ansible_ssh_host=78.47.49.236
node02 ansible_ssh_user=root ansible_ssh_host=78.46.186.206
node03 ansible_ssh_user=root ansible_ssh_host=78.47.122.172