fix: ceph consul check script

- add permissions to write ceph-* services to consul
- change from `script` to `args` array
This commit is contained in:
Ben Vincent 2024-06-19 22:29:22 +10:00
parent feddc4a3fb
commit a3ef535bfc
2 changed files with 15 additions and 1 deletions

View File

@ -19,3 +19,17 @@ ssh::server::options:
- XMODIFIERS - XMODIFIERS
ListenAddress: ListenAddress:
- "%{facts.networking.interfaces.vmbr1.ip}" - "%{facts.networking.interfaces.vmbr1.ip}"
profiles::consul::client::node_rules:
- resource: service
segment: ceph-mon
disposition: write
- resource: service
segment: ceph-mds
disposition: write
- resource: service
segment: ceph-mgr
disposition: write
- resource: service
segment: ceph-osd
disposition: write

View File

@ -25,7 +25,7 @@ class profiles::proxmox::consul {
{ {
id => "pveceph_${key}_check", id => "pveceph_${key}_check",
name => "PVECeph ${key} Check", name => "PVECeph ${key} Check",
script => "/usr/local/bin/check_ceph_service.sh ${key}", args => ['/usr/local/bin/check_ceph_service.sh', $key],
interval => '10s', interval => '10s',
timeout => '1s', timeout => '1s',
} }