Skip to content

Commit b483e51

Browse files
mholaseklae
authored andcommitted
Allow separate Ceph replication network to be defined (#74)
Fixes #72
1 parent c34d262 commit b483e51

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ pve_zfs_enabled: no # Specifies whether or not to install and configure ZFS pack
394394
# pve_zfs_zed_email: "" # Should be set to an email to receive ZFS notifications
395395
pve_ceph_enabled: false # Specifies wheter or not to install and configure Ceph packages. See below for an example configuration.
396396
pve_ceph_repository_line: "deb http://download.proxmox.com/debian/ceph-nautilus buster main" # apt-repository configuration. Will be automatically set for 5.x and 6.x (Further information: https://pve.proxmox.com/wiki/Package_Repositories)
397-
pve_ceph_network: "{{ (ansible_default_ipv4.network +'/'+ ansible_default_ipv4.netmask) | ipaddr('net') }}" # Ceph cluster network
397+
pve_ceph_network: "{{ (ansible_default_ipv4.network +'/'+ ansible_default_ipv4.netmask) | ipaddr('net') }}" # Ceph public network
398+
# pve_ceph_cluster_network: "" # Optional, if the ceph cluster network is different from the public network (see https://pve.proxmox.com/pve-docs/chapter-pveceph.html#pve_ceph_install_wizard)
398399
pve_ceph_mon_group: "{{ pve_group }}" # Host group containing all Ceph monitor hosts
399400
pve_ceph_mds_group: "{{ pve_group }}" # Host group containing all Ceph metadata server hosts
400401
pve_ceph_osds: [] # List of OSD disks
@@ -568,6 +569,7 @@ This role can configure the Ceph storage system on your Proxmox hosts.
568569
```
569570
pve_ceph_enabled: true
570571
pve_ceph_network: '172.10.0.0/24'
572+
pve_ceph_cluster_network: '172.10.1.0/24'
571573
pve_ceph_osds:
572574
# OSD with everything on the same device
573575
- device: /dev/sdc

tasks/ceph.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020

2121
- block:
2222
- name: Create initial Ceph config
23-
command: 'pveceph init --network {{ pve_ceph_network }}'
23+
command: "pveceph init --network {{ pve_ceph_network }} \
24+
{% if pve_ceph_cluster_network is defined %} \
25+
--cluster-network {{ pve_ceph_cluster_network }}
26+
{% endif %}"
2427
args:
2528
creates: /etc/ceph/ceph.conf
2629

0 commit comments

Comments
 (0)