feat: add pveceph consul services

- refacter the pveceph facts
- define consul services for osd, mgr, mds and mons
This commit is contained in:
2024-06-18 19:57:15 +10:00
parent 0ff9b86782
commit 94aed2df9c
5 changed files with 67 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
require 'facter'
Facter.add('is_pveceph_mds') do
confine enc_role: 'roles::infra::proxmox::node'
setcode do
system('pgrep -x ceph-mds > /dev/null 2>&1')
end
end
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
require 'facter'
Facter.add('is_pveceph_osd') do
confine enc_role: 'roles::infra::proxmox::node'
setcode do
system('pgrep -x ceph-osd > /dev/null 2>&1')
end
end