class profiles::ceph::osd ( Boolean $ensure_running = true, ) { # tune the I/O scheduler on the disks backing ceph OSDs include profiles::ceph::osd_scheduler if $ensure_running and $facts['is_ceph_osd'] { $facts['ceph_services']['osd'].each |String $svc| { service { $svc: ensure => running, enable => true, } } } }