facterdb 1.25.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +129 -148
- data/Rakefile +2 -0
- data/facts/3.14/almalinux-8-x86_64.facts +97 -117
- data/facts/3.14/almalinux-9-x86_64.facts +231 -106
- data/facts/3.14/centos-9-x86_64.facts +167 -87
- data/facts/3.14/debian-11-x86_64.facts +109 -123
- data/facts/3.14/redhat-8-x86_64.facts +230 -100
- data/facts/3.14/redhat-9-x86_64.facts +594 -0
- data/facts/3.14/rocky-9-x86_64.facts +155 -94
- data/facts/3.14/ubuntu-22.04-x86_64.facts +147 -146
- data/facts/4.0/redhat-8-x86_64.facts +0 -0
- data/facts/4.1/redhat-8-x86_64.facts +0 -0
- data/facts/4.2/almalinux-8-x86_64.facts +114 -133
- data/facts/4.2/almalinux-9-x86_64.facts +245 -121
- data/facts/4.2/centos-8-x86_64.facts +108 -178
- data/facts/4.2/centos-9-x86_64.facts +428 -146
- data/facts/4.2/debian-11-x86_64.facts +116 -127
- data/facts/4.2/fedora-34-x86_64.facts +0 -0
- data/facts/4.2/redhat-8-x86_64.facts +59 -59
- data/facts/4.2/redhat-9-x86_64.facts +62 -62
- data/facts/4.2/rocky-9-x86_64.facts +169 -108
- data/facts/4.2/ubuntu-22.04-x86_64.facts +141 -150
- data/facts/4.3/almalinux-8-x86_64.facts +105 -125
- data/facts/4.3/almalinux-9-x86_64.facts +238 -114
- data/facts/4.3/centos-8-x86_64.facts +87 -87
- data/facts/4.3/centos-9-x86_64.facts +102 -82
- data/facts/4.3/debian-11-x86_64.facts +110 -122
- data/facts/4.3/redhat-8-x86_64.facts +52 -52
- data/facts/4.3/redhat-9-x86_64.facts +56 -56
- data/facts/4.3/rocky-9-x86_64.facts +161 -100
- data/facts/4.3/ubuntu-22.04-x86_64.facts +131 -141
- data/facts/4.3/windows-10-x86_64.facts +107 -62
- data/facts/4.3/windows-11-x86_64.facts +116 -71
- data/facts/4.3/windows-2019-x86_64.facts +108 -64
- data/facts/4.3/windows-2022-x86_64.facts +106 -62
- data/facts/4.4/almalinux-8-x86_64.facts +108 -128
- data/facts/4.4/almalinux-9-x86_64.facts +241 -117
- data/facts/4.4/centos-8-x86_64.facts +90 -90
- data/facts/4.4/centos-9-x86_64.facts +105 -85
- data/facts/4.4/debian-11-x86_64.facts +113 -125
- data/facts/4.4/redhat-8-x86_64.facts +55 -55
- data/facts/4.4/redhat-9-x86_64.facts +58 -58
- data/facts/4.4/rocky-9-x86_64.facts +162 -101
- data/facts/4.4/ubuntu-22.04-x86_64.facts +134 -144
- data/facts/4.4/windows-10-x86_64.facts +107 -62
- data/facts/4.4/windows-11-x86_64.facts +115 -74
- data/facts/4.4/windows-2019-x86_64.facts +108 -64
- data/facts/4.4/windows-2022-x86_64.facts +108 -64
- data/facts/4.5/almalinux-8-x86_64.facts +105 -105
- data/facts/4.5/almalinux-9-x86_64.facts +238 -116
- data/facts/4.5/centos-8-x86_64.facts +93 -93
- data/facts/4.5/centos-9-x86_64.facts +108 -90
- data/facts/4.5/debian-11-x86_64.facts +114 -128
- data/facts/4.5/debian-12-x86_64.facts +122 -121
- data/facts/4.5/redhat-8-x86_64.facts +52 -52
- data/facts/4.5/redhat-9-x86_64.facts +55 -55
- data/facts/4.5/rocky-9-x86_64.facts +167 -106
- data/facts/4.5/ubuntu-22.04-x86_64.facts +135 -145
- data/facts/4.6/almalinux-8-x86_64.facts +539 -0
- data/facts/4.6/almalinux-9-x86_64.facts +657 -0
- data/facts/4.6/centos-8-x86_64.facts +529 -0
- data/facts/4.6/centos-9-x86_64.facts +593 -0
- data/facts/4.6/debian-11-x86_64.facts +517 -0
- data/facts/4.6/debian-12-x86_64.facts +598 -0
- data/facts/4.6/redhat-8-x86_64.facts +52 -52
- data/facts/4.6/redhat-9-x86_64.facts +55 -55
- data/facts/4.6/rocky-9-x86_64.facts +695 -0
- data/facts/4.6/ubuntu-22.04-x86_64.facts +653 -0
- data/facts/4.6/windows-10-x86_64.facts +227 -0
- data/facts/4.6/windows-11-x86_64.facts +227 -0
- data/facts/4.6/windows-2019-x86_64.facts +225 -0
- data/facts/4.6/windows-2022-x86_64.facts +227 -0
- data/facts/4.7/almalinux-8-x86_64.facts +539 -0
- data/facts/4.7/almalinux-9-x86_64.facts +657 -0
- data/facts/4.7/centos-8-x86_64.facts +529 -0
- data/facts/4.7/centos-9-x86_64.facts +593 -0
- data/facts/4.7/debian-11-x86_64.facts +517 -0
- data/facts/4.7/debian-12-x86_64.facts +598 -0
- data/facts/4.7/redhat-8-x86_64.facts +580 -0
- data/facts/4.7/redhat-9-x86_64.facts +631 -0
- data/facts/4.7/rocky-9-x86_64.facts +695 -0
- data/facts/4.7/ubuntu-22.04-x86_64.facts +653 -0
- data/facts/4.7/windows-10-x86_64.facts +227 -0
- data/facts/4.7/windows-11-x86_64.facts +227 -0
- data/facts/4.7/windows-2019-x86_64.facts +225 -0
- data/facts/4.7/windows-2022-x86_64.facts +227 -0
- data/facts/README.md +101 -0
- data/facts/Vagrantfile +31 -14
- data/facts/get_facts.sh +11 -17
- data/facts/windows_get_facts.ps1 +51 -13
- data/lib/facterdb/version.rb +1 -1
- metadata +30 -3
- data/facts/Windows_README.md +0 -11
@@ -0,0 +1,225 @@
|
|
1
|
+
{
|
2
|
+
"aio_agent_version": "8.6.0",
|
3
|
+
"architecture": "x64",
|
4
|
+
"dhcp_servers": {
|
5
|
+
"Ethernet": "10.0.2.2",
|
6
|
+
"system": "10.0.2.2"
|
7
|
+
},
|
8
|
+
"dmi": {
|
9
|
+
"manufacturer": "innotek GmbH",
|
10
|
+
"product": {
|
11
|
+
"name": "VirtualBox",
|
12
|
+
"serial_number": "0",
|
13
|
+
"uuid": "D30E43A8-C27A-4EA3-8C40-808DDE5CE052"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"domain": "example.com",
|
17
|
+
"env_windows_installdir": "C:\\Program Files\\Puppet Labs\\Puppet",
|
18
|
+
"facterversion": "4.7.0",
|
19
|
+
"fips_enabled": false,
|
20
|
+
"fqdn": "foo.example.com",
|
21
|
+
"hardwareisa": "x64",
|
22
|
+
"hardwaremodel": "x86_64",
|
23
|
+
"hostname": "foo",
|
24
|
+
"hypervisors": {
|
25
|
+
"virtualbox": {
|
26
|
+
"revision": "161095",
|
27
|
+
"version": "7.0.14"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"id": "FOO\\vagrant",
|
31
|
+
"identity": {
|
32
|
+
"privileged": true,
|
33
|
+
"user": "FOO\\vagrant"
|
34
|
+
},
|
35
|
+
"interfaces": "Ethernet",
|
36
|
+
"ipaddress": "10.0.2.15",
|
37
|
+
"ipaddress6": "fe80::5156:1072:2404:1e7f",
|
38
|
+
"ipaddress6_Ethernet": "fe80::5156:1072:2404:1e7f",
|
39
|
+
"ipaddress_Ethernet": "10.0.2.15",
|
40
|
+
"is_virtual": true,
|
41
|
+
"kernel": "windows",
|
42
|
+
"kernelmajversion": "10.0",
|
43
|
+
"kernelrelease": "10.0.17763",
|
44
|
+
"kernelversion": "10.0.17763",
|
45
|
+
"macaddress": "08:00:27:E5:87:1C",
|
46
|
+
"macaddress_Ethernet": "08:00:27:E5:87:1C",
|
47
|
+
"manufacturer": "innotek GmbH",
|
48
|
+
"memory": {
|
49
|
+
"system": {
|
50
|
+
"available": "1018.89 MiB",
|
51
|
+
"available_bytes": 1068388352,
|
52
|
+
"capacity": "49.85%",
|
53
|
+
"total": "1.98 GiB",
|
54
|
+
"total_bytes": 2130382848,
|
55
|
+
"used": "1012.80 MiB",
|
56
|
+
"used_bytes": 1061994496
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"memoryfree": "1018.89 MiB",
|
60
|
+
"memoryfree_mb": 1018.89453125,
|
61
|
+
"memorysize": "1.98 GiB",
|
62
|
+
"memorysize_mb": 2031.69140625,
|
63
|
+
"mtu_Ethernet": 1500,
|
64
|
+
"netmask": "255.255.255.0",
|
65
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
66
|
+
"netmask6_Ethernet": "ffff:ffff:ffff:ffff::",
|
67
|
+
"netmask_Ethernet": "255.255.255.0",
|
68
|
+
"network": "10.0.2.0",
|
69
|
+
"network6": "fe80::",
|
70
|
+
"network6_Ethernet": "fe80::",
|
71
|
+
"network_Ethernet": "10.0.2.0",
|
72
|
+
"networking": {
|
73
|
+
"dhcp": "10.0.2.2",
|
74
|
+
"domain": "example.com",
|
75
|
+
"fqdn": "foo.example.com",
|
76
|
+
"hostname": "foo",
|
77
|
+
"interfaces": {
|
78
|
+
"Ethernet": {
|
79
|
+
"bindings": [
|
80
|
+
{
|
81
|
+
"address": "10.0.2.15",
|
82
|
+
"netmask": "255.255.255.0",
|
83
|
+
"network": "10.0.2.0"
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"bindings6": [
|
87
|
+
{
|
88
|
+
"address": "fe80::5156:1072:2404:1e7f",
|
89
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
90
|
+
"network": "fe80::",
|
91
|
+
"scope6": "link"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"dhcp": "10.0.2.2",
|
95
|
+
"ip": "10.0.2.15",
|
96
|
+
"ip6": "fe80::5156:1072:2404:1e7f",
|
97
|
+
"mac": "08:00:27:E5:87:1C",
|
98
|
+
"mtu": 1500,
|
99
|
+
"netmask": "255.255.255.0",
|
100
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
101
|
+
"network": "10.0.2.0",
|
102
|
+
"network6": "fe80::",
|
103
|
+
"scope6": "link"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"ip": "10.0.2.15",
|
107
|
+
"ip6": "fe80::5156:1072:2404:1e7f",
|
108
|
+
"mac": "08:00:27:E5:87:1C",
|
109
|
+
"mtu": 1500,
|
110
|
+
"netmask": "255.255.255.0",
|
111
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
112
|
+
"network": "10.0.2.0",
|
113
|
+
"network6": "fe80::",
|
114
|
+
"primary": "Ethernet",
|
115
|
+
"scope6": "link"
|
116
|
+
},
|
117
|
+
"operatingsystem": "windows",
|
118
|
+
"operatingsystemmajrelease": "2019",
|
119
|
+
"operatingsystemrelease": "2019",
|
120
|
+
"os": {
|
121
|
+
"architecture": "x64",
|
122
|
+
"family": "windows",
|
123
|
+
"hardware": "x86_64",
|
124
|
+
"name": "windows",
|
125
|
+
"release": {
|
126
|
+
"full": "2019",
|
127
|
+
"major": "2019"
|
128
|
+
},
|
129
|
+
"windows": {
|
130
|
+
"edition_id": "ServerStandardEval",
|
131
|
+
"installation_type": "Server Core",
|
132
|
+
"product_name": "Windows Server 2019 Standard Evaluation",
|
133
|
+
"release_id": "1809",
|
134
|
+
"system32": "C:\\Windows\\system32"
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"osfamily": "windows",
|
138
|
+
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\OpenSSH-Win64;C:\\Users\\vagrant\\AppData\\Local\\Microsoft\\WindowsApps",
|
139
|
+
"physicalprocessorcount": 1,
|
140
|
+
"processor0": "Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz",
|
141
|
+
"processorcount": 2,
|
142
|
+
"processors": {
|
143
|
+
"cores": 2,
|
144
|
+
"count": 2,
|
145
|
+
"isa": "x64",
|
146
|
+
"models": [
|
147
|
+
"Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz"
|
148
|
+
],
|
149
|
+
"physicalcount": 1,
|
150
|
+
"threads": 1
|
151
|
+
},
|
152
|
+
"productname": "VirtualBox",
|
153
|
+
"puppetversion": "8.6.0",
|
154
|
+
"ruby": {
|
155
|
+
"platform": "x64-mingw32",
|
156
|
+
"sitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
157
|
+
"version": "3.2.3"
|
158
|
+
},
|
159
|
+
"rubyplatform": "x64-mingw32",
|
160
|
+
"rubysitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
161
|
+
"rubyversion": "3.2.3",
|
162
|
+
"scope6": "link",
|
163
|
+
"scope6_Ethernet": "link",
|
164
|
+
"serialnumber": "0",
|
165
|
+
"ssh": {
|
166
|
+
"dsa": {
|
167
|
+
"fingerprints": {
|
168
|
+
"sha1": "SSHFP 2 1 da3d3724f7f8b0e3ab30ca7349ef9efda8eb0319",
|
169
|
+
"sha256": "SSHFP 2 2 55c4b06c901fd0e622352214f4a9a34dcf36ab4652af57409c3651b1ada25ca2"
|
170
|
+
},
|
171
|
+
"key": "AAAAB3NzaC1kc3MAAACBANLeFfA0TRjCj9OMRJzRljDStUT5inisMSIDkh65OpEisy01gojpnoDwBZH31C+msB9qKHfwaLkoooemdigu7hvHwx82l87mwx7OfJ41IIx7z9QuZQF/v0NJ9eRDamVScg8i6raw7hZXA+nN4xWbGGbnVjncyOxFZ4nsg09WnyzzAAAAFQCJcNeQH8d8/CdsdJfdGbXF4oEjRwAAAIBDvwu4h5JU8IhZEgXAtvBe0O+p8RoXu7+myR6itehHyo8bKgAHOdH/pGvYffItiBX+5uMphJ2aBAV25ziR1HTc6cllpxNVc92cx+hspb4sjSWMBLLC2k0qB+DUMtIsYv4koQXtOkc723aKSTDt6rTpOsKz74KoH2AEChekgBX/DQAAAIBbWLobKbZEIEudV2UfssezAm/4QaFFMukcozX/kHjtjJXVIzukHr4FwpBjOVcHMggyDB58oVtW9DurJkArqO4SMMChP0EW724bLGVN1rpQPYD5PoCB3WMKSW9C4aoWdh6tQOFWBPAeD0rm5qAAtdGohGWSnQXjeUTlHSlb4V7BWw==",
|
172
|
+
"type": "ssh-dss"
|
173
|
+
},
|
174
|
+
"ecdsa": {
|
175
|
+
"fingerprints": {
|
176
|
+
"sha1": "SSHFP 3 1 a4cebde0c5367b32b31e3dd6597c88aa20bb139c",
|
177
|
+
"sha256": "SSHFP 3 2 a999e89c223d66265c6baa4a835b946d0862a7d2e0243f57803fd4478dc794e0"
|
178
|
+
},
|
179
|
+
"key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJxt8oDeYlVoO5UREubI3+tcoLyWkPeWptxMLYMyVYTVK9i68m0246r/KmteLyD3DN2rnZyV6YZ3IjdfgBDkHR4=",
|
180
|
+
"type": "ecdsa-sha2-nistp256"
|
181
|
+
},
|
182
|
+
"ed25519": {
|
183
|
+
"fingerprints": {
|
184
|
+
"sha1": "SSHFP 4 1 9f196515ee27ca6ccee218024bfeb5b0a99d7812",
|
185
|
+
"sha256": "SSHFP 4 2 427cf51cb6b2a4f5eea42a9b26c761b443b9c4dff2218b24128525d2de39fe74"
|
186
|
+
},
|
187
|
+
"key": "AAAAC3NzaC1lZDI1NTE5AAAAIDo2aL7+qAqwoih5z11JEsJg16mCMNEWnG9QFOHgA3l0",
|
188
|
+
"type": "ssh-ed25519"
|
189
|
+
},
|
190
|
+
"rsa": {
|
191
|
+
"fingerprints": {
|
192
|
+
"sha1": "SSHFP 1 1 3596c7925dde9b4364b40ad238a04c8818100f3d",
|
193
|
+
"sha256": "SSHFP 1 2 f5085e8839097058fb84b33775337f2de0d77df772765907e697e2d7f5b4e32b"
|
194
|
+
},
|
195
|
+
"key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC/gv55+SwnN/BrQPIUXbVGip65xZA3RnbyxFe5wKxHxkmfWsPNhuojDOFLpwKKU1ugNPNuTIChGkI0FyQYU1Ch4Sn4/zk5WN6JMdCP62L/nOMu8LuyTQbzJJyhIhC1r3/kfY2OyrVolZBCCmoSdSFSh39VwapMmcrizMALc3r1g9uLjBP/PZcgffWODA04c5GhX8KAEKQbNGbCXRvI56wHQjmM8QG53we4BfBsQoDyV7O/zU1Xl4ofvfIDWTYWpbOFNHfA4/FvjwaqekWIU4cFoenX+6xi7gzUgXRalYQmA5VZcw/Lo5YExMi2CSkQyUxdjbV9WSGcVgFuBaNRPvbwgPSLZx7+tlsaDh/5hZcVTb9n2siHyi9bX6V3gcIZ0f9evo2lNOi59bZ5bxcI/yttZ9/oz1gRqiwbR9ABq0/u01tjZbvBp8REwffnAQcWWlCj8bpsoSSM5Tgvd14sJ1Ajy88IjZ3MWvZkEWDxiZOWRmh2azL/qWXrdbPI2gudJHk=",
|
196
|
+
"type": "ssh-rsa"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"sshdsakey": "AAAAB3NzaC1kc3MAAACBANLeFfA0TRjCj9OMRJzRljDStUT5inisMSIDkh65OpEisy01gojpnoDwBZH31C+msB9qKHfwaLkoooemdigu7hvHwx82l87mwx7OfJ41IIx7z9QuZQF/v0NJ9eRDamVScg8i6raw7hZXA+nN4xWbGGbnVjncyOxFZ4nsg09WnyzzAAAAFQCJcNeQH8d8/CdsdJfdGbXF4oEjRwAAAIBDvwu4h5JU8IhZEgXAtvBe0O+p8RoXu7+myR6itehHyo8bKgAHOdH/pGvYffItiBX+5uMphJ2aBAV25ziR1HTc6cllpxNVc92cx+hspb4sjSWMBLLC2k0qB+DUMtIsYv4koQXtOkc723aKSTDt6rTpOsKz74KoH2AEChekgBX/DQAAAIBbWLobKbZEIEudV2UfssezAm/4QaFFMukcozX/kHjtjJXVIzukHr4FwpBjOVcHMggyDB58oVtW9DurJkArqO4SMMChP0EW724bLGVN1rpQPYD5PoCB3WMKSW9C4aoWdh6tQOFWBPAeD0rm5qAAtdGohGWSnQXjeUTlHSlb4V7BWw==",
|
200
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJxt8oDeYlVoO5UREubI3+tcoLyWkPeWptxMLYMyVYTVK9i68m0246r/KmteLyD3DN2rnZyV6YZ3IjdfgBDkHR4=",
|
201
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIDo2aL7+qAqwoih5z11JEsJg16mCMNEWnG9QFOHgA3l0",
|
202
|
+
"sshfp_dsa": "SSHFP 2 1 da3d3724f7f8b0e3ab30ca7349ef9efda8eb0319\nSSHFP 2 2 55c4b06c901fd0e622352214f4a9a34dcf36ab4652af57409c3651b1ada25ca2",
|
203
|
+
"sshfp_ecdsa": "SSHFP 3 1 a4cebde0c5367b32b31e3dd6597c88aa20bb139c\nSSHFP 3 2 a999e89c223d66265c6baa4a835b946d0862a7d2e0243f57803fd4478dc794e0",
|
204
|
+
"sshfp_ed25519": "SSHFP 4 1 9f196515ee27ca6ccee218024bfeb5b0a99d7812\nSSHFP 4 2 427cf51cb6b2a4f5eea42a9b26c761b443b9c4dff2218b24128525d2de39fe74",
|
205
|
+
"sshfp_rsa": "SSHFP 1 1 3596c7925dde9b4364b40ad238a04c8818100f3d\nSSHFP 1 2 f5085e8839097058fb84b33775337f2de0d77df772765907e697e2d7f5b4e32b",
|
206
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC/gv55+SwnN/BrQPIUXbVGip65xZA3RnbyxFe5wKxHxkmfWsPNhuojDOFLpwKKU1ugNPNuTIChGkI0FyQYU1Ch4Sn4/zk5WN6JMdCP62L/nOMu8LuyTQbzJJyhIhC1r3/kfY2OyrVolZBCCmoSdSFSh39VwapMmcrizMALc3r1g9uLjBP/PZcgffWODA04c5GhX8KAEKQbNGbCXRvI56wHQjmM8QG53we4BfBsQoDyV7O/zU1Xl4ofvfIDWTYWpbOFNHfA4/FvjwaqekWIU4cFoenX+6xi7gzUgXRalYQmA5VZcw/Lo5YExMi2CSkQyUxdjbV9WSGcVgFuBaNRPvbwgPSLZx7+tlsaDh/5hZcVTb9n2siHyi9bX6V3gcIZ0f9evo2lNOi59bZ5bxcI/yttZ9/oz1gRqiwbR9ABq0/u01tjZbvBp8REwffnAQcWWlCj8bpsoSSM5Tgvd14sJ1Ajy88IjZ3MWvZkEWDxiZOWRmh2azL/qWXrdbPI2gudJHk=",
|
207
|
+
"system32": "C:\\Windows\\system32",
|
208
|
+
"system_uptime": {
|
209
|
+
"days": 0,
|
210
|
+
"hours": 0,
|
211
|
+
"seconds": 377,
|
212
|
+
"uptime": "0:06 hours"
|
213
|
+
},
|
214
|
+
"timezone": "Coordinated Universal Time",
|
215
|
+
"uptime": "0:06 hours",
|
216
|
+
"uptime_days": 0,
|
217
|
+
"uptime_hours": 0,
|
218
|
+
"uptime_seconds": 377,
|
219
|
+
"uuid": "D30E43A8-C27A-4EA3-8C40-808DDE5CE052",
|
220
|
+
"virtual": "virtualbox",
|
221
|
+
"windows_edition_id": "ServerStandardEval",
|
222
|
+
"windows_installation_type": "Server Core",
|
223
|
+
"windows_product_name": "Windows Server 2019 Standard Evaluation",
|
224
|
+
"windows_release_id": "1809"
|
225
|
+
}
|
@@ -0,0 +1,227 @@
|
|
1
|
+
{
|
2
|
+
"aio_agent_version": "8.6.0",
|
3
|
+
"architecture": "x64",
|
4
|
+
"dhcp_servers": {
|
5
|
+
"Ethernet": "10.0.2.2",
|
6
|
+
"system": "10.0.2.2"
|
7
|
+
},
|
8
|
+
"dmi": {
|
9
|
+
"manufacturer": "innotek GmbH",
|
10
|
+
"product": {
|
11
|
+
"name": "VirtualBox",
|
12
|
+
"serial_number": "0",
|
13
|
+
"uuid": "F2FE13B6-2E77-4300-B709-3654FF7B6063"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"domain": "example.com",
|
17
|
+
"env_windows_installdir": "C:\\Program Files\\Puppet Labs\\Puppet",
|
18
|
+
"facterversion": "4.7.0",
|
19
|
+
"fips_enabled": false,
|
20
|
+
"fqdn": "foo.example.com",
|
21
|
+
"hardwareisa": "x64",
|
22
|
+
"hardwaremodel": "x86_64",
|
23
|
+
"hostname": "foo",
|
24
|
+
"hypervisors": {
|
25
|
+
"virtualbox": {
|
26
|
+
"revision": "161095",
|
27
|
+
"version": "7.0.14"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"id": "FOO\\vagrant",
|
31
|
+
"identity": {
|
32
|
+
"privileged": true,
|
33
|
+
"user": "FOO\\vagrant"
|
34
|
+
},
|
35
|
+
"interfaces": "Ethernet",
|
36
|
+
"ipaddress": "10.0.2.15",
|
37
|
+
"ipaddress6": "fe80::8d97:e947:bec7:8686",
|
38
|
+
"ipaddress6_Ethernet": "fe80::8d97:e947:bec7:8686",
|
39
|
+
"ipaddress_Ethernet": "10.0.2.15",
|
40
|
+
"is_virtual": true,
|
41
|
+
"kernel": "windows",
|
42
|
+
"kernelmajversion": "10.0",
|
43
|
+
"kernelrelease": "10.0.20348",
|
44
|
+
"kernelversion": "10.0.20348",
|
45
|
+
"macaddress": "08:00:27:E7:59:F0",
|
46
|
+
"macaddress_Ethernet": "08:00:27:E7:59:F0",
|
47
|
+
"manufacturer": "innotek GmbH",
|
48
|
+
"memory": {
|
49
|
+
"system": {
|
50
|
+
"available": "957.90 MiB",
|
51
|
+
"available_bytes": 1004429312,
|
52
|
+
"capacity": "52.85%",
|
53
|
+
"total": "1.98 GiB",
|
54
|
+
"total_bytes": 2130382848,
|
55
|
+
"used": "1.05 GiB",
|
56
|
+
"used_bytes": 1125953536
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"memoryfree": "957.90 MiB",
|
60
|
+
"memoryfree_mb": 957.8984375,
|
61
|
+
"memorysize": "1.98 GiB",
|
62
|
+
"memorysize_mb": 2031.69140625,
|
63
|
+
"mtu_Ethernet": 1500,
|
64
|
+
"netmask": "255.255.255.0",
|
65
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
66
|
+
"netmask6_Ethernet": "ffff:ffff:ffff:ffff::",
|
67
|
+
"netmask_Ethernet": "255.255.255.0",
|
68
|
+
"network": "10.0.2.0",
|
69
|
+
"network6": "fe80::",
|
70
|
+
"network6_Ethernet": "fe80::",
|
71
|
+
"network_Ethernet": "10.0.2.0",
|
72
|
+
"networking": {
|
73
|
+
"dhcp": "10.0.2.2",
|
74
|
+
"domain": "example.com",
|
75
|
+
"fqdn": "foo.example.com",
|
76
|
+
"hostname": "foo",
|
77
|
+
"interfaces": {
|
78
|
+
"Ethernet": {
|
79
|
+
"bindings": [
|
80
|
+
{
|
81
|
+
"address": "10.0.2.15",
|
82
|
+
"netmask": "255.255.255.0",
|
83
|
+
"network": "10.0.2.0"
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"bindings6": [
|
87
|
+
{
|
88
|
+
"address": "fe80::8d97:e947:bec7:8686",
|
89
|
+
"netmask": "ffff:ffff:ffff:ffff::",
|
90
|
+
"network": "fe80::",
|
91
|
+
"scope6": "link"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"dhcp": "10.0.2.2",
|
95
|
+
"ip": "10.0.2.15",
|
96
|
+
"ip6": "fe80::8d97:e947:bec7:8686",
|
97
|
+
"mac": "08:00:27:E7:59:F0",
|
98
|
+
"mtu": 1500,
|
99
|
+
"netmask": "255.255.255.0",
|
100
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
101
|
+
"network": "10.0.2.0",
|
102
|
+
"network6": "fe80::",
|
103
|
+
"scope6": "link"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"ip": "10.0.2.15",
|
107
|
+
"ip6": "fe80::8d97:e947:bec7:8686",
|
108
|
+
"mac": "08:00:27:E7:59:F0",
|
109
|
+
"mtu": 1500,
|
110
|
+
"netmask": "255.255.255.0",
|
111
|
+
"netmask6": "ffff:ffff:ffff:ffff::",
|
112
|
+
"network": "10.0.2.0",
|
113
|
+
"network6": "fe80::",
|
114
|
+
"primary": "Ethernet",
|
115
|
+
"scope6": "link"
|
116
|
+
},
|
117
|
+
"operatingsystem": "windows",
|
118
|
+
"operatingsystemmajrelease": "2022",
|
119
|
+
"operatingsystemrelease": "2022",
|
120
|
+
"os": {
|
121
|
+
"architecture": "x64",
|
122
|
+
"family": "windows",
|
123
|
+
"hardware": "x86_64",
|
124
|
+
"name": "windows",
|
125
|
+
"release": {
|
126
|
+
"full": "2022",
|
127
|
+
"major": "2022"
|
128
|
+
},
|
129
|
+
"windows": {
|
130
|
+
"display_version": "21H2",
|
131
|
+
"edition_id": "ServerStandardEval",
|
132
|
+
"installation_type": "Server Core",
|
133
|
+
"product_name": "Windows Server 2022 Standard Evaluation",
|
134
|
+
"release_id": "21H2",
|
135
|
+
"system32": "C:\\Windows\\system32"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"osfamily": "windows",
|
139
|
+
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\OpenSSH-Win64;C:\\Users\\vagrant\\AppData\\Local\\Microsoft\\WindowsApps",
|
140
|
+
"physicalprocessorcount": 1,
|
141
|
+
"processor0": "Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz",
|
142
|
+
"processorcount": 2,
|
143
|
+
"processors": {
|
144
|
+
"cores": 2,
|
145
|
+
"count": 2,
|
146
|
+
"isa": "x64",
|
147
|
+
"models": [
|
148
|
+
"Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz"
|
149
|
+
],
|
150
|
+
"physicalcount": 1,
|
151
|
+
"threads": 1
|
152
|
+
},
|
153
|
+
"productname": "VirtualBox",
|
154
|
+
"puppetversion": "8.6.0",
|
155
|
+
"ruby": {
|
156
|
+
"platform": "x64-mingw32",
|
157
|
+
"sitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
158
|
+
"version": "3.2.3"
|
159
|
+
},
|
160
|
+
"rubyplatform": "x64-mingw32",
|
161
|
+
"rubysitedir": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/3.2.0",
|
162
|
+
"rubyversion": "3.2.3",
|
163
|
+
"scope6": "link",
|
164
|
+
"scope6_Ethernet": "link",
|
165
|
+
"serialnumber": "0",
|
166
|
+
"ssh": {
|
167
|
+
"dsa": {
|
168
|
+
"fingerprints": {
|
169
|
+
"sha1": "SSHFP 2 1 2cbf142ec3e5298f32eb0fcccf139ce09d42e534",
|
170
|
+
"sha256": "SSHFP 2 2 7c39b6025bf87f7828dac9370dc4374061fa9b643e1fdcaf86ba55cea66b831a"
|
171
|
+
},
|
172
|
+
"key": "AAAAB3NzaC1kc3MAAACBAOmczeAhgWVjwzCJYyJ38DOE98Xiaw45rmEULqbq6c2iy9YgTEp2DRl/AmOQNosKg1+e/DtrHgqWdIHQplipyOCd6wbJ131Z3PgmMcJqy4XAyhZcaa2wkHdUic0P+7qD1HengkIgquuizJzPKnX1klM2e1QgUeuXZT/ULRW9vI8NAAAAFQD/jjjBCL+7QwI+8iQYAKtp5rW/dwAAAIEAsVXIkqYxA9PgeklIXuchjvTsIAnzFeixSa5p51xCTDBll91QEFX3OtzK3Vp2puJDXBvwymuPnBCaW31AepDnWv4m3YmFWd3s6ZIp8qPbi1UfhkoIH11gwcz4kQT5h6gBbA717d+1DAAw9W6174Ju1dKdoqg86ZNtA5QfgBZ06xwAAACBANZ1rECCGE2HVWbxDBHf6mAv5yoBRNUbPWQ3DYM5qLdYhqPCFmcRdaxIjOtCuqutviphOYEdEWY//jR86GkPGJZeK5Sg6+ol0eZTDNox933GeNuuLTg57F77ODTfeEpYgPNTlklG+MI/V0xjpgiaN+aqfyCmPUh6X0m+epYNXLIJ",
|
173
|
+
"type": "ssh-dss"
|
174
|
+
},
|
175
|
+
"ecdsa": {
|
176
|
+
"fingerprints": {
|
177
|
+
"sha1": "SSHFP 3 1 3bd1e5d4b841b0150d1d9d1ae1e926c0f8c01baf",
|
178
|
+
"sha256": "SSHFP 3 2 f49774b85c325c1b3a03ca07d43b59bc0483c1bed307e1e0eda8146a7f8a32d3"
|
179
|
+
},
|
180
|
+
"key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKdzf7SfxY+LVZayjebjV98AK/c7sFT6rOvVu1pKJyaAGKJvERyVlay9aUOo5EZbGqud61jYpLXrAlGuOQZyWeg=",
|
181
|
+
"type": "ecdsa-sha2-nistp256"
|
182
|
+
},
|
183
|
+
"ed25519": {
|
184
|
+
"fingerprints": {
|
185
|
+
"sha1": "SSHFP 4 1 d90c588d7e89b743439d6bbde8cbf68de80f554c",
|
186
|
+
"sha256": "SSHFP 4 2 4a3633cdbef6f2e3d7aebacb4cd127890cdb0d05a8fffa36047a2da574008117"
|
187
|
+
},
|
188
|
+
"key": "AAAAC3NzaC1lZDI1NTE5AAAAIPOwOYrxf49nywRDLItAiMup1peRQkpfykjDknfisRzq",
|
189
|
+
"type": "ssh-ed25519"
|
190
|
+
},
|
191
|
+
"rsa": {
|
192
|
+
"fingerprints": {
|
193
|
+
"sha1": "SSHFP 1 1 c9f7a8861f449e575242f99981ed7580d609f86c",
|
194
|
+
"sha256": "SSHFP 1 2 5f9ff10646bb92e2f762c650f1f4486331b2848960ab8519031f1fdf1bd92d19"
|
195
|
+
},
|
196
|
+
"key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDQfE6HJW1DZInpdu3xQG1ok0bY+IK2Jhfk3kGd087eE8nuzm1O0JLe5A9elSLCe1I63MTxadw/ZI48DiAnd4q8MckaqU2bE7ycfO1N6KLvBIZ6bmlWR+XpW/0rxLD3aP/lvuu7R731PdgfH5APDyyqYLVdPI1JdvfopJf/55gJqjdZkNE4S5OGUqXEuiwPYL56OgNntwqvoRDvOLQ8DDPNlcz/PGR0tIxhakUM7cPhkBYSZWvTnoJQCJcyx9OE7li9dH0ZnfQ2wezm0cro2Nh3enRN0yeHZ69CvWMoMbotxlKDdM0Gyn7rEvP/9JVr9Mll9UjqO8qbFJYc4E0QjmMQNrEjH9d+F8JsavMh9azZ9f4X2vY83A658RnbweJIscITmIeqPiyyoWLDDJ5XniatYTfpMXKk5SpkvRf7l/LzywK0NsCRioOppOw+mxHcsuDgPYiCmkLq7LYbC6FMZc/PtqpA+UNnxxTsnOfTtIfSyrkIo+LdBPcpxtkiBCZ5AFU=",
|
197
|
+
"type": "ssh-rsa"
|
198
|
+
}
|
199
|
+
},
|
200
|
+
"sshdsakey": "AAAAB3NzaC1kc3MAAACBAOmczeAhgWVjwzCJYyJ38DOE98Xiaw45rmEULqbq6c2iy9YgTEp2DRl/AmOQNosKg1+e/DtrHgqWdIHQplipyOCd6wbJ131Z3PgmMcJqy4XAyhZcaa2wkHdUic0P+7qD1HengkIgquuizJzPKnX1klM2e1QgUeuXZT/ULRW9vI8NAAAAFQD/jjjBCL+7QwI+8iQYAKtp5rW/dwAAAIEAsVXIkqYxA9PgeklIXuchjvTsIAnzFeixSa5p51xCTDBll91QEFX3OtzK3Vp2puJDXBvwymuPnBCaW31AepDnWv4m3YmFWd3s6ZIp8qPbi1UfhkoIH11gwcz4kQT5h6gBbA717d+1DAAw9W6174Ju1dKdoqg86ZNtA5QfgBZ06xwAAACBANZ1rECCGE2HVWbxDBHf6mAv5yoBRNUbPWQ3DYM5qLdYhqPCFmcRdaxIjOtCuqutviphOYEdEWY//jR86GkPGJZeK5Sg6+ol0eZTDNox933GeNuuLTg57F77ODTfeEpYgPNTlklG+MI/V0xjpgiaN+aqfyCmPUh6X0m+epYNXLIJ",
|
201
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKdzf7SfxY+LVZayjebjV98AK/c7sFT6rOvVu1pKJyaAGKJvERyVlay9aUOo5EZbGqud61jYpLXrAlGuOQZyWeg=",
|
202
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIPOwOYrxf49nywRDLItAiMup1peRQkpfykjDknfisRzq",
|
203
|
+
"sshfp_dsa": "SSHFP 2 1 2cbf142ec3e5298f32eb0fcccf139ce09d42e534\nSSHFP 2 2 7c39b6025bf87f7828dac9370dc4374061fa9b643e1fdcaf86ba55cea66b831a",
|
204
|
+
"sshfp_ecdsa": "SSHFP 3 1 3bd1e5d4b841b0150d1d9d1ae1e926c0f8c01baf\nSSHFP 3 2 f49774b85c325c1b3a03ca07d43b59bc0483c1bed307e1e0eda8146a7f8a32d3",
|
205
|
+
"sshfp_ed25519": "SSHFP 4 1 d90c588d7e89b743439d6bbde8cbf68de80f554c\nSSHFP 4 2 4a3633cdbef6f2e3d7aebacb4cd127890cdb0d05a8fffa36047a2da574008117",
|
206
|
+
"sshfp_rsa": "SSHFP 1 1 c9f7a8861f449e575242f99981ed7580d609f86c\nSSHFP 1 2 5f9ff10646bb92e2f762c650f1f4486331b2848960ab8519031f1fdf1bd92d19",
|
207
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDQfE6HJW1DZInpdu3xQG1ok0bY+IK2Jhfk3kGd087eE8nuzm1O0JLe5A9elSLCe1I63MTxadw/ZI48DiAnd4q8MckaqU2bE7ycfO1N6KLvBIZ6bmlWR+XpW/0rxLD3aP/lvuu7R731PdgfH5APDyyqYLVdPI1JdvfopJf/55gJqjdZkNE4S5OGUqXEuiwPYL56OgNntwqvoRDvOLQ8DDPNlcz/PGR0tIxhakUM7cPhkBYSZWvTnoJQCJcyx9OE7li9dH0ZnfQ2wezm0cro2Nh3enRN0yeHZ69CvWMoMbotxlKDdM0Gyn7rEvP/9JVr9Mll9UjqO8qbFJYc4E0QjmMQNrEjH9d+F8JsavMh9azZ9f4X2vY83A658RnbweJIscITmIeqPiyyoWLDDJ5XniatYTfpMXKk5SpkvRf7l/LzywK0NsCRioOppOw+mxHcsuDgPYiCmkLq7LYbC6FMZc/PtqpA+UNnxxTsnOfTtIfSyrkIo+LdBPcpxtkiBCZ5AFU=",
|
208
|
+
"system32": "C:\\Windows\\system32",
|
209
|
+
"system_uptime": {
|
210
|
+
"days": 0,
|
211
|
+
"hours": 0,
|
212
|
+
"seconds": 376,
|
213
|
+
"uptime": "0:06 hours"
|
214
|
+
},
|
215
|
+
"timezone": "Coordinated Universal Time",
|
216
|
+
"uptime": "0:06 hours",
|
217
|
+
"uptime_days": 0,
|
218
|
+
"uptime_hours": 0,
|
219
|
+
"uptime_seconds": 376,
|
220
|
+
"uuid": "F2FE13B6-2E77-4300-B709-3654FF7B6063",
|
221
|
+
"virtual": "virtualbox",
|
222
|
+
"windows_display_version": "21H2",
|
223
|
+
"windows_edition_id": "ServerStandardEval",
|
224
|
+
"windows_installation_type": "Server Core",
|
225
|
+
"windows_product_name": "Windows Server 2022 Standard Evaluation",
|
226
|
+
"windows_release_id": "21H2"
|
227
|
+
}
|
data/facts/README.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# Building Facts for distribution
|
2
|
+
|
3
|
+
There is `Vagrantfile` to automatically populate `facts` for all supported operating systems by spawning a new VM and launches a provisioning scripts.
|
4
|
+
|
5
|
+
## Vagrant
|
6
|
+
|
7
|
+
[Vagrant](https://www.vagrantup.com/) is a tool for creating reproducible virtual machine builds.
|
8
|
+
We use it to ensure facts are generated as similarly as possible every time.
|
9
|
+
|
10
|
+
Vagrant starts by downloading a `box` - a pre-build skeleton of a virtual machine - and then running multiple steps on it.
|
11
|
+
Our workflow generally looks like this:
|
12
|
+
|
13
|
+
1. One or more setup steps to make the VM ready to install puppet and generate facts (for example, setting up the network)
|
14
|
+
1. Calling the `get_facts` script which installs multiple versions of Puppet and generates facts for multiple versions of facter.
|
15
|
+
1. Shutting down the VM (Vagrant doesn't do this automatically).
|
16
|
+
|
17
|
+
### Plugins
|
18
|
+
|
19
|
+
The vagrant timezone plugin is recommended to prevent unnecessary changes to timezone facts:
|
20
|
+
|
21
|
+
```
|
22
|
+
vagrant plugin install vagrant-timezone
|
23
|
+
```
|
24
|
+
|
25
|
+
## Hypervisor
|
26
|
+
|
27
|
+
The distributed facts are built using [VirtualBox](https://www.virtualbox.org/wiki/Downloads).
|
28
|
+
Building the facts will work with other visualization hosts, but will produce different results (eg. IP ranges) that will break spec tests.
|
29
|
+
|
30
|
+
VirtualBox versions 6 and 7 have been tested.
|
31
|
+
The GPLv3 version of VirtualBox is sufficient - the proprietary `Oracle VM VirtualBox Extension Pack` is not required.
|
32
|
+
|
33
|
+
## Building Facts
|
34
|
+
|
35
|
+
To build new facts for all supported operating systems (except Windows)
|
36
|
+
|
37
|
+
```
|
38
|
+
$ cd facts
|
39
|
+
$ vagrant up --provision
|
40
|
+
```
|
41
|
+
|
42
|
+
You can build facts for only a single system or list of specific systems.
|
43
|
+
|
44
|
+
```
|
45
|
+
$ vagrant up --provision debian-11-x86_64
|
46
|
+
```
|
47
|
+
|
48
|
+
Windows facts are not built by default, but can be run manually.
|
49
|
+
|
50
|
+
```
|
51
|
+
$ vagrant up --provision windows-server-2019-x86_64 windows-server-2022-x86_64 windows-10-x86_64 windows-11-x86_64
|
52
|
+
```
|
53
|
+
|
54
|
+
Once new facts are built, the table listing supported facter versions and operating systems needs to be updated.
|
55
|
+
|
56
|
+
```
|
57
|
+
$ bundle exec rake table
|
58
|
+
```
|
59
|
+
|
60
|
+
### Converted Facts
|
61
|
+
|
62
|
+
Not all facts can (or should) be built from VMs.
|
63
|
+
It often isn't necessary to run a separate VM to create some facts that won't be significantly different for existing facts.
|
64
|
+
Some operating systems are harder to run in VMs.
|
65
|
+
|
66
|
+
#### Create i386 facts from x86_64's ones
|
67
|
+
|
68
|
+
```
|
69
|
+
for file in facts/*/*-x86_64.facts; do cat $file | sed -e 's/x86_64/i386/' -e 's/amd64/i386/' > $(echo $file | sed 's/x86_64/i386/'); done
|
70
|
+
```
|
71
|
+
|
72
|
+
#### Create OracleLinux facts from RedHat's ones
|
73
|
+
|
74
|
+
```
|
75
|
+
$ bundle exec rake rhel_alts
|
76
|
+
```
|
77
|
+
|
78
|
+
## Legacy Facts
|
79
|
+
|
80
|
+
*NOTE*: When using Facter version 4, by default some "legacy facts" are hidden from the output.
|
81
|
+
To generate a fact set with the legacy facts use the command `puppet facts show --show-legacy`
|
82
|
+
|
83
|
+
## OS-Specific Notes
|
84
|
+
|
85
|
+
### Ubuntu 18.04
|
86
|
+
|
87
|
+
The default Ubuntu 18.04 `box` creates a console log file (ubuntu-bionic-18.04-cloudimg-console.log).
|
88
|
+
Newer Ubuntu `boxes` don't do this.
|
89
|
+
This behavior can be modified by changing the `box` configuration: `config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"] end`
|
90
|
+
|
91
|
+
### Windows
|
92
|
+
|
93
|
+
There are publicly available Windows `boxes` for Vagrant.
|
94
|
+
|
95
|
+
We currently use publicly-availble `boxes` from Vagrant Community, but we also included packer templates so you can build your own (currently outdated).
|
96
|
+
|
97
|
+
run `packer build <file>.json`
|
98
|
+
followed by `vagrant add <boxname> <boxfile>`
|
99
|
+
|
100
|
+
Once the box is added, change the `Vagrantfile` to use your new `box` and run `vagrant up <windows_os_name>`
|
101
|
+
|
data/facts/Vagrantfile
CHANGED
@@ -21,13 +21,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
21
21
|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
22
22
|
end
|
23
23
|
config.vm.define 'debian-11-x86_64' do |host|
|
24
|
-
host.vm.box = '
|
24
|
+
host.vm.box = 'debian/bullseye64'
|
25
25
|
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
26
26
|
host.vm.provision 'shell', path: 'get_facts.sh'
|
27
27
|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
28
28
|
end
|
29
29
|
config.vm.define 'debian-12-x86_64' do |host|
|
30
|
-
host.vm.box = '
|
30
|
+
host.vm.box = 'debian/bookworm64'
|
31
31
|
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
32
32
|
host.vm.provision 'shell', path: 'get_facts.sh'
|
33
33
|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
@@ -101,7 +101,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
101
101
|
# facts land as centos-8-x86_64.facts
|
102
102
|
config.vm.define 'centos-stream8-x86_64' do |host|
|
103
103
|
host.vm.box = 'centos/stream8'
|
104
|
-
host.vm.box_url = 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-
|
104
|
+
host.vm.box_url = 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20240513.0.x86_64.vagrant-virtualbox.box'
|
105
105
|
host.vm.synced_folder '.', '/vagrant'
|
106
106
|
host.vm.provision 'shell', inline: 'dnf -y install wget make gcc net-tools'
|
107
107
|
host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile'
|
@@ -117,7 +117,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
117
117
|
#
|
118
118
|
config.vm.define 'centos-stream9-x86_64' do |host|
|
119
119
|
host.vm.box = 'centos/stream9'
|
120
|
-
host.vm.box_url = 'https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-
|
120
|
+
host.vm.box_url = 'https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20240513.0.x86_64.vagrant-virtualbox.box'
|
121
121
|
# centos packages their box with synced folders set to rsync (presumably
|
122
122
|
# since vboxsf is not built in their kernel)
|
123
123
|
# If the version of the kernel-headers/kernel-devel that are available
|
@@ -296,26 +296,43 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
296
296
|
host.vm.provision 'shell', path: 'get_facts.sh'
|
297
297
|
host.vm.provision 'shell', inline: '/sbin/shutdown -h now'
|
298
298
|
end
|
299
|
-
|
299
|
+
# Windows boxes can sometimes be picky, so don't include them automatically (autostart: false)
|
300
|
+
config.vm.define 'windows-server-2019-x86_64', autostart: false do |host|
|
300
301
|
host.vm.hostname = 'foo'
|
301
|
-
host.vm.box = '
|
302
|
+
host.vm.box = 'gusztavvargadr/windows-server-2019-standard-core'
|
303
|
+
host.vm.synced_folder '.', '/vagrant'
|
304
|
+
host.vm.communicator = 'winrm'
|
305
|
+
host.vm.guest = :windows
|
306
|
+
host.windows.set_work_network = true
|
307
|
+
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
308
|
+
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|
309
|
+
end
|
310
|
+
config.vm.define 'windows-server-2022-x86_64', autostart: false do |host|
|
311
|
+
host.vm.hostname = 'foo'
|
312
|
+
host.vm.box = 'gusztavvargadr/windows-server-2022-standard-core'
|
313
|
+
host.vm.synced_folder '.', '/vagrant'
|
302
314
|
host.vm.communicator = 'winrm'
|
303
315
|
host.vm.guest = :windows
|
304
|
-
host.vm.network :private_network, auto_network: true
|
305
|
-
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
306
316
|
host.windows.set_work_network = true
|
307
317
|
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
308
|
-
# host.vm.provision 'shell', inline: "Stop-Computer -AsJob"
|
309
318
|
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|
310
|
-
# host.vm.post_up_message = 'Note that windows machines do not automatically shutdown. You must run a \'vagrant destroy\' or \'vagrant halt\' to terminate/stop the build vm.'
|
311
319
|
end
|
312
|
-
config.vm.define 'windows-
|
320
|
+
config.vm.define 'windows-10-x86_64', autostart: false do |host|
|
313
321
|
host.vm.hostname = 'foo'
|
314
|
-
host.vm.box = 'windows-
|
322
|
+
host.vm.box = 'gusztavvargadr/windows-10'
|
323
|
+
host.vm.synced_folder '.', '/vagrant'
|
324
|
+
host.vm.communicator = 'winrm'
|
325
|
+
host.vm.guest = :windows
|
326
|
+
host.windows.set_work_network = true
|
327
|
+
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
328
|
+
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|
329
|
+
end
|
330
|
+
config.vm.define 'windows-11-x86_64', autostart: false do |host|
|
331
|
+
host.vm.hostname = 'foo'
|
332
|
+
host.vm.box = 'gusztavvargadr/windows-11'
|
333
|
+
host.vm.synced_folder '.', '/vagrant'
|
315
334
|
host.vm.communicator = 'winrm'
|
316
335
|
host.vm.guest = :windows
|
317
|
-
host.vm.network :private_network, auto_network: true
|
318
|
-
host.vm.network 'forwarded_port', guest: 22, host: 2200, id: 'ssh', auto_correct: true
|
319
336
|
host.windows.set_work_network = true
|
320
337
|
host.vm.provision 'shell', path: 'windows_get_facts.ps1'
|
321
338
|
host.vm.provision 'shell', inline: 'shutdown -s -f -c "Fact Collection Complete"'
|