Compare commits

..

3 Commits

Author SHA1 Message Date
3b7a130823 Add MOTD to pi hosts 2021-02-18 19:26:09 -06:00
50b7365ade Connect to pi cluster over DNS/ZT 2021-02-18 18:49:10 -06:00
994fdfff88 PIKUBERNETES PIKUBERNETES PIKUBERNETES 2021-02-18 18:47:34 -06:00
3 changed files with 37 additions and 6 deletions

View File

@ -2,18 +2,31 @@
all:
vars:
ansible_user: ansible
ansible_become: yes
children:
home:
vars:
ansible_become: yes
children:
pik8s:
vars:
docker_apt_arch: arm64
children:
pik8s_masters:
vars:
kubernetes_role: master
hosts:
pi-kub-master-1.desu.ltd:
pik8s_nodes:
vars:
kubernetes_role: node
hosts:
pi-kub-node-1.desu.ltd:
pi-kub-node-2.desu.ltd:
pi-kub-node-3.desu.ltd:
desktop:
hosts:
dsk-ryzen-0.desu.ltd:
lap-s76-lemp9-0.desu.ltd:
prod:
vars:
ansible_become: yes
children:
db:
hosts:
@ -28,8 +41,6 @@ all:
hosts:
game1.desu.ltd:
k8s:
vars:
ansible_become: yes
children:
k8s_masters:
vars:

19
playbooks/pik8s.yml Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: pik8s
roles:
- role: docker
tags: [ k8s, docker, skip-pull ]
- role: k8s
vars:
kubernetes_enable_web_ui: yes
tags: [ k8s, skip-pull ]
- role: motd
vars:
motd_watch_services_extra:
- docker
- kubelet
tags: [ k8s, motd ]
- role: zerotier
tags: [ k8s, zerotier ]

View File

@ -19,4 +19,5 @@
- import_playbook: playbooks/web.yml
- import_playbook: playbooks/game.yml
- import_playbook: playbooks/desktop.yml
- import_playbook: playbooks/pik8s.yml
- import_playbook: playbooks/k8s.yml