9 lines
227 B
Ruby
9 lines
227 B
Ruby
# frozen_string_literal: true
|
|
|
|
# create boolean for if mariadb is installed based of the default service file
|
|
Facter.add('mariadb_installed') do
|
|
setcode do
|
|
File.exist?('/usr/lib/systemd/system/mariadb.service')
|
|
end
|
|
end
|