Separate out Pi roles, reorganize inventory, deploy docker to all pis indiscriminately

This commit is contained in:
Salt 2021-02-25 12:56:48 -06:00
parent b54e4a2e0b
commit 9a516d8f08
4 changed files with 23 additions and 19 deletions

View File

@ -6,22 +6,6 @@ all:
children: children:
home: home:
children: 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:
pis: pis:
vars: vars:
docker_apt_arch: arm64 docker_apt_arch: arm64
@ -30,6 +14,20 @@ all:
hosts: hosts:
pi-storage-1.desu.ltd: pi-storage-1.desu.ltd:
ansible_host: 192.168.103.1 ansible_host: 192.168.103.1
pik8s:
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: desktop:
hosts: hosts:
dsk-ryzen-0.desu.ltd: dsk-ryzen-0.desu.ltd:

View File

@ -3,8 +3,6 @@
--- ---
- hosts: pik8s - hosts: pik8s
roles: roles:
- role: docker
tags: [ k8s, docker, skip-pull ]
- role: k8s - role: k8s
tags: [ k8s, skip-pull ] tags: [ k8s, skip-pull ]
- role: motd - role: motd

7
playbooks/pis.yml Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: pis
roles:
- role: docker
tags: [ docker, skip-pull ]

View File

@ -18,5 +18,6 @@
- import_playbook: playbooks/db.yml - import_playbook: playbooks/db.yml
- import_playbook: playbooks/web.yml - import_playbook: playbooks/web.yml
- import_playbook: playbooks/game.yml - import_playbook: playbooks/game.yml
- import_playbook: playbooks/desktop.yml - import_playbook: playbooks/pis.yml
- import_playbook: playbooks/pik8s.yml - import_playbook: playbooks/pik8s.yml
- import_playbook: playbooks/desktop.yml