add rsyslog version fact support for Gentoo
This commit is contained in:
Родитель
dde864629a
Коммит
fa094e71f5
|
@ -24,13 +24,21 @@ Facter.add(:rsyslog_version) do
|
|||
nil
|
||||
end
|
||||
when "FreeBSD"
|
||||
command='pkg query %v rsyslog8'
|
||||
version = Facter::Util::Resolution.exec(command)
|
||||
if version =~ /^(.+)$/
|
||||
$1
|
||||
else
|
||||
nil
|
||||
end
|
||||
command='pkg query %v rsyslog8'
|
||||
version = Facter::Util::Resolution.exec(command)
|
||||
if version =~ /^(.+)$/
|
||||
$1
|
||||
else
|
||||
nil
|
||||
end
|
||||
when "Gentoo"
|
||||
command='equery -q -C list -F \'$version\' rsyslog'
|
||||
version = Facter::Util::Resolution.exec(command)
|
||||
if version =~ /^(.+)$/
|
||||
$1
|
||||
else
|
||||
nil
|
||||
end
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче