mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-07-04 15:46:16 +00:00
fix: update config for london-a for new proxmox install (#101)
This commit is contained in:
parent
51efda6053
commit
928d1d0b99
5 changed files with 39 additions and 20 deletions
|
|
@ -74,24 +74,12 @@
|
|||
- role: systemd_services
|
||||
- role: mariadb
|
||||
|
||||
# london-a: Cockpit VM host (Debian)
|
||||
- name: "Stage 4f: Cockpit VM host (london-a)"
|
||||
# london-a: Proxmox VE hypervisor
|
||||
- name: "Stage 4f: Proxmox VE (london-a)"
|
||||
hosts: london-a
|
||||
tags: [services, cockpit]
|
||||
tasks:
|
||||
- name: Install cockpit and cockpit-machines
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- cockpit
|
||||
- cockpit-machines
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Enable and start cockpit
|
||||
ansible.builtin.service:
|
||||
name: cockpit
|
||||
state: started
|
||||
enabled: true
|
||||
tags: [services, proxmox]
|
||||
roles:
|
||||
- role: proxmox_ve
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Stage 4g: ZFS scrub scheduling — zfs_hosts
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
host_role: vm-host
|
||||
host_description: "VM host (Cockpit + KVM)"
|
||||
host_role: proxmox-ve
|
||||
host_description: "Proxmox VE hypervisor"
|
||||
host_location: "London"
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
[linux]
|
||||
helsinki-a ansible_host=100.67.6.27
|
||||
london-a ansible_host=100.90.111.19
|
||||
london-a ansible_host=100.122.180.98
|
||||
london-b ansible_host=100.84.65.101
|
||||
london-c ansible_host=100.123.72.87
|
||||
copenhagen-a ansible_host=100.89.206.60
|
||||
|
|
|
|||
4
ansible/roles/proxmox_ve/handlers/main.yml
Normal file
4
ansible/roles/proxmox_ve/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- name: Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
27
ansible/roles/proxmox_ve/tasks/main.yml
Normal file
27
ansible/roles/proxmox_ve/tasks/main.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
# Configure Proxmox VE apt sources for the no-subscription tier.
|
||||
# Removes the enterprise repo (requires paid subscription) and enables
|
||||
# the free no-subscription repo so apt update works without credentials.
|
||||
|
||||
- name: Remove PVE enterprise apt source
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/sources.list.d/pve-enterprise.list
|
||||
state: absent
|
||||
|
||||
- name: Remove Ceph enterprise apt source
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/sources.list.d/ceph.list
|
||||
state: absent
|
||||
|
||||
- name: Add PVE no-subscription apt source
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
content: "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: Update apt cache
|
||||
|
||||
- name: Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
Loading…
Add table
Reference in a new issue