config/puppet-manifests/src/modules/platform/lib/facter/is_keystone_running.rb

7 lines
195 B
Ruby

# Returns whether keystone is running on the local host
Facter.add(:is_keystone_running) do
setcode do
Facter::Util::Resolution.exec('pgrep -c -f "\[keystone\-admin\]"') != '0'
end
end