Permalink
Browse files

Removed computer model fact as puppet has a built in fact for this

  • Loading branch information...
1 parent dadb3fc commit b12f08d109d1ade1bace4396745496ec35cf694e @adenning committed Aug 9, 2012
Showing with 1 addition and 16 deletions.
  1. +0 −1 README.md
  2. +0 −13 lib/facter/computer_model.rb
  3. +1 −2 manifests/init.pp
View
@@ -3,7 +3,6 @@ winfacts
A puppet module that adds new facts for Windows nodes.
-* computer_model
* monitor_description
* monitor_id
* monitor_resolution
@@ -1,13 +0,0 @@
-Facter.add(:computer_model) do
- confine :operatingsystem => :windows
- setcode do
- result = ''
- require 'win32ole'
- wmi = WIN32OLE.connect('winmgmts:')
- query = wmi.ExecQuery('select Model from Win32_Computersystem')
- query.each do |computer|
- result = computer.Model
- end
- result
- end
-end
View
@@ -1,5 +1,4 @@
class winfacts {
-# notify{ "computer_model: ${::computer_model}": }
# notify{ "monitor_description: ${::monitor_description}": }
# notify{ "monitor_id: ${::monitor_id}": }
# notify{ "monitor_resolution: ${::monitor_resolution}": }
@@ -15,4 +14,4 @@
# notify{ "videocard_driver_version: ${::videocard_driver_version}": }
# notify{ "videocard_maxrefreshrate: ${::videocard_maxrefreshrate}": }
# notify{ "videocard_memory: ${::videocard_memory}": }
-}
+}

0 comments on commit b12f08d

Please sign in to comment.