projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e7e4fb
)
kvmdomain fact
author
Peter Palfrader
<peter@palfrader.org>
Wed, 2 Dec 2009 14:03:58 +0000
(15:03 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 2 Dec 2009 14:03:58 +0000
(15:03 +0100)
facts/servertype.rb
[new file with mode: 0644]
patch
|
blob
diff --git a/facts/servertype.rb
b/facts/servertype.rb
new file mode 100644
(file)
index 0000000..
fa2f35e
--- /dev/null
+++ b/
facts/servertype.rb
@@ -0,0
+1,9
@@
+Facter.add("kvmdomain") do
+ setcode do
+ if File.new('/proc/cpuinfo').read().index('QEMU Virtual CPU')
+ result = true
+ else
+ result = false
+ end
+ end
+end