reorganize pve
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
*.keys
|
*.keys
|
||||||
secrets/
|
/secrets
|
||||||
.idea/
|
.idea/
|
||||||
|
@@ -1,22 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: PVE base configuration
|
- name: PVE base configuration
|
||||||
hosts: proxmox
|
hosts: proxmox
|
||||||
serial: 1 # one host at a time
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: UI primary IP (/etc/hosts)
|
|
||||||
tags: network
|
|
||||||
ansible.builtin.lineinfile:
|
|
||||||
path: /etc/hosts
|
|
||||||
regexp: ' {{ inventory_hostname_short }}$'
|
|
||||||
line: '{{ primary_ipv6 | split("/") | first }} {{ inventory_hostname }} {{ inventory_hostname_short }}'
|
|
||||||
|
|
||||||
- name: /etc/network/interfaces
|
|
||||||
tags: network
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: templates/network.interfaces.j2
|
|
||||||
dest: /etc/network/interfaces
|
|
||||||
notify: reload networking
|
|
||||||
|
|
||||||
- name: admin convenience packages
|
- name: admin convenience packages
|
||||||
tags: dep
|
tags: dep
|
||||||
apt:
|
apt:
|
||||||
@@ -87,12 +72,6 @@
|
|||||||
options vhost max_mem_regions=512
|
options vhost max_mem_regions=512
|
||||||
dest: /etc/modprobe.d/vhost.conf
|
dest: /etc/modprobe.d/vhost.conf
|
||||||
|
|
||||||
handlers:
|
|
||||||
- name: reload networking
|
|
||||||
ansible.builtin.systemd_service:
|
|
||||||
name: networking.service
|
|
||||||
state: reloaded
|
|
||||||
|
|
||||||
- name: PVE admin tooling
|
- name: PVE admin tooling
|
||||||
hosts: proxmox
|
hosts: proxmox
|
||||||
tasks:
|
tasks:
|
@@ -1,6 +1,26 @@
|
|||||||
|
- name: PVE base network configuration
|
||||||
|
hosts: proxmox
|
||||||
|
serial: 1 # one host at a time
|
||||||
|
tasks:
|
||||||
|
- name: /etc/network/interfaces
|
||||||
|
tags: network
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/network.interfaces.j2
|
||||||
|
dest: /etc/network/interfaces
|
||||||
|
notify: reload networking
|
||||||
|
- name: UI primary IP (/etc/hosts)
|
||||||
|
tags: network
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
regexp: ' {{ inventory_hostname_short }}$'
|
||||||
|
line: '{{ primary_ipv6 | split("/") | first }} {{ inventory_hostname }} {{ inventory_hostname_short }}'
|
||||||
|
handlers:
|
||||||
|
- name: reload networking
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: networking.service
|
||||||
|
state: reloaded
|
||||||
---
|
---
|
||||||
|
- name: PVE CEPH network configuration
|
||||||
- name: configure ceph on proxmox
|
|
||||||
hosts:
|
hosts:
|
||||||
- pve90.proxmox.infra.k-space.ee
|
- pve90.proxmox.infra.k-space.ee
|
||||||
- pve91.proxmox.infra.k-space.ee
|
- pve91.proxmox.infra.k-space.ee
|
Reference in New Issue
Block a user