puppet_spec_facts 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +7 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +13 -0
  8. data/README.md +93 -0
  9. data/Rakefile +7 -0
  10. data/Vagrantfile +146 -0
  11. data/facts/Archlinux/Archlinux_3.15.8-1-ARCH_x86_64_3.5.1_stringified.json +86 -0
  12. data/facts/CentOS/CentOS_5.11_i386_3.7.1_structured.json +127 -0
  13. data/facts/CentOS/CentOS_5.11_i386_PE-3.3.2_stringified.json +84 -0
  14. data/facts/CentOS/CentOS_5.11_x86_64_3.7.1_structured.json +127 -0
  15. data/facts/CentOS/CentOS_5.11_x86_64_PE-3.3.2_stringified.json +84 -0
  16. data/facts/Debian/Debian_wheezy_7.7_amd64_3.7.2_structured.json +143 -0
  17. data/facts/Debian/Debian_wheezy_7.7_amd64_PE-3.3.2_stringified.json +86 -0
  18. data/facts/Debian/Debian_wheezy_7.7_i386_PE-3.3.2_stringified.json +86 -0
  19. data/facts/FreeBSD/FreeBSD_10.0-RELEASE_amd64_3.6.2_structured.json +114 -0
  20. data/facts/SLES/SLES_11.1_x86_64_3.1.1_stringified.json +62 -0
  21. data/facts/Ubuntu/Ubuntu_precise_12.04_amd64_PE-3.3.2_stringified.json +85 -0
  22. data/facts/Ubuntu/Ubuntu_precise_12.04_i386_PE-3.3.2_stringified.json +85 -0
  23. data/facts/Ubuntu/Ubuntu_saucy_13.10_amd64_3.5.1_stringified.json +84 -0
  24. data/facts/Ubuntu/Ubuntu_trusty_14.04_amd64_PE-3.3.2_stringified.json +85 -0
  25. data/facts/Ubuntu/Ubuntu_trusty_14.04_i386_PE-3.3.2_stringified.json +85 -0
  26. data/facts/darwin/Darwin_10.9.5_x86_64_3.4.3_stringified.json +135 -0
  27. data/facts/darwin/Darwin_10.9.5_x86_64_3.7.3_structured.json +157 -0
  28. data/lib/puppet_spec_facts/version.rb +3 -0
  29. data/lib/puppet_spec_facts.rb +139 -0
  30. data/puppet_spec_facts.gemspec +27 -0
  31. data/spec/lib/puppet_spec_facts_spec.rb +102 -0
  32. data/spec/spec_helper.rb +5 -0
  33. metadata +161 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: feec5407015957d9922ec6050b357449cbc26d38
