Adding custom fact to deploy OMSA module

This commit is contained in:
Geoffrey Corey 2014-12-15 14:08:19 -08:00
parent b34bac4a69
commit 458a6a4990
3 changed files with 15 additions and 0 deletions

5
data/oem/dell.yaml Normal file
View File

@ -0,0 +1,5 @@
---
classes:
- dell
- dell::openmanage
- dell::openmanage::debian

View File

@ -22,6 +22,7 @@
- "nodes/%{clientcert}"
- "%{::asfosname}/%{::asfosrelease}"
- "colo/%{asfcolo}"
- "oem/%{::oem}"
- "common"
:logger: console

View File

@ -57,3 +57,12 @@ Facter.add("asfcolo") do
end
end
Facter.add("oem") do
setcode do
oem = Facter.value('bios_vendor')
if oem =~ /dell/i
"dell"
end
end
end