oxford 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +4 -0
- data/.gitignore +2 -0
- data/.rspec +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +52 -0
- data/README.mkd +32 -0
- data/Rakefile +63 -0
- data/bin/oxford +18 -0
- data/config/database.yaml +7 -0
- data/inc/testing.ldif +107 -0
- data/inc/websages.schema +734 -0
- data/lib/oxford.rb +10 -0
- data/lib/oxford/facts.rb +66 -0
- data/lib/oxford/host.rb +53 -0
- data/lib/oxford/ldap.rb +33 -0
- data/lib/oxford/network.rb +6 -0
- data/lib/oxford/processor.rb +6 -0
- data/lib/oxford/runner.rb +41 -0
- data/oxford.gemspec +25 -0
- data/spec/facts_spec.rb +36 -0
- data/spec/fixtures/ldap.yaml +158 -0
- data/spec/fixtures/nossl.yaml +7 -0
- data/spec/fixtures/ssl.yaml +7 -0
- data/spec/host_spec.rb +95 -0
- data/spec/ldap_spec.rb +19 -0
- data/spec/runner_spec.rb +40 -0
- data/spec/spec_helper.rb +8 -0
- metadata +179 -0
data/.autotest
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
oxford (0.6)
|
5
|
+
activeldap (>= 3.1.0)
|
6
|
+
facter (>= 1.5.8)
|
7
|
+
puppet (>= 2.6.4)
|
8
|
+
ruby-ldap (>= 0.9.11)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: http://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activeldap (3.1.0)
|
14
|
+
activemodel (~> 3.1.0.rc4)
|
15
|
+
fast_gettext
|
16
|
+
gettext_i18n_rails
|
17
|
+
locale
|
18
|
+
activemodel (3.1.1.rc1)
|
19
|
+
activesupport (= 3.1.1.rc1)
|
20
|
+
builder (~> 3.0.0)
|
21
|
+
i18n (~> 0.6)
|
22
|
+
activesupport (3.1.1.rc1)
|
23
|
+
multi_json (~> 1.0)
|
24
|
+
builder (3.0.0)
|
25
|
+
diff-lcs (1.1.3)
|
26
|
+
facter (1.6.0)
|
27
|
+
fast_gettext (0.5.13)
|
28
|
+
gettext_i18n_rails (0.2.20)
|
29
|
+
fast_gettext
|
30
|
+
i18n (0.6.0)
|
31
|
+
locale (2.0.5)
|
32
|
+
multi_json (1.0.3)
|
33
|
+
puppet (2.7.3)
|
34
|
+
facter (>= 1.5.1)
|
35
|
+
rake (0.8.7)
|
36
|
+
rspec (2.6.0)
|
37
|
+
rspec-core (~> 2.6.0)
|
38
|
+
rspec-expectations (~> 2.6.0)
|
39
|
+
rspec-mocks (~> 2.6.0)
|
40
|
+
rspec-core (2.6.4)
|
41
|
+
rspec-expectations (2.6.0)
|
42
|
+
diff-lcs (~> 1.1.2)
|
43
|
+
rspec-mocks (2.6.0)
|
44
|
+
ruby-ldap (0.9.11)
|
45
|
+
|
46
|
+
PLATFORMS
|
47
|
+
ruby
|
48
|
+
|
49
|
+
DEPENDENCIES
|
50
|
+
oxford!
|
51
|
+
rake (>= 0.8.7)
|
52
|
+
rspec (~> 2.6.0)
|
data/README.mkd
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Overview
|
2
|
+
This is the first iteration of oxford, a LDAP bridge between fact generation and LDAP as storage.
|
3
|
+
This is a wrapper for polling of facts via the Facter library (http://puppetlabs.com/puppet/related-projects/facter/) and export to LDAP
|
4
|
+
This has been tested on OpenLDAP
|
5
|
+
|
6
|
+
# Requirements
|
7
|
+
* ruby
|
8
|
+
* puppet
|
9
|
+
* facter
|
10
|
+
* activeldap
|
11
|
+
* extended fact schema (websages.schema)
|
12
|
+
|
13
|
+
# Usage
|
14
|
+
* Setup your LDAP server to include the fact schema (inc/websages.schema).
|
15
|
+
* Configure your LDAP settings in the configuration file (see config/database.yaml for example)
|
16
|
+
* run bin/oxford -c <config file> i.e. bin/oxford -c /etc/oxford.conf
|
17
|
+
|
18
|
+
# FAQ
|
19
|
+
Q: Why did you do this instead of using <insert technology here>
|
20
|
+
A: I like LDAP. While there are a lot of neat solutions on how to handle this problem set, I am aiming to reduce the overall technology footprint across places I deploy Puppet, et. al. Less technology stacks == less things to manage overall. Plus, LDAP provides me things out of the box like disaster recovery (replication) and HA (multi-master). Win.
|
21
|
+
Q: Why did you not extend Facter?
|
22
|
+
A: Facter is really good at doing one thing - providing facts.
|
23
|
+
|
24
|
+
Because this requires schema that is not existent by default in LDAP, I'd isolated both functions into very simple pieces UNIX style - my code is really good at writing and reading facts from LDAP. This will allow alternate fact generation tools (ohai, pfacter, etc) to also leverage writing of facts to LDAP.
|
25
|
+
# Todo
|
26
|
+
~~Refactor code (potential integration into Facter?)~~
|
27
|
+
add alternate fact generation tools as options.
|
28
|
+
~~update namespace to include name.~~
|
29
|
+
Include Puppet custom specific facts when polling for facts.
|
30
|
+
~~Package into gem~~
|
31
|
+
¿Profit?
|
32
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'erb'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
|
4
|
+
task :default => [:spec]
|
5
|
+
|
6
|
+
def records
|
7
|
+
# create the ldif for a server
|
8
|
+
template = ERB.new(File.read('spec/fixtures/ldap.yaml'))
|
9
|
+
namespace = OpenStruct.new(:hostname => 'galactica')
|
10
|
+
YAML.load( template.result(namespace.send(:binding)) )
|
11
|
+
end
|
12
|
+
|
13
|
+
task :environment do
|
14
|
+
if File.exists?('/opt/puppet/bin/ruby')
|
15
|
+
ENV['PATH'] = "/opt/puppet/bin/ruby:#{ENV['PATH']}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Run those tests"
|
20
|
+
task :spec => [:environment] do
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
RSpec::Core::RakeTask.new do |t|
|
23
|
+
t.ruby_opts = ["-rrubygems"]
|
24
|
+
t.rspec_opts = ["--tty","-c","-f documentation", "-r ./spec/spec_helper.rb"]
|
25
|
+
t.pattern = 'spec/**/*_spec.rb'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
namespace :ldap do
|
30
|
+
require 'yaml'
|
31
|
+
require 'ldap'
|
32
|
+
|
33
|
+
task :populate do
|
34
|
+
puts 'populating ldap with records...'
|
35
|
+
|
36
|
+
conn = LDAP::Conn.new(host="localhost",port=3890)
|
37
|
+
conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 )
|
38
|
+
conn.simple_bind(dn='cn=admin,dc=test,dc=com',password='test') do |c|
|
39
|
+
records.each do |r|
|
40
|
+
puts 'record added...'
|
41
|
+
mydn=r['dn'].first
|
42
|
+
r.delete('dn')
|
43
|
+
c.add(mydn,r)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
task :clean do
|
49
|
+
puts "cleaning out ldap"
|
50
|
+
conn = LDAP::Conn.new(host="localhost",port=3890)
|
51
|
+
conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 )
|
52
|
+
conn.simple_bind(dn='cn=admin,dc=test,dc=com',password='test') do |c|
|
53
|
+
c.search('cn=galactica,ou=Hosts,dc=test,dc=com',LDAP::LDAP_SCOPE_ONELEVEL,'(cn=*)') { |entry|
|
54
|
+
c.delete(entry.dn)
|
55
|
+
}
|
56
|
+
c.search('dc=test,dc=com',LDAP::LDAP_SCOPE_SUBTREE,'(cn=galactica)') { |entry|
|
57
|
+
c.delete(entry.dn)
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
data/bin/oxford
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require 'rubygems'
|
5
|
+
require File.join(File.dirname(__FILE__),'/../lib/oxford.rb')
|
6
|
+
|
7
|
+
options = {}
|
8
|
+
|
9
|
+
$stderr = File.new("/dev/null", "w")
|
10
|
+
optparse = OptionParser.new do |opts|
|
11
|
+
opts.banner = "Usage: oxford -c <config>"
|
12
|
+
|
13
|
+
opts.on('-c', '--config CONFIGFILE', 'Load a CONFIGFILE (see sample in config/database.yaml)') do |file|
|
14
|
+
Oxford::Runner.config = file
|
15
|
+
end
|
16
|
+
end.parse!
|
17
|
+
|
18
|
+
Oxford::Runner.run!
|
data/inc/testing.ldif
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
version: 1
|
2
|
+
|
3
|
+
dn: dc=test,dc=com
|
4
|
+
objectClass: dcObject
|
5
|
+
objectClass: organization
|
6
|
+
dc: test
|
7
|
+
o: test.com
|
8
|
+
|
9
|
+
dn: cn=admin,dc=test,dc=com
|
10
|
+
objectClass: organizationalRole
|
11
|
+
objectClass: top
|
12
|
+
cn: admin
|
13
|
+
description: LDAP administrator
|
14
|
+
roleOccupant: dc=test,dc=com
|
15
|
+
|
16
|
+
dn: ou=People,dc=test,dc=com
|
17
|
+
objectClass: top
|
18
|
+
objectClass: organizationalUnit
|
19
|
+
ou: People
|
20
|
+
|
21
|
+
dn: ou=Hosts,dc=test,dc=com
|
22
|
+
objectClass: top
|
23
|
+
objectClass: organizationalUnit
|
24
|
+
ou: Hosts
|
25
|
+
|
26
|
+
dn: ou=Sets,dc=test,dc=com
|
27
|
+
objectClass: top
|
28
|
+
objectClass: organizationalUnit
|
29
|
+
ou: Sets
|
30
|
+
|
31
|
+
dn: cn=znc,ou=Sets,dc=test,dc=com
|
32
|
+
objectClass: groupOfUniqueNames
|
33
|
+
objectClass: top
|
34
|
+
cn: znc
|
35
|
+
uniqueMember: cn=admin,dc=test,dc=com
|
36
|
+
|
37
|
+
dn: ou=Groups,dc=test,dc=com
|
38
|
+
objectClass: organizationalUnit
|
39
|
+
objectClass: top
|
40
|
+
ou: Groups
|
41
|
+
|
42
|
+
dn: cn=galactica,ou=Hosts,dc=test,dc=com
|
43
|
+
objectClass: facterHost
|
44
|
+
objectClass: device
|
45
|
+
objectClass: top
|
46
|
+
cn: galactica
|
47
|
+
factFqdn: galactica.test.com
|
48
|
+
|
49
|
+
dn: cn=networkEth0,cn=galactica,ou=Hosts,dc=test,dc=com
|
50
|
+
objectClass: facterNetwork
|
51
|
+
objectClass: top
|
52
|
+
cn: networkEth0
|
53
|
+
factInterface: eth0
|
54
|
+
factIpAddress: 192.168.1.100
|
55
|
+
factMacAddress: 11:11:11:11:11:11
|
56
|
+
factNetwork: 255.255.255.0
|
57
|
+
|
58
|
+
dn: cn=networkLo0,cn=galactica,ou=Hosts,dc=test,dc=com
|
59
|
+
objectClass: facterNetwork
|
60
|
+
objectClass: top
|
61
|
+
cn: networkLo0
|
62
|
+
|
63
|
+
dn: cn=odin,ou=Hosts,dc=test,dc=com
|
64
|
+
objectClass: facterHost
|
65
|
+
objectClass: device
|
66
|
+
objectClass: top
|
67
|
+
cn: odin
|
68
|
+
|
69
|
+
dn: cn=networkEth0,cn=odin,ou=Hosts,dc=test,dc=com
|
70
|
+
objectClass: facterNetwork
|
71
|
+
objectClass: top
|
72
|
+
cn: networkEth0
|
73
|
+
|
74
|
+
dn: cn=networkLo0,cn=odin,ou=Hosts,dc=test,dc=com
|
75
|
+
objectClass: facterNetwork
|
76
|
+
objectClass: top
|
77
|
+
cn: networkLo0
|
78
|
+
|
79
|
+
dn: cn=networkEth1,cn=odin,ou=Hosts,dc=test,dc=com
|
80
|
+
objectClass: facterNetwork
|
81
|
+
objectClass: top
|
82
|
+
cn: networkEth1
|
83
|
+
|
84
|
+
dn: cn=processor0,cn=galactica,ou=Hosts,dc=test,dc=com
|
85
|
+
objectClass: device
|
86
|
+
objectClass: top
|
87
|
+
objectClass: facterProcessor
|
88
|
+
cn: processor0
|
89
|
+
factProcessorId: 0
|
90
|
+
factProcessorInfo: testing
|
91
|
+
|
92
|
+
dn: cn=processor0,cn=odin,ou=Hosts,dc=test,dc=com
|
93
|
+
objectClass: device
|
94
|
+
objectClass: top
|
95
|
+
objectClass: facterProcessor
|
96
|
+
cn: processor0
|
97
|
+
factProcessorId: 0
|
98
|
+
factProcessorInfo: testing
|
99
|
+
|
100
|
+
dn: cn=processor1,cn=odin,ou=Hosts,dc=test,dc=com
|
101
|
+
objectClass: device
|
102
|
+
objectClass: top
|
103
|
+
objectClass: facterProcessor
|
104
|
+
cn: processor1
|
105
|
+
factProcessorId: 1
|
106
|
+
factProcessorInfo: testing
|
107
|
+
|
data/inc/websages.schema
ADDED
@@ -0,0 +1,734 @@
|
|
1
|
+
# 1.3.6.1.4.1.32372 <- websages
|
2
|
+
# 1.3.6.1.4.1.32372.1 <- websages.1:
|
3
|
+
# 1.3.6.1.4.1.32372.1.1 <- Version 1:
|
4
|
+
|
5
|
+
# 1.3.6.1.4.1.32372.1.1.1 <- LDAP:
|
6
|
+
# 1.3.6.1.4.1.32372.1.1.1.1 <- Revision 1:
|
7
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1 <- Configuration Items:
|
8
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.1 <- Configuration Attributes:
|
9
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.1.1 <- - gatewayIpNumber
|
10
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.1.2 <- - configBase
|
11
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.1.3 <- - configSet
|
12
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.2 <- Configuration ObjectClasses:
|
13
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.2.1 <- - ipSubnet
|
14
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.1.2.2 <- - configHost
|
15
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.2 <- State Tracking Items:
|
16
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.2.1 <- State Tracking Attributes:
|
17
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.2.1.1 <- - snmpEnabled
|
18
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.2.1.2 <- - hostFirewallActive
|
19
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.2.1.3 <- - icmpEchoEnabled
|
20
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3 <- Pfacter Items:
|
21
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1 <- Pfacter Tracking Attributes:
|
22
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.1 <- - uniqueId
|
23
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.2 <- - hostname
|
24
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.3 <- - domain
|
25
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.4 <- - fqdn
|
26
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.5 <- - ipAddress
|
27
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.6 <- - hardwareManufacturer
|
28
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.7 <- - hardwareProduct
|
29
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.8 <- - hardwareModel
|
30
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.9 <- - hardwarePlatform
|
31
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.10 <- - architecture
|
32
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.11 <- - lsbId
|
33
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.12 <- - lsbRelease
|
34
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.13 <- - lsbDescription
|
35
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.14 <- - operatingSystem
|
36
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.15 <- - kernelRelease
|
37
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.16 <- - kernelVersion
|
38
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.17 <- - kernel
|
39
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.18 <- - processor
|
40
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.19 <- - processorCount
|
41
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.20 <- - disk
|
42
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.21 <- - memory
|
43
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.22 <- - memoryTotal
|
44
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.1.23 <- - localtime
|
45
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.2 <- Pfacter Tracking ObjectClasses:
|
46
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.3.2.1 <- - pfHost
|
47
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.4 <- Websages User
|
48
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.4.1 <- Websages User Attributes
|
49
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.4.1.1 <- - pagerEmail
|
50
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.4.2 <- Websages User ObjectClasses
|
51
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.4.2.1 <- - websage
|
52
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5 <- Facter Items
|
53
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1 <- Facter Tracking Attributes:
|
54
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.1 <- factArchitecture
|
55
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.2 <- factDomain
|
56
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.3 <- factFacterVersion
|
57
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.4 <- factFqdn
|
58
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.5 <- factHardwareisa
|
59
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.6 <- factHardwareModel
|
60
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.7 <- factHostname
|
61
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.8 <- factId
|
62
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.9 <- factInterface
|
63
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.10 <- factIpAddress
|
64
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.11 <- factIsVirtual
|
65
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.12 <- factKernel
|
66
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.13 <- factKernelMajVersion
|
67
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.14 <- factKernelRelease
|
68
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.15 <- factKernelVersion
|
69
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.16 <- factLsbDistCodename
|
70
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.17 <- factLsbDistDescription
|
71
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.18 <- factLsbDistId
|
72
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.19 <- factLsbDistRelease
|
73
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.20 <- factLsbMajDistRelease
|
74
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.21 <- factLsbRelease
|
75
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.22 <- factMacAddress
|
76
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.23 <- factMemoryFree
|
77
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.24 <- factMemorySize
|
78
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.25 <- factNetwork
|
79
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.26 <- factOperatingSystem
|
80
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.27 <- factOperatingSystemRelease
|
81
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.28 <- factPath
|
82
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.29 <- factPhysicalProcessorCount
|
83
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.30 <- factProcessorId
|
84
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.31 <- factProcessorInfo
|
85
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.32 <- factProcessorCount
|
86
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.33 <- factPs
|
87
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.34 <- factPuppetVersion
|
88
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.35 <- factRubySiteDir
|
89
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.36 <- factRubyVersion
|
90
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.37 <- factSelinux
|
91
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.38 <- factSelinuxConfigMode
|
92
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.39 <- factSelinuxConfigPolicy
|
93
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.40 <- factSelinuxCurrentMode
|
94
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.41 <- factSelinuxEnforced
|
95
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.42 <- factSelinuxMode
|
96
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.43 <- factSelinuxPolicyVersion
|
97
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.44 <- factSshDsaKey
|
98
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.45 <- factSshRsaKey
|
99
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.46 <- factSwapFree
|
100
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.47 <- factSwapSize
|
101
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.48 <- factTimeZone
|
102
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.49 <- factUniqueId
|
103
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.50 <- factUptime
|
104
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.51 <- factUptimeDays
|
105
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.52 <- factUptimeHours
|
106
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.53 <- factUptimeSeconds
|
107
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.54 <- factVirtual
|
108
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.55 <- factNetmask
|
109
|
+
# 1.3.6.1.4.1.32372.1.1.1.1.5.1.56 <- factLastUpdated
|
110
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2 <- Facter Tracking ObjectClasses:
|
111
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2.1 <- facterHost
|
112
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2.2 <- facterNetwork
|
113
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2.3 <- facterProcessor
|
114
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2.4 <- Custom Fact objectClasses:
|
115
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.2.4.1 <- facterGenericCustomFacts
|
116
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3.4.2 <- facterMckessonCustomFacts
|
117
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3 <- Custom Facts
|
118
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3.1 <- Generic Custom Facts
|
119
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3.1.1 <- factJavaVersion
|
120
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3.2 <- McKesson
|
121
|
+
# 1.3.6.1.3.1.32372.1.1.1.1.5.3.2.1 <- factMckessonVersion
|
122
|
+
|
123
|
+
|
124
|
+
################## AttributeTypes ##################
|
125
|
+
|
126
|
+
# STATE
|
127
|
+
|
128
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.1.1.2 NAME 'configBase'
|
129
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
130
|
+
SINGLE-VALUE
|
131
|
+
)
|
132
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.1.1.3 NAME 'configSet'
|
133
|
+
DESC 'A single configuration set/class/whatever this host belongs to'
|
134
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
135
|
+
)
|
136
|
+
|
137
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.1.1.1 NAME 'gatewayIpNumber'
|
138
|
+
DESC 'The entry and exit point(s) for an ipSubnetGateway'
|
139
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
140
|
+
)
|
141
|
+
|
142
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.2.1.1 NAME 'snmpEnabled'
|
143
|
+
DESC 'SNMP has been enabled on this system'
|
144
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
145
|
+
)
|
146
|
+
|
147
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.2.1.2 NAME 'hostFirewallActive'
|
148
|
+
DESC 'The host-based firewall is Active'
|
149
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
150
|
+
)
|
151
|
+
|
152
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.2.1.3 NAME 'icmpEchoEnabled'
|
153
|
+
DESC 'The host is configured to respond to ICMP Echo Requests'
|
154
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
155
|
+
)
|
156
|
+
|
157
|
+
# PFACTER
|
158
|
+
|
159
|
+
#attributetype ( 1.3.6.1.4.1.4203.1.3.5 NAME 'supportedFeatures'
|
160
|
+
# DESC 'features supported by the server' EQUALITY objectIdentifierMatch
|
161
|
+
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.38
|
162
|
+
# X-ORIGIN 'user defined'
|
163
|
+
# )
|
164
|
+
|
165
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.1 NAME 'uniqueId'
|
166
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
167
|
+
SINGLE-VALUE
|
168
|
+
X-ORIGIN 'user defined'
|
169
|
+
)
|
170
|
+
|
171
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.2 NAME 'hostname'
|
172
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
173
|
+
SINGLE-VALUE
|
174
|
+
X-ORIGIN 'user defined'
|
175
|
+
)
|
176
|
+
|
177
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.3 NAME 'domain'
|
178
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
179
|
+
SINGLE-VALUE
|
180
|
+
X-ORIGIN 'user defined'
|
181
|
+
)
|
182
|
+
|
183
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.4 NAME 'fqdn'
|
184
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
185
|
+
SINGLE-VALUE
|
186
|
+
X-ORIGIN 'user defined'
|
187
|
+
)
|
188
|
+
|
189
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.5 NAME 'ipAddress'
|
190
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
191
|
+
X-ORIGIN 'user defined'
|
192
|
+
)
|
193
|
+
|
194
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.6 NAME 'hardwareManufacturer'
|
195
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
196
|
+
SINGLE-VALUE
|
197
|
+
X-ORIGIN 'user defined'
|
198
|
+
)
|
199
|
+
|
200
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.7 NAME 'hardwareProduct'
|
201
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
202
|
+
SINGLE-VALUE
|
203
|
+
X-ORIGIN 'user defined'
|
204
|
+
)
|
205
|
+
|
206
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.8 NAME 'hardwareModel'
|
207
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
208
|
+
SINGLE-VALUE
|
209
|
+
X-ORIGIN 'user defined'
|
210
|
+
)
|
211
|
+
|
212
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.9 NAME 'hardwarePlatform'
|
213
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
214
|
+
SINGLE-VALUE
|
215
|
+
X-ORIGIN 'user defined'
|
216
|
+
)
|
217
|
+
|
218
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.10 NAME 'architecture'
|
219
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
220
|
+
SINGLE-VALUE
|
221
|
+
X-ORIGIN 'user defined'
|
222
|
+
)
|
223
|
+
|
224
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.11 NAME 'lsbId'
|
225
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
226
|
+
SINGLE-VALUE
|
227
|
+
X-ORIGIN 'user defined'
|
228
|
+
)
|
229
|
+
|
230
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.12 NAME 'lsbRelease'
|
231
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
232
|
+
SINGLE-VALUE
|
233
|
+
X-ORIGIN 'user defined'
|
234
|
+
)
|
235
|
+
|
236
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.13 NAME 'lsbDescription'
|
237
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
238
|
+
SINGLE-VALUE
|
239
|
+
X-ORIGIN 'user defined'
|
240
|
+
)
|
241
|
+
|
242
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.14 NAME 'operatingSystem'
|
243
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
244
|
+
SINGLE-VALUE
|
245
|
+
X-ORIGIN 'user defined'
|
246
|
+
)
|
247
|
+
|
248
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.15 NAME 'kernelRelease'
|
249
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
250
|
+
SINGLE-VALUE
|
251
|
+
X-ORIGIN 'user defined'
|
252
|
+
)
|
253
|
+
|
254
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.16 NAME 'kernelVersion'
|
255
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
256
|
+
SINGLE-VALUE
|
257
|
+
X-ORIGIN 'user defined'
|
258
|
+
)
|
259
|
+
|
260
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.17 NAME 'kernel'
|
261
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
262
|
+
SINGLE-VALUE
|
263
|
+
X-ORIGIN 'user defined'
|
264
|
+
)
|
265
|
+
|
266
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.18 NAME 'processor'
|
267
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
268
|
+
X-ORIGIN 'user defined'
|
269
|
+
)
|
270
|
+
|
271
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.19 NAME 'processorCount'
|
272
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
273
|
+
SINGLE-VALUE
|
274
|
+
X-ORIGIN 'user defined'
|
275
|
+
)
|
276
|
+
|
277
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.20 NAME 'disk'
|
278
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
279
|
+
X-ORIGIN 'user defined'
|
280
|
+
)
|
281
|
+
|
282
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.21 NAME 'memory'
|
283
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
284
|
+
X-ORIGIN 'user defined'
|
285
|
+
)
|
286
|
+
|
287
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.22 NAME 'memoryTotal'
|
288
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
289
|
+
SINGLE-VALUE
|
290
|
+
X-ORIGIN 'user defined'
|
291
|
+
)
|
292
|
+
|
293
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.3.1.23 NAME 'localtime'
|
294
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
295
|
+
SINGLE-VALUE
|
296
|
+
X-ORIGIN 'user defined'
|
297
|
+
)
|
298
|
+
|
299
|
+
################## Facter Items ##################
|
300
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.1 NAME 'factArchitecture'
|
301
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
302
|
+
SINGLE-VALUE
|
303
|
+
X-ORIGIN 'user defined'
|
304
|
+
)
|
305
|
+
|
306
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.2 NAME 'factDomain'
|
307
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
308
|
+
SINGLE-VALUE
|
309
|
+
X-ORIGIN 'user defined'
|
310
|
+
)
|
311
|
+
|
312
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.3 NAME 'factFacterVersion'
|
313
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
314
|
+
SINGLE-VALUE
|
315
|
+
X-ORIGIN 'user defined'
|
316
|
+
)
|
317
|
+
|
318
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.4 NAME 'factFqdn'
|
319
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
320
|
+
SINGLE-VALUE
|
321
|
+
X-ORIGIN 'user defined'
|
322
|
+
)
|
323
|
+
|
324
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.5 NAME 'factHardwareisa'
|
325
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
326
|
+
SINGLE-VALUE
|
327
|
+
X-ORIGIN 'user defined'
|
328
|
+
)
|
329
|
+
|
330
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.6 NAME 'factHardwareModel'
|
331
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
332
|
+
SINGLE-VALUE
|
333
|
+
X-ORIGIN 'user defined'
|
334
|
+
)
|
335
|
+
|
336
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.7 NAME 'factHostname'
|
337
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
338
|
+
SINGLE-VALUE
|
339
|
+
X-ORIGIN 'user defined'
|
340
|
+
)
|
341
|
+
|
342
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.8 NAME 'factId'
|
343
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
344
|
+
SINGLE-VALUE
|
345
|
+
X-ORIGIN 'user defined'
|
346
|
+
)
|
347
|
+
|
348
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.9 NAME 'factInterface'
|
349
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
350
|
+
SINGLE-VALUE
|
351
|
+
X-ORIGIN 'user defined'
|
352
|
+
)
|
353
|
+
|
354
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.10 NAME 'factIpAddress'
|
355
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
356
|
+
SINGLE-VALUE
|
357
|
+
X-ORIGIN 'user defined'
|
358
|
+
)
|
359
|
+
|
360
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.11 NAME 'factIsVirtual'
|
361
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
362
|
+
SINGLE-VALUE
|
363
|
+
X-ORIGIN 'user defined'
|
364
|
+
)
|
365
|
+
|
366
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.12 NAME 'factKernel'
|
367
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
368
|
+
SINGLE-VALUE
|
369
|
+
X-ORIGIN 'user defined'
|
370
|
+
)
|
371
|
+
|
372
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.13 NAME 'factKernelMajVersion'
|
373
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
374
|
+
SINGLE-VALUE
|
375
|
+
X-ORIGIN 'user defined'
|
376
|
+
)
|
377
|
+
|
378
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.14 NAME 'factKernelRelease'
|
379
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
380
|
+
SINGLE-VALUE
|
381
|
+
X-ORIGIN 'user defined'
|
382
|
+
)
|
383
|
+
|
384
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.15 NAME 'factKernelVersion'
|
385
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
386
|
+
SINGLE-VALUE
|
387
|
+
X-ORIGIN 'user defined'
|
388
|
+
)
|
389
|
+
|
390
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.16 NAME 'factLsbDistCodename'
|
391
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
392
|
+
SINGLE-VALUE
|
393
|
+
X-ORIGIN 'user defined'
|
394
|
+
)
|
395
|
+
|
396
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.17 NAME 'factLsbDistDescription'
|
397
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
398
|
+
SINGLE-VALUE
|
399
|
+
X-ORIGIN 'user defined'
|
400
|
+
)
|
401
|
+
|
402
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.18 NAME 'factLsbDistId'
|
403
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
404
|
+
SINGLE-VALUE
|
405
|
+
X-ORIGIN 'user defined'
|
406
|
+
)
|
407
|
+
|
408
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.19 NAME 'factLsbDistRelease'
|
409
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
410
|
+
SINGLE-VALUE
|
411
|
+
X-ORIGIN 'user defined'
|
412
|
+
)
|
413
|
+
|
414
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.20 NAME 'factLsbMajDistRelease'
|
415
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
416
|
+
SINGLE-VALUE
|
417
|
+
X-ORIGIN 'user defined'
|
418
|
+
)
|
419
|
+
|
420
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.21 NAME 'factLsbRelease'
|
421
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
422
|
+
SINGLE-VALUE
|
423
|
+
X-ORIGIN 'user defined'
|
424
|
+
)
|
425
|
+
|
426
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.22 NAME 'factMacAddress'
|
427
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
428
|
+
SINGLE-VALUE
|
429
|
+
X-ORIGIN 'user defined'
|
430
|
+
)
|
431
|
+
|
432
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.23 NAME 'factMemoryFree'
|
433
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
434
|
+
SINGLE-VALUE
|
435
|
+
X-ORIGIN 'user defined'
|
436
|
+
)
|
437
|
+
|
438
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.24 NAME 'factMemorySize'
|
439
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
440
|
+
SINGLE-VALUE
|
441
|
+
X-ORIGIN 'user defined'
|
442
|
+
)
|
443
|
+
|
444
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.25 NAME 'factNetwork'
|
445
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
446
|
+
SINGLE-VALUE
|
447
|
+
X-ORIGIN 'user defined'
|
448
|
+
)
|
449
|
+
|
450
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.26 NAME 'factOperatingSystem'
|
451
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
452
|
+
SINGLE-VALUE
|
453
|
+
X-ORIGIN 'user defined'
|
454
|
+
)
|
455
|
+
|
456
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.27 NAME 'factOperatingSystemRelease'
|
457
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
458
|
+
SINGLE-VALUE
|
459
|
+
X-ORIGIN 'user defined'
|
460
|
+
)
|
461
|
+
|
462
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.28 NAME 'factPath'
|
463
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
464
|
+
SINGLE-VALUE
|
465
|
+
X-ORIGIN 'user defined'
|
466
|
+
)
|
467
|
+
|
468
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.29 NAME 'factPhysicalProcessorCount'
|
469
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
470
|
+
SINGLE-VALUE
|
471
|
+
X-ORIGIN 'user defined'
|
472
|
+
)
|
473
|
+
|
474
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.30 NAME 'factProcessorId'
|
475
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
476
|
+
SINGLE-VALUE
|
477
|
+
X-ORIGIN 'user defined'
|
478
|
+
)
|
479
|
+
|
480
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.31 NAME 'factProcessorInfo'
|
481
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
482
|
+
SINGLE-VALUE
|
483
|
+
X-ORIGIN 'user defined'
|
484
|
+
)
|
485
|
+
|
486
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.32 NAME 'factProcessorCount'
|
487
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
488
|
+
SINGLE-VALUE
|
489
|
+
X-ORIGIN 'user defined'
|
490
|
+
)
|
491
|
+
|
492
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.33 NAME 'factPs'
|
493
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
494
|
+
SINGLE-VALUE
|
495
|
+
X-ORIGIN 'user defined'
|
496
|
+
)
|
497
|
+
|
498
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.34 NAME 'factPuppetVersion'
|
499
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
500
|
+
SINGLE-VALUE
|
501
|
+
X-ORIGIN 'user defined'
|
502
|
+
)
|
503
|
+
|
504
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.35 NAME 'factRubySiteDir'
|
505
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
506
|
+
SINGLE-VALUE
|
507
|
+
X-ORIGIN 'user defined'
|
508
|
+
)
|
509
|
+
|
510
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.36 NAME 'factRubyVersion'
|
511
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
512
|
+
SINGLE-VALUE
|
513
|
+
X-ORIGIN 'user defined'
|
514
|
+
)
|
515
|
+
|
516
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.37 NAME 'factSelinux'
|
517
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
518
|
+
SINGLE-VALUE
|
519
|
+
X-ORIGIN 'user defined'
|
520
|
+
)
|
521
|
+
|
522
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.38 NAME 'factSelinuxConfigMode'
|
523
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
524
|
+
SINGLE-VALUE
|
525
|
+
X-ORIGIN 'user defined'
|
526
|
+
)
|
527
|
+
|
528
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.39 NAME 'factSelinuxConfigPolicy'
|
529
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
530
|
+
SINGLE-VALUE
|
531
|
+
X-ORIGIN 'user defined'
|
532
|
+
)
|
533
|
+
|
534
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.40 NAME 'factSelinuxCurrentMode'
|
535
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
536
|
+
SINGLE-VALUE
|
537
|
+
X-ORIGIN 'user defined'
|
538
|
+
)
|
539
|
+
|
540
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.41 NAME 'factSelinuxEnforced'
|
541
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
542
|
+
SINGLE-VALUE
|
543
|
+
X-ORIGIN 'user defined'
|
544
|
+
)
|
545
|
+
|
546
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.42 NAME 'factSelinuxMode'
|
547
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
548
|
+
SINGLE-VALUE
|
549
|
+
X-ORIGIN 'user defined'
|
550
|
+
)
|
551
|
+
|
552
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.43 NAME 'factSelinuxPolicyVersion'
|
553
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
554
|
+
SINGLE-VALUE
|
555
|
+
X-ORIGIN 'user defined'
|
556
|
+
)
|
557
|
+
|
558
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.44 NAME 'factSshDsaKey'
|
559
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
560
|
+
SINGLE-VALUE
|
561
|
+
X-ORIGIN 'user defined'
|
562
|
+
)
|
563
|
+
|
564
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.45 NAME 'factSshRsaKey'
|
565
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
566
|
+
SINGLE-VALUE
|
567
|
+
X-ORIGIN 'user defined'
|
568
|
+
)
|
569
|
+
|
570
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.46 NAME 'factSwapFree'
|
571
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
572
|
+
SINGLE-VALUE
|
573
|
+
X-ORIGIN 'user defined'
|
574
|
+
)
|
575
|
+
|
576
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.47 NAME 'factSwapSize'
|
577
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
578
|
+
SINGLE-VALUE
|
579
|
+
X-ORIGIN 'user defined'
|
580
|
+
)
|
581
|
+
|
582
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.48 NAME 'factTimeZone'
|
583
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
584
|
+
SINGLE-VALUE
|
585
|
+
X-ORIGIN 'user defined'
|
586
|
+
)
|
587
|
+
|
588
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.49 NAME 'factUniqueId'
|
589
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
590
|
+
SINGLE-VALUE
|
591
|
+
X-ORIGIN 'user defined'
|
592
|
+
)
|
593
|
+
|
594
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.50 NAME 'factUptime'
|
595
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
596
|
+
SINGLE-VALUE
|
597
|
+
X-ORIGIN 'user defined'
|
598
|
+
)
|
599
|
+
|
600
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.51 NAME 'factUptimeDays'
|
601
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
602
|
+
SINGLE-VALUE
|
603
|
+
X-ORIGIN 'user defined'
|
604
|
+
)
|
605
|
+
|
606
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.52 NAME 'factUptimeHours'
|
607
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
608
|
+
SINGLE-VALUE
|
609
|
+
X-ORIGIN 'user defined'
|
610
|
+
)
|
611
|
+
|
612
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.53 NAME 'factUptimeSeconds'
|
613
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
614
|
+
SINGLE-VALUE
|
615
|
+
X-ORIGIN 'user defined'
|
616
|
+
)
|
617
|
+
|
618
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.54 NAME 'factVirtual'
|
619
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
620
|
+
SINGLE-VALUE
|
621
|
+
X-ORIGIN 'user defined'
|
622
|
+
)
|
623
|
+
|
624
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.55 NAME 'factNetmask'
|
625
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
626
|
+
SINGLE-VALUE
|
627
|
+
X-ORIGIN 'user defined'
|
628
|
+
)
|
629
|
+
|
630
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.1.56 NAME 'factLastUpdated'
|
631
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
632
|
+
SINGLE-VALUE
|
633
|
+
X-ORIGIN 'user defined'
|
634
|
+
)
|
635
|
+
|
636
|
+
|
637
|
+
################## Custom Facts ##################
|
638
|
+
################## Generic Custom Facts ##################
|
639
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.3.1.1 NAME 'factJavaVersion'
|
640
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
641
|
+
SINGLE-VALUE
|
642
|
+
X-ORIGIN 'user defined'
|
643
|
+
)
|
644
|
+
|
645
|
+
################## McKesson Custom Facts ##################
|
646
|
+
attributetype ( 1.3.6.1.3.1.32372.1.1.1.1.5.3.2.1 NAME 'factMckessonVersion'
|
647
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
|
648
|
+
SINGLE-VALUE
|
649
|
+
X-ORIGIN 'user defined'
|
650
|
+
)
|
651
|
+
|
652
|
+
################## ObjectClasses ##################
|
653
|
+
objectClass ( 1.3.6.1.4.1.32372.1.1.1.1.1.2.1 NAME 'ipSubnet'
|
654
|
+
SUP top
|
655
|
+
AUXILIARY
|
656
|
+
DESC 'An IP Subnet'
|
657
|
+
MUST ( ipHostNumber $ ipNetmaskNumber $ cn )
|
658
|
+
MAY ( manager $ description $ l $ gatewayIpNumber )
|
659
|
+
)
|
660
|
+
|
661
|
+
objectClass ( 1.3.6.1.4.1.32372.1.1.1.1.1.2.2 NAME 'configHost'
|
662
|
+
SUP top
|
663
|
+
AUXILIARY
|
664
|
+
MUST ( configBase $ configSet )
|
665
|
+
MAY ( snmpEnabled $ hostFirewallActive $ icmpEchoEnabled )
|
666
|
+
)
|
667
|
+
|
668
|
+
attributetype ( 1.3.6.1.4.1.32372.1.1.1.1.4.1.1 NAME 'pagerEmail'
|
669
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
|
670
|
+
EQUALITY caseExactIA5Match
|
671
|
+
X-ORIGIN 'user defined'
|
672
|
+
)
|
673
|
+
|
674
|
+
objectClass ( 1.3.6.1.4.1.32372.1.1.1.1.3.2.1 NAME 'pfHost'
|
675
|
+
SUP top
|
676
|
+
STRUCTURAL
|
677
|
+
MAY ( architecture $ disk $ domain $ fqdn $ hardwareManufacturer $ hardwareModel $ hardwarePlatform $ hardwareProduct $ hostname $ ipAddress $ kernel $ kernelRelease $ kernelVersion $ localtime $ lsbDescription $ lsbId $ lsbRelease $ macAddress $ memory $ memoryTotal $ operatingSystem $ processor $ processorCount $ uniqueId )
|
678
|
+
X-ORIGIN 'user defined'
|
679
|
+
)
|
680
|
+
|
681
|
+
objectClass ( 1.3.6.1.3.1.32372.1.1.1.1.5.2.1 NAME 'facterHost'
|
682
|
+
SUP device
|
683
|
+
STRUCTURAL
|
684
|
+
MUST ( cn )
|
685
|
+
MAY ( ou $ o $ factArchitecture $ factDomain $ factFacterVersion $ factFqdn $ factHardwareisa $ factHardwareModel $ factHostname $ factId $ factIsVirtual $ factKernel $ factKernelMajVersion $ factKernelRelease $ factKernelVersion $ factLsbDistCodename $ factLsbDistDescription $ factLsbDistId $ factLsbDistRelease $ factLsbMajDistRelease $ factLsbRelease $ factMacAddress $ factMemoryFree $ factMemorySize $ factOperatingSystem $ factOperatingSystemRelease $ factPath $ factPhysicalProcessorCount $ factProcessorCount $ factPs $ factPuppetVersion $ factRubySiteDir $ factRubyVersion $ factSelinux $ factSelinuxConfigMode $ factSelinuxConfigPolicy $ factSelinuxCurrentMode $ factSelinuxEnforced $ factSelinuxMode $ factSelinuxPolicyVersion $ factSshDsaKey $ factSshRsaKey $ factSwapFree $ factSwapSize $ factTimeZone $ factUniqueId $ factUptime $ factUptimeDays $ factUptimeHours $ factUptimeSeconds $ factVirtual $ factLastUpdated )
|
686
|
+
X-ORIGIN 'user defined'
|
687
|
+
)
|
688
|
+
|
689
|
+
objectClass ( 1.3.6.1.3.1.32372.1.1.1.1.5.2.2 NAME 'facterNetwork'
|
690
|
+
SUP device
|
691
|
+
STRUCTURAL
|
692
|
+
MUST ( cn )
|
693
|
+
MAY ( factInterface $ factIpAddress $ factMacAddress $ factNetwork $ factNetmask )
|
694
|
+
X-ORIGIN 'user defined'
|
695
|
+
)
|
696
|
+
|
697
|
+
objectClass ( 1.3.6.1.3.1.32372.1.1.1.1.5.2.3 NAME 'facterProcessor'
|
698
|
+
SUP device
|
699
|
+
STRUCTURAL
|
700
|
+
MUST ( cn )
|
701
|
+
MAY ( factProcessorId $ factProcessorInfo )
|
702
|
+
X-ORIGIN 'user defined'
|
703
|
+
)
|
704
|
+
|
705
|
+
objectClass ( 1.3.6.1.4.1.32372.1.1.1.1.4.2.1 NAME 'websage'
|
706
|
+
SUP top
|
707
|
+
AUXILIARY
|
708
|
+
MAY ( pagerEmail )
|
709
|
+
X-ORIGIN 'user defined'
|
710
|
+
)
|
711
|
+
|
712
|
+
################## CustomObjectClasses ##################
|
713
|
+
################## FacterGenericObjectClasses ##################
|
714
|
+
objectClass ( 1.3.6.1.3.1.32372.1.1.1.1.5.2.4.1 NAME 'facterGenericCustomFacts'
|
715
|
+
SUP facterHost
|
716
|
+
STRUCTURAL
|
717
|
+
MAY ( factJavaVersion )
|
718
|
+
X-ORIGIN 'user defined'
|
719
|
+
)
|
720
|
+
|
721
|
+
################## FacterMckessonObjectClasses ##################
|
722
|
+
objectClass ( 1.3.6.1.3.1.32372.1.1.1.1.5.2.4.2 NAME 'facterMckessonCustomFacts'
|
723
|
+
SUP facterHost
|
724
|
+
STRUCTURAL
|
725
|
+
MAY ( factMckessonVersion )
|
726
|
+
X-ORIGIN 'user defined'
|
727
|
+
)
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
# 1.3.6.1.4.1.32372.1.1.2 <- SNMP:
|
732
|
+
# 1.3.6.1.4.1.32372.1.1.2.1 <- Revision 1:
|
733
|
+
# 1.3.6.1.4.1.32372.1.1.2.1.1 <- Poll OIDs:
|
734
|
+
# 1.3.6.1.4.1.32372.1.1.2.1.2 <- Trap OIDs:
|