4
+ data.tar.gz: ef37b8c0a263a516d4f0de9eac351b2a2ea910f8
5
+ SHA512:
6
+ metadata.gz: 9283109b17594c632ea18be75e136f2002c6ccabdbad871e4b0e77f845feaa53fd66611ad490dff2336a254a3223e988aee705cef09187fdd0455cc415764ef5
7
+ data.tar.gz: 51235ec697206c0513acc400a6483f8c924d6b64477e230c406e56146b79c2c4fb4f12ee61f962092b0c24448a56630c0ada5430bca0e96d6583c9fa10cbca2c
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ puppet_spec_facts
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.2
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ language: ruby
3
+ before_install: rm Gemfile.lock || true
4
+ rvm:
5
+ - 2.0.0
6
+ - 2.1.3
7
+ script: bundle exec rake test SPEC_OPTS="--format documentation --color --backtrace"
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in puppet_spec_facts.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2013 MaestroDev
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # In development, do not use
2
+
3
+ # PuppetSpecFacts
4
+ [![Build Status](https://travis-ci.org/danieldreier/puppet_spec_facts.svg?branch=master)](https://travis-ci.org/danieldreier/puppet_spec_facts) [![Code Climate](https://codeclimate.com/github/danieldreier/puppet_spec_facts/badges/gpa.svg)](https://codeclimate.com/github/danieldreier/puppet_spec_facts) [![Coverage Status](https://img.shields.io/coveralls/danieldreier/puppet_spec_facts.svg)](https://coveralls.io/r/danieldreier/puppet_spec_facts?branch=master) [![Dependency Status](https://gemnasium.com/danieldreier/puppet_spec_facts.svg)](https://gemnasium.com/danieldreier/puppet_spec_facts)
5
+
6
+ This gem provides facts for rspec-puppet, much like
7
+ [apenny/puppet_facts](https://github.com/apenney/puppet_facts) but targeted
8
+ toward open source puppet whereas puppet_facts seems to be aimed at Puppet
9
+ Enterprise.
10
+
11
+ Puppet module developers (should) use rspec-puppet to validate conditional logic. One of the most common forms
12
+ of conditional logic is to change behavior based on operating system or linux distribution. Unfortunately, most
13
+ rspec-puppet tests only include a handful of relevant facts from one or two popular Linux distributions.
14
+ This gem is intended to provide a flexible way to iterate across platforms with full facter facts.
15
+
16
+ In order to be useful, this needs a wide range of facts from different platforms. You can help by making pull
17
+ requests, or by submitting facts to [facts.whilefork.com](http://facts.whilefork.com) via HTTP POST:
18
+ ```bash
19
+ facter --json | curl -H "Content-Type: application/json" -d @- http://facts.whilefork.com
20
+ ```
21
+
22
+ ## Installation
23
+
24
+ Add this line to your puppet module's Gemfile:
25
+
26
+ ```gemfile
27
+ gem 'puppet_spec_facts'
28
+ ```
29
+ Add this line to your `spec/spec_helper.rb` file:
30
+
31
+ ```ruby
32
+ require 'spec_helper'
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ The code below doesn't quite work yet, so wait for an update on this before trying to use it.
38
+
39
+ To iterate through all available fact sets, do something like the following in your spec file:
40
+
41
+ ```ruby
42
+ require 'spec_helper'
43
+ include PuppetSpecFacts # shown here, but should be included from spec_helper.rb
44
+
45
+ describe 'example' do
46
+ context 'all operating systems' do
47
+ PuppetSpecFacts.puppet_platforms.each do |name, facthash|
48
+ # at this point, name is a human-readable string like:
49
+ # FreeBSD_10.0-RELEASE_amd64_3.6.2_structured
50
+ # Debian_wheezy_7.7_i386_PE-3.3.2_stringified
51
+ # CentOS_5.11_x86_64_3.7.1_structured
52
+ # etc
53
+ describe "example class without any parameters on #{name}" do
54
+ let(:params) {{ }}
55
+ let(:facts) { facthash } # the facter output you sent in above is now available in rspec
56
+
57
+ it { should compile.with_all_deps }
58
+ end
59
+ end
60
+ end
61
+ end
62
+ ```
63
+
64
+ In the real world, you probably don't want to iterate through all of the platforms, so `puppet_spec_facts` allows you to query a subset based on facter facts:
65
+
66
+ ```ruby
67
+ require 'spec_helper'
68
+
69
+ describe 'example' do
70
+ context 'all operating systems' do
71
+ PuppetSpecFacts.facts_for_platform_by_fact(select_facts: {'lsbdistid' => 'CentOS',
72
+ 'architecture' => 'x86_64',
73
+ 'is_pe' => 'true',
74
+ 'fact_style' => 'stringified'}) do |name, facthash|
75
+ # This loads all fact sets for Puppet Enterprise on x86_64 CentOS with stringified-style facts
76
+ describe "example class without any parameters on #{name}" do
77
+ let(:params) {{ }}
78
+ let(:facts) { facthash } # the facter output you sent in above is now available in rspec
79
+
80
+ it { should compile.with_all_deps }
81
+ end
82
+ end
83
+ end
84
+ end
85
+ ```
86
+
87
+ ## Contributing
88
+
89
+ 1. Fork it ( https://github.com/[my-github-username]/puppet_spec_facts/fork )
90
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
91
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
92
+ 4. Push to the branch (`git push origin my-new-feature`)
93
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
7
+ task :test => :spec
data/Vagrantfile ADDED
@@ -0,0 +1,146 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ VAGRANTFILE_API_VERSION = "2"
5
+
6
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7
+ ### Define options for all VMs ###
8
+
9
+ config.vm.provision "shell", path: "scripts/gather_facts.sh"
10
+
11
+ config.vm.define :openbsd55 do |node|
12
+ node.vm.box = 'openbsd55'
13
+ node.vm.box_url = 'https://github.com/jose-lpa/veewee-openbsd/releases/download/v0.5.5/openbsd55.box'
14
+ node.vm.hostname = 'server.example.com'
15
+ end
16
+ config.vm.define :freebsd10 do |node|
17
+ node.vm.box = 'hfm4/freebsd-10.0'
18
+ node.vm.hostname = 'server.example.com'
19
+ end
20
+ config.vm.define :ubuntu1310_64 do |node|
21
+ node.vm.box = 'puppetlabs/ubuntu-13.10-64-puppet'
22
+ node.vm.hostname = 'server.example.com'
23
+ end
24
+ config.vm.define :arch do |node|
25
+ node.vm.box = 'jfredett/arch-puppet'
26
+ node.vm.hostname = 'server.example.com'
27
+ end
28
+ config.vm.define :sles11sp1 do |node|
29
+ node.vm.box = 'sles-11sp1-x64-vbox4210'
30
+ node.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210.box'
31
+ node.vm.hostname = 'server.example.com'
32
+ end
33
+
34
+ # boxes without puppet, need to figure out how to install
35
+ # config.vm.define :opensuse13_64_nocm do |node|
36
+ # node.vm.box = 'elatov/opensuse13-64'
37
+ # node.vm.hostname = 'server.example.com'
38
+ # end
39
+ # config.vm.define :gentoo_nocm do |node|
40
+ # node.vm.box = 'd11wtq/gentoo'
41
+ # node.vm.hostname = 'server.example.com'
42
+ # end
43
+
44
+ ## Centos
45
+ config.vm.define :centos5_32_foss do |node|
46
+ node.vm.box = 'puppetlabs/centos-5.11-32-puppet'
47
+ node.vm.hostname = 'server.example.com'
48
+ end
49
+ config.vm.define :centos5_32_pe do |node|
50
+ node.vm.box = 'puppetlabs/centos-5.11-32-puppet-enterprise'
51
+ node.vm.hostname = 'server.example.com'
52
+ end
53
+ config.vm.define :centos5_64_foss do |node|
54
+ node.vm.box = 'puppetlabs/centos-5.11-64-puppet'
55
+ node.vm.hostname = 'server.example.com'
56
+ end
57
+ config.vm.define :centos5_64_pe do |node|
58
+ node.vm.box = 'puppetlabs/centos-5.11-64-puppet-enterprise'
59
+ node.vm.hostname = 'server.example.com'
60
+ end
61
+
62
+ # didn't work
63
+ config.vm.define :centos65_32_pe do |node|
64
+ node.vm.box = 'puppetlabs/centos-6.5-32-puppet-enterprise'
65
+ node.vm.hostname = 'server.example.com'
66
+ end
67
+
68
+ config.vm.define :centos65_64_pe do |node|
69
+ node.vm.box = 'puppetlabs/centos-6.5-64-puppet-enterprise'
70
+ node.vm.hostname = 'server.example.com'
71
+ end
72
+
73
+ # didn't work
74
+ config.vm.define :centos65_64_foss do |node|
75
+ node.vm.box = 'puppetlabs/centos-6.5-64-puppet'
76
+ node.vm.hostname = 'server.example.com'
77
+ end
78
+ config.vm.define :centos65_64_foss do |node|
79
+ node.vm.box = 'puppetlabs/centos-6.5-64-puppet-enterprise'
80
+ node.vm.hostname = 'server.example.com'
81
+ end
82
+
83
+ # Debian
84
+ config.vm.define :debian76_32_foss do |node|
85
+ node.vm.box = 'puppetlabs/debian-7.6-32-puppet'
86
+ node.vm.hostname = 'server.example.com'
87
+ end
88
+ config.vm.define :debian76_32_foss do |node|
89
+ node.vm.box = 'puppetlabs/debian-7.6-32-puppet-enterprise'
90
+ node.vm.hostname = 'server.example.com'
91
+ end
92
+ config.vm.define :debian76_64_foss do |node|
93
+ node.vm.box = 'puppetlabs/debian-7.6-64-puppet'
94
+ node.vm.hostname = 'server.example.com'
95
+ end
96
+ config.vm.define :debian76_64_foss do |node|
97
+ node.vm.box = 'puppetlabs/debian-7.6-64-puppet-enterprise'
98
+ node.vm.hostname = 'server.example.com'
99
+ end
100
+
101
+ # Ubuntu
102
+ config.vm.define :ubuntu1204_32_foss do |node|
103
+ node.vm.box = 'puppetlabs/ubuntu-12.04-32-puppet'
104
+ node.vm.hostname = 'server.example.com'
105
+ end
106
+ config.vm.define :ubuntu1204_32_foss do |node|
107
+ node.vm.box = 'puppetlabs/ubuntu-12.04-32-puppet-enterprise'
108
+ node.vm.hostname = 'server.example.com'
109
+ end
110
+ config.vm.define :ubuntu1204_64_foss do |node|
111
+ node.vm.box = 'puppetlabs/ubuntu-12.04-64-puppet'
112
+ node.vm.hostname = 'server.example.com'
113
+ end
114
+ config.vm.define :ubuntu1204_64_foss do |node|
115
+ node.vm.box = 'puppetlabs/ubuntu-12.04-64-puppet-enterprise'
116
+ node.vm.hostname = 'server.example.com'
117
+ end
118
+
119
+ config.vm.define :ubuntu1404_32_foss do |node|
120
+ node.vm.box = 'puppetlabs/ubuntu-14.04-32-puppet'
121
+ node.vm.hostname = 'server.example.com'
122
+ end
123
+ config.vm.define :ubuntu1404_32_foss do |node|
124
+ node.vm.box = 'puppetlabs/ubuntu-14.04-32-puppet-enterprise'
125
+ node.vm.hostname = 'server.example.com'
126
+ end
127
+ config.vm.define :ubuntu1404_64_foss do |node|
128
+ node.vm.box = 'puppetlabs/ubuntu-14.04-64-puppet'
129
+ node.vm.hostname = 'server.example.com'
130
+ end
131
+ config.vm.define :ubuntu1404_64_foss do |node|
132
+ node.vm.box = 'puppetlabs/ubuntu-14.04-64-puppet-enterprise'
133
+ node.vm.hostname = 'server.example.com'
134
+ end
135
+
136
+ # centos
137
+ config.vm.define :centos7_64_foss do |node|
138
+ node.vm.box = 'puppetlabs/centos-7.0-64-puppet'
139
+ node.vm.hostname = 'server.example.com'
140
+ end
141
+ config.vm.define :centos7_64_foss do |node|
142
+ node.vm.box = 'puppetlabs/centos-7.0-64-puppet-enterprise'
143
+ node.vm.hostname = 'server.example.com'
144
+ end
145
+
146
+ end
@@ -0,0 +1,86 @@
1
+ {
2
+ "interfaces": "enp0s3,lo",
3
+ "kernel": "Linux",
4
+ "ipaddress_enp0s3": "10.0.2.15",
5
+ "macaddress_enp0s3": "08:00:27:1d:a6:f0",
6
+ "netmask_enp0s3": "255.255.255.0",
7
+ "mtu_enp0s3": "1500",
8
+ "ipaddress_lo": "127.0.0.1",
9
+ "netmask_lo": "255.0.0.0",
10
+ "mtu_lo": "65536",
11
+ "domain": "example.com",
12
+ "timezone": "UTC",
13
+ "ps": "ps -ef",
14
+ "selinux": "false",
15
+ "memorysize": "1.96 GB",
16
+ "memoryfree": "1.87 GB",
17
+ "swapsize": "0.00 MB",
18
+ "swapfree": "0.00 MB",
19
+ "swapsize_mb": "0.00",
20
+ "swapfree_mb": "0.00",
21
+ "memorysize_mb": "2005.88",
22
+ "memoryfree_mb": "1913.86",
23
+ "filesystems": "btrfs,iso9660",
24
+ "fqdn": "server.example.com",
25
+ "rubysitedir": "/usr/lib/ruby/site_ruby/2.1.0",
26
+ "operatingsystem": "Archlinux",
27
+ "physicalprocessorcount": "1",
28
+ "osfamily": "Archlinux",
29
+ "uptime_days": 0,
30
+ "kernelrelease": "3.15.8-1-ARCH",
31
+ "path": "/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl",
32
+ "partitions": {
33
+ "sda1": {
34
+ "uuid": "bed7e3f5-b0a2-4927-bbc6-64719339363e",
35
+ "size": "1959867",
36
+ "mount": "/boot",
37
+ "filesystem": "btrfs"
38
+ },
39
+ "sda2": {
40
+ "uuid": "301b5da7-3236-4a9d-99f3-96d83fd8ce2d",
41
+ "size": "79960070",
42
+ "mount": "/",
43
+ "filesystem": "btrfs"
44
+ }
45
+ },
46
+ "uptime": "0:00 hours",
47
+ "macaddress": "08:00:27:1d:a6:f0",
48
+ "hardwaremodel": "x86_64",
49
+ "ipaddress": "10.0.2.15",
50
+ "puppetversion": "3.5.1",
51
+ "rubyversion": "2.1.2",
52
+ "virtual": "virtualbox",
53
+ "is_virtual": "true",
54
+ "uptime_hours": 0,
55
+ "hostname": "server",
56
+ "netmask": "255.255.255.0",
57
+ "id": "root",
58
+ "blockdevice_sda_size": 41943040000,
59
+ "blockdevice_sda_vendor": "ATA",
60
+ "blockdevice_sda_model": "VBOX HARDDISK",
61
+ "blockdevices": "sda",
62
+ "architecture": "x86_64",
63
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
64
+ "processor1": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
65
+ "processor2": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
66
+ "processor3": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
67
+ "processorcount": "4",
68
+ "uptime_seconds": 58,
69
+ "hardwareisa": "unknown",
70
+ "facterversion": "2.1.0",
71
+ "network_enp0s3": "10.0.2.0",
72
+ "network_lo": "127.0.0.0",
73
+ "kernelversion": "3.15.8",
74
+ "kernelmajversion": "3.15",
75
+ "operatingsystemrelease": "3.15.8-1-ARCH",
76
+ "uniqueid": "007f0100",
77
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAPGxpbusqHh6AfBf2t4jbD/eGTZKwedOel0jxGwjSBVUgXCZL/nC9Te10D2XrlU4it1wdEuFlxPikcBgjuzcBYNT57zedmTl74ds/zB7oXJOCHLQqhmbeUkSclYHmMrlk8319MNo2Waj7HUvPlr1kRc9YA4iEv5o2cBOtQS2Q5dzAAAAFQDSZBqLSOfutUfLoOvCjOwIKfEIVwAAAIEAwTaRYaXLNgNcR3MZba4DdPHMcEqneU75x+KWfM082fx0J2Nni/L97+fN3TcEyuHZNhGwwAbldj+PEkgq307KVwcgyxUYTZxOVn1Cpz0eHxfn3JJAIIFX4t4b57111rjtE6/tyqCMUaHdp2XkLhxxKNcDKmYV/bDWSRLUKfvix5cAAACAMMbKMq0fBPSIChf3T+cS9BKQWAxLx0Kk+6Ji/nuLHEsnT0zGkAbt9ExmngJl9GRDYpeYJbCU91cbO8XTu40uFphW5WHTKmwvKaca/6CjIJbEcdCZx927pRaNVLAI+l0WnN8cC8JDIV/B8Wkt/rUVG3kgR1LCy5nI+b79lTtJ1wI=",
78
+ "sshfp_dsa": "SSHFP 2 1 dc5ad1200f4d8d94281efb60ae6b5b9a212ed968\nSSHFP 2 2 5872c149ea4dfbbd9aaa4f9c732abaff734bd650f27e7c69787eaa8f8ba8ce8f",
79
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDlpQ6Zjf03JBL6FOZla9EGF0c/RJCB/F2YkK7UdEPHq21Tbe342U9Kw52Y9CPk3swikVAq96zE7ISwBk5SnXWNtu/sq93a9QSlL91/oD/FKBRD+xbv419oRvh5wLzeWoekLe1fbriNUlYgtTG0rhL/YsrQW0BnIcCjaNW8LY+qy4TYyTNgIIvGSmIJxhi98x55Uy0U1vPvIApUhOdSZIN/g5wmKSOWHUKuO7r9l64RhsdQtCvsS36CGAX2XzLh2a/NolVMPmH2/Vmm6p1GfinDp0qAn+xlEFlWrcW+oOsyIDwrBfh/4FAOLIgwVtGZtAuanCaH30hnlcVgKW6i1/J5",
80
+ "sshfp_rsa": "SSHFP 1 1 e75c79554da9d86a2b27d4e065cc810027790e35\nSSHFP 1 2 adc5781d6c22af820c54d123257527343e626eaa94e57738210c0f30240b1ea4",
81
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFvQioWxvT/xV/SrdSQ7NbXOOfBYGk8B1qcUG55OoGRCHHUadDMtXyDmvaKKrHFDCrh020udN8u1eiGTRW2LsUA=",
82
+ "sshfp_ecdsa": "SSHFP 3 1 78d1c09eb9645dd369fcc1b6c65dc40d3c6baefe\nSSHFP 3 2 679b5a69242d78756960f8cd91ba67db32600235bac742577bce3db19394c585",
83
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIGpj6cfmB8Z94SwDtShD62BPkeW1i9VSU/VuqBt93Q7E",
84
+ "sshfp_ed25519": "SSHFP 4 1 981bf136a4dd381bf38e506ca81d9631da9ff264\nSSHFP 4 2 61a92f79231f0ba581ac2fa9260d5d55a3ebcae1d00a03ebebb8f10ef093f6f9",
85
+ "fact_style": "stringified"
86
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "memorysize": "502.80 MB",
3
+ "kernel": "Linux",
4
+ "memoryfree": "422.55 MB",
5
+ "lsbminordistrelease": "11",
6
+ "interfaces": "eth0,lo,sit0",
7
+ "blockdevice_hda_size": 21474836480,
8
+ "mtu_sit0": "1480",
9
+ "hardwareisa": "i686",
10
+ "puppetversion": "3.7.1",
11
+ "manufacturer": "innotek GmbH",
12
+ "rubyversion": "1.8.7",
13
+ "bios_release_date": "12/01/2006",
14
+ "uptime_seconds": 75,
15
+ "sshfp_dsa": "SSHFP 2 1 237010d3311cf8d78e48ddfbe827e51fbff018b4\nSSHFP 2 2 830358fe4aac839ba2ee62e4407705759960e576297cb6eab60ba39a62cf1a4b",
16
+ "macaddress_eth0": "08:00:27:C2:AD:E0",
17
+ "mtu_lo": "16436",
18
+ "architecture": "i386",
19
+ "swapsize_mb": "1023.99",
20
+ "boardproductname": "VirtualBox",
21
+ "lsbdistcodename": "Final",
22
+ "processors": {
23
+ "count": 1,
24
+ "models": [
25
+ "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz"
26
+ ],
27
+ "physicalcount": 1
28
+ },
29
+ "type": "Other",
30
+ "id": "root",
31
+ "ipaddress_lo": "127.0.0.1",
32
+ "netmask": "255.255.255.0",
33
+ "ps": "ps -ef",
34
+ "lsbdistrelease": "5.11",
35
+ "operatingsystemmajrelease": "5",
36
+ "system_uptime": {
37
+ "days": 0,
38
+ "uptime": "0:01 hours",
39
+ "hours": 0,
40
+ "seconds": 75
41
+ },
42
+ "lsbrelease": ":core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch",
43
+ "lsbmajdistrelease": "5",
44
+ "filesystems": "ext2,ext3,iso9660",
45
+ "hostname": "server",
46
+ "network_lo": "127.0.0.0",
47
+ "hardwaremodel": "i686",
48
+ "physicalprocessorcount": "1",
49
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEAoKjd+Cbwy2mIji+PQiBriXtRfZPL6cUG9E1Xs4Q1yHIl9KajrdFE8fTK+8KUFEo5QNjGz+mIUNHO/Bl/T6qCj4PNJAt1E/lNk+R6WU2dtKcW0e3pHeYGZ772jPVw25w1qqbdv8gWenZY0AXowsh/4U7ZUz5Lg0ovUv94TuaVLNAAW1mFT9JlfNUqSvKEq0SAgLKBhTzzZwUk43SLN616U/uDlQcI+J1BUggk1Q/DKGFLtNQ5eLYH8spxGyq22BM1x3wouiQkydJ9b1WFAtgPm1zEiLXlCmS9M3KapZKPDVVi9gDO/xWOSHPeVOQRKnH53XDWxVM0v6c/pEkvyVH9Nw==",
50
+ "swapfree": "1023.99 MB",
51
+ "boardmanufacturer": "Oracle Corporation",
52
+ "kernelversion": "2.6.18",
53
+ "kernelrelease": "2.6.18-398.el5",
54
+ "serialnumber": "0",
55
+ "macaddress": "08:00:27:C2:AD:E0",
56
+ "memoryfree_mb": "422.55",
57
+ "network_eth0": "10.0.2.0",
58
+ "os": {
59
+ "family": "RedHat",
60
+ "release": {
61
+ "major": "5",
62
+ "full": "5.11",
63
+ "minor": "11"
64
+ },
65
+ "name": "CentOS",
66
+ "lsb": {
67
+ "release": ":core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch",
68
+ "distrelease": "5.11",
69
+ "majdistrelease": "5",
70
+ "distdescription": "CentOS release 5.11 (Final)",
71
+ "distcodename": "Final",
72
+ "minordistrelease": "11",
73
+ "distid": "CentOS"
74
+ }
75
+ },
76
+ "productname": "VirtualBox",
77
+ "boardserialnumber": "0",
78
+ "uuid": "D397932C-3389-4CAC-BF7C-8C4D842311C3",
79
+ "partitions": {
80
+ "hda2": {
81
+ "size": "41720805"
82
+ },
83
+ "hda1": {
84
+ "filesystem": "ext3",
85
+ "uuid": "44df8dab-b57e-4ff2-bc5f-53f7d09e2a07",
86
+ "size": "208782",
87
+ "mount": "/boot"
88
+ }
89
+ },
90
+ "virtual": "virtualbox",
91
+ "sshfp_rsa": "SSHFP 1 1 0bccb2926095b8c52a82a8f2f6a036d24b54e101\nSSHFP 1 2 5a0dc52067b2dc75a41c25b18094da723a7db2a574c81f577f570a67b149b39c",
92
+ "operatingsystemrelease": "5.11",
93
+ "ipaddress_eth0": "10.0.2.15",
94
+ "gid": "root",
95
+ "augeasversion": "1.1.0",
96
+ "netmask_lo": "255.0.0.0",
97
+ "lsbdistid": "CentOS",
98
+ "netmask_eth0": "255.255.255.0",
99
+ "swapfree_mb": "1023.99",
100
+ "operatingsystem": "CentOS",
101
+ "path": "/usr/kerberos/sbin:/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/root/bin",
102
+ "fqdn": "server.example.com",
103
+ "selinux": "false",
104
+ "is_virtual": "true",
105
+ "processorcount": "1",
106
+ "osfamily": "RedHat",
107
+ "domain": "example.com",
108
+ "memorysize_mb": "502.80",
109
+ "bios_vendor": "innotek GmbH",
110
+ "rubysitedir": "/usr/lib/ruby/site_ruby/1.8",
111
+ "uptime_days": 0,
112
+ "uniqueid": "007f0100",
113
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAPOrsxvbFtPGHVvN9NVdZDGlCg859snIxkET5WMqcl7L0YeU5+Ln9Q8wUJb9QAx2cC9X7LcRUHMVkO08KZGR64aq3oShConIIpyqIs+2kq6NDpwA7Ugdz4Pd6Jw+2Y9NP1gQQj9pVAkv1RRyt90j1EW2ud5umJ1TDmjkr342jNjTAAAAFQCMFy+5vmF2K4WNY60zKOCU1uqTuQAAAIB+V1hq5vglaxwvv5zJkdIIINe2LZizq5U+fmjg3OniROM2wTEyQXbl9naz9VE8d1t61FAEOHdyfZCGLmtKv5hsIL00TA2Mrm6jT5Nkqc85l2QTgtIx1X10rW1yp1ZlerGZ2LlxWa6huT+WeE3aB7qSqqJd8S19m/q3GlF2OrCuzgAAAIBiPPtuPwnkBPF94w90VkRbUO1PXVvM5S+o1CbnVWKKgNMXjsi6bSTMgZB+Imnmw9zHgIRD1CCsElKZodRPQOBmIQYX/izwnX8KsvzWhwelEjIVp1oh8Q7U1KSMaIAV9g4IYd2il8Bv4UkalxXZy16rJz+zLcrSRIW1cTk4fWHyKw==",
114
+ "uptime_hours": 0,
115
+ "uptime": "0:01 hours",
116
+ "timezone": "UTC",
117
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
118
+ "lsbdistdescription": "CentOS release 5.11 (Final)",
119
+ "bios_version": "VirtualBox",
120
+ "swapsize": "1023.99 MB",
121
+ "kernelmajversion": "2.6",
122
+ "ipaddress": "10.0.2.15",
123
+ "mtu_eth0": "1500",
124
+ "facterversion": "2.2.0",
125
+ "blockdevices": "hda",
126
+ "fact_style": "structured"
127
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "architecture": "i386",
3
+ "augeasversion": "1.1.0",
4
+ "kernel": "Linux",
5
+ "blockdevice_hda_size": 21474836480,
6
+ "blockdevices": "hda",
7
+ "domain": "example.com",
8
+ "macaddress": "08:00:27:5B:2D:E5",
9
+ "osfamily": "RedHat",
10
+ "operatingsystem": "CentOS",
11
+ "lsbdistid": "CentOS",
12
+ "facterversion": "1.7.5",
13
+ "filesystems": "ext2,ext3,iso9660",
14
+ "fqdn": "server.example.com",
15
+ "hardwareisa": "i686",
16
+ "hardwaremodel": "i686",
17
+ "hostname": "server",
18
+ "id": "root",
19
+ "interfaces": "eth0,lo,sit0",
20
+ "ipaddress_eth0": "10.0.2.15",
21
+ "macaddress_eth0": "08:00:27:5B:2D:E5",
22
+ "netmask_eth0": "255.255.255.0",
23
+ "mtu_eth0": "1500",
24
+ "ipaddress_lo": "127.0.0.1",
25
+ "netmask_lo": "255.0.0.0",
26
+ "mtu_lo": "16436",
27
+ "mtu_sit0": "1480",
28
+ "ipaddress": "10.0.2.15",
29
+ "kernelmajversion": "2.6",
30
+ "kernelrelease": "2.6.18-398.el5",
31
+ "kernelversion": "2.6.18",
32
+ "lsbdistcodename": "Final",
33
+ "lsbdistdescription": "CentOS release 5.11 (Final)",
34
+ "lsbdistrelease": "5.11",
35
+ "lsbmajdistrelease": "5",
36
+ "lsbrelease": ":core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch",
37
+ "boardmanufacturer": "Oracle Corporation",
38
+ "boardproductname": "VirtualBox",
39
+ "boardserialnumber": "0",
40
+ "bios_vendor": "innotek GmbH",
41
+ "bios_version": "VirtualBox",
42
+ "bios_release_date": "12/01/2006",
43
+ "manufacturer": "innotek GmbH",
44
+ "productname": "VirtualBox",
45
+ "serialnumber": "0",
46
+ "uuid": "DB6E418B-9D57-421A-A4A0-A44556867E1E",
47
+ "type": "Other",
48
+ "memorysize": "502.80 MB",
49
+ "memoryfree": "407.88 MB",
50
+ "swapsize": "1023.99 MB",
51
+ "swapfree": "1023.99 MB",
52
+ "swapsize_mb": "1023.99",
53
+ "swapfree_mb": "1023.99",
54
+ "memorysize_mb": "502.80",
55
+ "memoryfree_mb": "407.88",
56
+ "memorytotal": "502.80 MB",
57
+ "netmask": "255.255.255.0",
58
+ "network_eth0": "10.0.2.0",
59
+ "network_lo": "127.0.0.0",
60
+ "operatingsystemmajrelease": "5",
61
+ "operatingsystemrelease": "5.11",
62
+ "path": "/usr/kerberos/sbin:/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/root/bin",
63
+ "physicalprocessorcount": 1,
64
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
65
+ "processorcount": "1",
66
+ "ps": "ps -ef",
67
+ "puppetversion": "3.6.2 (Puppet Enterprise 3.3.2)",
68
+ "rubysitedir": "/opt/puppet/lib/ruby/site_ruby/1.9.1",
69
+ "rubyversion": "1.9.3",
70
+ "selinux": "false",
71
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAPOrsxvbFtPGHVvN9NVdZDGlCg859snIxkET5WMqcl7L0YeU5+Ln9Q8wUJb9QAx2cC9X7LcRUHMVkO08KZGR64aq3oShConIIpyqIs+2kq6NDpwA7Ugdz4Pd6Jw+2Y9NP1gQQj9pVAkv1RRyt90j1EW2ud5umJ1TDmjkr342jNjTAAAAFQCMFy+5vmF2K4WNY60zKOCU1uqTuQAAAIB+V1hq5vglaxwvv5zJkdIIINe2LZizq5U+fmjg3OniROM2wTEyQXbl9naz9VE8d1t61FAEOHdyfZCGLmtKv5hsIL00TA2Mrm6jT5Nkqc85l2QTgtIx1X10rW1yp1ZlerGZ2LlxWa6huT+WeE3aB7qSqqJd8S19m/q3GlF2OrCuzgAAAIBiPPtuPwnkBPF94w90VkRbUO1PXVvM5S+o1CbnVWKKgNMXjsi6bSTMgZB+Imnmw9zHgIRD1CCsElKZodRPQOBmIQYX/izwnX8KsvzWhwelEjIVp1oh8Q7U1KSMaIAV9g4IYd2il8Bv4UkalxXZy16rJz+zLcrSRIW1cTk4fWHyKw==",
72
+ "sshfp_dsa": "SSHFP 2 1 237010d3311cf8d78e48ddfbe827e51fbff018b4\nSSHFP 2 2 830358fe4aac839ba2ee62e4407705759960e576297cb6eab60ba39a62cf1a4b",
73
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEAoKjd+Cbwy2mIji+PQiBriXtRfZPL6cUG9E1Xs4Q1yHIl9KajrdFE8fTK+8KUFEo5QNjGz+mIUNHO/Bl/T6qCj4PNJAt1E/lNk+R6WU2dtKcW0e3pHeYGZ772jPVw25w1qqbdv8gWenZY0AXowsh/4U7ZUz5Lg0ovUv94TuaVLNAAW1mFT9JlfNUqSvKEq0SAgLKBhTzzZwUk43SLN616U/uDlQcI+J1BUggk1Q/DKGFLtNQ5eLYH8spxGyq22BM1x3wouiQkydJ9b1WFAtgPm1zEiLXlCmS9M3KapZKPDVVi9gDO/xWOSHPeVOQRKnH53XDWxVM0v6c/pEkvyVH9Nw==",
74
+ "sshfp_rsa": "SSHFP 1 1 0bccb2926095b8c52a82a8f2f6a036d24b54e101\nSSHFP 1 2 5a0dc52067b2dc75a41c25b18094da723a7db2a574c81f577f570a67b149b39c",
75
+ "timezone": "UTC",
76
+ "uniqueid": "007f0100",
77
+ "uptime": "0:01 hours",
78
+ "uptime_days": 0,
79
+ "uptime_hours": 0,
80
+ "uptime_seconds": 75,
81
+ "virtual": "virtualbox",
82
+ "is_virtual": "true",
83
+ "fact_style": "stringified"
84
+ }