Add Proxmox Ceph mesh network playbook
This commit is contained in:
49
proxmox/ceph.yaml
Normal file
49
proxmox/ceph.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
|
||||
- name: configure ceph on proxmox
|
||||
hosts:
|
||||
- pve90
|
||||
- pve91
|
||||
# - pve92
|
||||
- pve93
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: configure mesh network
|
||||
ansible.builtin.template:
|
||||
src: templates/ceph.interfaces.j2
|
||||
dest: /etc/network/interfaces.d/ceph
|
||||
tags: network
|
||||
|
||||
- name: ifup lo
|
||||
ansible.builtin.command:
|
||||
cmd: ifup lo
|
||||
tags: network
|
||||
|
||||
- name: ifup mesh interfaces
|
||||
ansible.builtin.command:
|
||||
cmd: "ifup {{ item }}"
|
||||
loop: "{{ ceph_mesh.interfaces }}"
|
||||
loop_control:
|
||||
label: "ifup {{ item }}"
|
||||
tags: network
|
||||
|
||||
- name: enable fabricd OpenFabric in FRR
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/frr/daemons
|
||||
regexp: ^fabricd=.*$
|
||||
line: fabricd=yes
|
||||
notify: reload FRR
|
||||
tags: frr
|
||||
|
||||
- name: configure FRR
|
||||
ansible.builtin.template:
|
||||
src: templates/frr.conf.j2
|
||||
dest: /etc/frr/frr.conf
|
||||
notify: reload FRR
|
||||
tags: frr
|
||||
|
||||
handlers:
|
||||
- name: reload FRR
|
||||
ansible.builtin.systemd_service:
|
||||
name: frr.service
|
||||
state: reloaded
|
Reference in New Issue
Block a user