fuel-plugin-ceph-multibackend/deployment_scripts/puppet/modules/fuel-plugin-ceph_multibackend/lib/puppet/parser/functions/get_all_osd_id.rb

7 lines
192 B
Ruby

module Puppet::Parser::Functions
newfunction(:get_all_osd_id, :type => :rvalue) do |args|
all_osd_id = `find /var/log/lost+found/ -maxdepth 1 | cut -d"/" -f5`
return all_osd_id
end
end