Add terminal server and remove erki's offsite box

This commit is contained in:
2025-12-22 20:56:03 +02:00
parent 43e099d438
commit ce2ecce1f7
3 changed files with 30 additions and 14 deletions

View File

@@ -19,6 +19,15 @@ all:
- eaas - eaas
- lauri - lauri
ts.k-space.ee:
# Retro Terminal Server
ansible_host: 100.103.0.10
admins:
- eaas
- rasmus
- arti
- kkuusk
children: children:
# Documentation at # Documentation at
# https://wiki.k-space.ee/en/hosting/storage # https://wiki.k-space.ee/en/hosting/storage
@@ -27,12 +36,12 @@ all:
# previously known as nfs, nas # previously known as nfs, nas
external.kube.k-space.ee: external.kube.k-space.ee:
ansible_host: 172.21.3.101 ansible_host: 172.21.3.101
offsite: # offsite:
ansible_host: 192.168.30.40 # ansible_host: 192.168.30.40
admins: # admins:
- eaas # - eaas
vars: # vars:
offsite_dataset: offsite/backup_zrepl # offsite_dataset: offsite/backup_zrepl
# Proxmox aka PVE (Proxmox Virtualization Environment) documented # Proxmox aka PVE (Proxmox Virtualization Environment) documented
# https://wiki.k-space.ee/hosting/proxmox # https://wiki.k-space.ee/hosting/proxmox

View File

@@ -65,14 +65,6 @@ Host ns1.k-space.ee 172.20.0.2
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
ControlMaster auto ControlMaster auto
ControlPersist 8h ControlPersist 8h
Host offsite 192.168.30.40
User root
Hostname 192.168.30.40
Port 22
GlobalKnownHostsFile known_hosts
UserKnownHostsFile /dev/null
ControlMaster auto
ControlPersist 8h
Host pve90.proxmox.infra.k-space.ee 172.21.20.90 Host pve90.proxmox.infra.k-space.ee 172.21.20.90
User root User root
Hostname 172.21.20.90 Hostname 172.21.20.90
@@ -105,6 +97,14 @@ Host pve93.proxmox.infra.k-space.ee 172.21.20.93
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
ControlMaster auto ControlMaster auto
ControlPersist 8h ControlPersist 8h
Host ts.k-space.ee 100.103.0.10
User root
Hostname 100.103.0.10
Port 22
GlobalKnownHostsFile known_hosts
UserKnownHostsFile /dev/null
ControlMaster auto
ControlPersist 8h
Host worker1.kube.k-space.ee 172.21.3.81 Host worker1.kube.k-space.ee 172.21.3.81
User root User root
Hostname 172.21.3.81 Hostname 172.21.3.81

View File

@@ -6,6 +6,8 @@
connection: local connection: local
vars: vars:
targets: "{{ hostvars[groups['all']] }}" targets: "{{ hostvars[groups['all']] }}"
tags:
- collect_server_public_keys
tasks: tasks:
- name: Generate ssh_config - name: Generate ssh_config
ansible.builtin.copy: ansible.builtin.copy:
@@ -40,6 +42,8 @@
connection: local connection: local
vars: vars:
targets: "{{ hostvars[groups['all']] }}" targets: "{{ hostvars[groups['all']] }}"
tags:
- collect_user_public_keys
tasks: tasks:
- name: Download https://git.k-space.ee/user.keys - name: Download https://git.k-space.ee/user.keys
loop: loop:
@@ -47,6 +51,7 @@
- eaas - eaas
- lauri - lauri
- rasmus - rasmus
- kkuusk
ansible.builtin.get_url: ansible.builtin.get_url:
url: https://git.k-space.ee/{{ item }}.keys url: https://git.k-space.ee/{{ item }}.keys
dest: "./{{ item }}.keys" dest: "./{{ item }}.keys"
@@ -57,6 +62,8 @@
- kubelets - kubelets
- doors - doors
# do NOT put proxmox here! PVE manages its keys and admin keys are manual # do NOT put proxmox here! PVE manages its keys and admin keys are manual
tags:
- push_keys
tasks: tasks:
- name: Generate /root/.ssh/authorized_keys - name: Generate /root/.ssh/authorized_keys
ansible.builtin.copy: ansible.builtin.copy: