foreman_discovery 16.1.0 → 16.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/discovered_hosts_controller.rb +5 -3
- data/app/models/host/discovered.rb +22 -26
- data/app/models/host/managed_extensions.rb +2 -2
- data/app/models/setting/discovered.rb +3 -1
- data/app/services/foreman_discovery/host_converter.rb +14 -6
- data/app/services/foreman_discovery/host_fact_importer.rb +10 -0
- data/app/services/foreman_discovery/node_api/node_resource.rb +1 -0
- data/app/views/discovered_hosts/_discovered_host_modal.html.erb +0 -2
- data/app/views/foreman_discovery/debian_kexec.erb +2 -1
- data/app/views/foreman_discovery/redhat_kexec.erb +2 -1
- data/extra/discover-host +14 -8
- data/lib/foreman_discovery/engine.rb +1 -1
- data/lib/foreman_discovery/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ca/foreman_discovery.edit.po +146 -216
- data/locale/ca/foreman_discovery.po +4 -1
- data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/de/foreman_discovery.edit.po +144 -215
- data/locale/de/foreman_discovery.po +4 -1
- data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en/foreman_discovery.edit.po +76 -72
- data/locale/en/foreman_discovery.po +4 -1
- data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en_GB/foreman_discovery.edit.po +146 -216
- data/locale/en_GB/foreman_discovery.po +4 -1
- data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/es/foreman_discovery.edit.po +146 -216
- data/locale/es/foreman_discovery.po +4 -1
- data/locale/foreman_discovery.pot +77 -73
- data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/fr/foreman_discovery.edit.po +144 -215
- data/locale/fr/foreman_discovery.po +4 -1
- data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/gl/foreman_discovery.edit.po +146 -216
- data/locale/gl/foreman_discovery.po +4 -1
- data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/it/foreman_discovery.edit.po +146 -216
- data/locale/it/foreman_discovery.po +4 -1
- data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ja/foreman_discovery.edit.po +149 -216
- data/locale/ja/foreman_discovery.po +4 -1
- data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ko/foreman_discovery.edit.po +147 -215
- data/locale/ko/foreman_discovery.po +4 -1
- data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +146 -216
- data/locale/pt_BR/foreman_discovery.po +4 -1
- data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ru/foreman_discovery.edit.po +149 -219
- data/locale/ru/foreman_discovery.po +4 -1
- data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/sv_SE/foreman_discovery.edit.po +146 -216
- data/locale/sv_SE/foreman_discovery.po +4 -1
- data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_CN/foreman_discovery.edit.po +149 -216
- data/locale/zh_CN/foreman_discovery.po +4 -1
- data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_TW/foreman_discovery.edit.po +149 -216
- data/locale/zh_TW/foreman_discovery.po +4 -1
- data/test/facts/only-ipv6.json +205 -0
- data/test/facts/skylake-ipv6.json +223 -0
- data/test/functional/api/v2/settings_controller_test.rb +2 -2
- data/test/functional/discovered_hosts_controller_test.rb +17 -8
- data/test/unit/discovered_extensions_test.rb +1 -0
- data/test/unit/host_discovered_test.rb +0 -16
- data/test/unit/managed_extensions_test.rb +1 -0
- metadata +33 -28
@@ -5,7 +5,7 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version: foreman_discovery 16.0
|
8
|
+
"Project-Id-Version: foreman_discovery 16.1.0\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
10
|
"PO-Revision-Date: 2020-05-26 17:21+0000\n"
|
11
11
|
"Last-Translator: Transifex Bot <>\n"
|
@@ -695,6 +695,9 @@ msgstr ""
|
|
695
695
|
msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
|
696
696
|
msgstr ""
|
697
697
|
|
698
|
+
msgid "Unable to perform %{action} on %{ips}"
|
699
|
+
msgstr ""
|
700
|
+
|
698
701
|
msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
|
699
702
|
msgstr ""
|
700
703
|
|
@@ -0,0 +1,205 @@
|
|
1
|
+
{
|
2
|
+
"lib": "/usr/share/fdi/facts:/opt/extension/facts",
|
3
|
+
"processors": {
|
4
|
+
"models": [
|
5
|
+
"AMD EPYC Processor (with IBPB)",
|
6
|
+
"AMD EPYC Processor (with IBPB)"
|
7
|
+
],
|
8
|
+
"count": 2,
|
9
|
+
"physicalcount": 2
|
10
|
+
},
|
11
|
+
"kernel": "Linux",
|
12
|
+
"ps": "ps -ef",
|
13
|
+
"hostname": "fdi",
|
14
|
+
"architecture": "x86_64",
|
15
|
+
"hardwaremodel": "x86_64",
|
16
|
+
"operatingsystem": "CentOS",
|
17
|
+
"os": {
|
18
|
+
"name": "CentOS",
|
19
|
+
"family": "RedHat",
|
20
|
+
"release": {
|
21
|
+
"major": "7",
|
22
|
+
"minor": "8",
|
23
|
+
"full": "7.8.2003"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"processor0": "AMD EPYC Processor (with IBPB)",
|
27
|
+
"processor1": "AMD EPYC Processor (with IBPB)",
|
28
|
+
"processorcount": 2,
|
29
|
+
"uptime_days": 0,
|
30
|
+
"macaddress": "52:54:00:fb:f4:1d",
|
31
|
+
"path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/extension/bin:/root/bin",
|
32
|
+
"uptime_hours": 0,
|
33
|
+
"rubyplatform": "x86_64-linux",
|
34
|
+
"netmask": "255.0.0.0",
|
35
|
+
"ipaddress6": "2001:db8::1",
|
36
|
+
"osfamily": "RedHat",
|
37
|
+
"kernelrelease": "3.10.0-1127.18.2.el7.x86_64",
|
38
|
+
"system_uptime": {
|
39
|
+
"seconds": 1464,
|
40
|
+
"hours": 0,
|
41
|
+
"days": 0,
|
42
|
+
"uptime": "0:24 hours"
|
43
|
+
},
|
44
|
+
"bios_vendor": "SeaBIOS",
|
45
|
+
"bios_version": "1.13.0-2.fc32",
|
46
|
+
"bios_release_date": "04/01/2014",
|
47
|
+
"manufacturer": "QEMU",
|
48
|
+
"productname": "Standard PC (Q35 + ICH9, 2009)",
|
49
|
+
"serialnumber": "Not Specified",
|
50
|
+
"uuid": "afe1e6f8-50f1-4b18-9f66-c03e446717d9",
|
51
|
+
"type": "Other",
|
52
|
+
"operatingsystemrelease": "7.8.2003",
|
53
|
+
"uptime": "0:24 hours",
|
54
|
+
"hardwareisa": "x86_64",
|
55
|
+
"virtual": "kvm",
|
56
|
+
"is_virtual": true,
|
57
|
+
"rubysitedir": "/usr/local/share/ruby/site_ruby/",
|
58
|
+
"id": "root",
|
59
|
+
"filesystems": "ext2,ext3,ext4,iso9660,squashfs",
|
60
|
+
"timezone": "UTC",
|
61
|
+
"uniqueid": "007f0200",
|
62
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDVNqhy9+Zglfk+i+iwUuAdR4dFwiQZN1n3wSIWAGOkIy/FDUYNStOvm3DDU+1/Wbv4ZuFYzFK59R9VtXAIPA6c90oloBU+WZv0ZRuUojle5egaVx6vg3i0MtW2ON2BdtApI4q7DnBxtL0konC/lbCDab0e/jcZh7WTa/HHVpmB+dQ5RS5bnQz96ecHRnUgQqf9bxXcX1PZXqhvGKQwsqCLlfMjjA5h8q2s5ydbObF2oYQfUbzLjygPQLCTve7J/oPWeJJ1xFnmoBgE/+Lc1xVyTo8CmhoSDXir+nWYD/Tr5UX17Ru9W/7yJvQlSi7Bqq5HJ/nq+/xrJmCVBGFfyuwd",
|
63
|
+
"sshfp_rsa": "SSHFP 1 1 79f3b0ea4105a94ab150975098a76a8b891d2e8f\nSSHFP 1 2 955a992cbc6959d72bcc7a5ca456d4570a273ead6bda7f584344949c54043219",
|
64
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBiNm4VBXEmGUH/Gx+uSlXu88k13kQfOIPPJj1NBiWXgU9Pjc1SrTjI9QinccMt2+1z/cymCzzwa0F+b/JknWQg=",
|
65
|
+
"sshfp_ecdsa": "SSHFP 3 1 144cd608f182179aeef8f071eb014866313dce57\nSSHFP 3 2 4a68e5b795ed2d60d3e756a945cfad61e51e75968e479c5a011794246360b4ec",
|
66
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIDzmAQdVlo1evefuHIyNWy+X0kVdzoEi1I9/pBsUiVjT",
|
67
|
+
"sshfp_ed25519": "SSHFP 4 1 098706643ce9926e24060b4c5f36ce41fdca74f2\nSSHFP 4 2 55ee2a7cba7eb66c61d9519e94e6ebd79df37b8a80b9b46a5c30ae5177df8de3",
|
68
|
+
"network_lo": "127.0.0.0",
|
69
|
+
"physicalprocessorcount": 2,
|
70
|
+
"kernelmajversion": "3.10",
|
71
|
+
"fqdn": "fdi",
|
72
|
+
"kernelversion": "3.10.0",
|
73
|
+
"facterversion": "2.4.1",
|
74
|
+
"operatingsystemmajrelease": "7",
|
75
|
+
"interfaces": "eth0,lo",
|
76
|
+
"ipaddress6_eth0": "2001:db8::1",
|
77
|
+
"macaddress_eth0": "52:54:00:fb:f4:1d",
|
78
|
+
"mtu_eth0": 1500,
|
79
|
+
"ipaddress_lo": "127.0.0.1",
|
80
|
+
"netmask_lo": "255.0.0.0",
|
81
|
+
"mtu_lo": 65536,
|
82
|
+
"gid": "root",
|
83
|
+
"memorysize": "2.39 GB",
|
84
|
+
"memoryfree": "2.19 GB",
|
85
|
+
"swapsize": "0.00 MB",
|
86
|
+
"swapfree": "0.00 MB",
|
87
|
+
"swapsize_mb": "0.00",
|
88
|
+
"swapfree_mb": "0.00",
|
89
|
+
"memorysize_mb": "2442.77",
|
90
|
+
"memoryfree_mb": "2247.03",
|
91
|
+
"selinux": false,
|
92
|
+
"rubyversion": "2.0.0",
|
93
|
+
"uptime_seconds": 1464,
|
94
|
+
"efi": false,
|
95
|
+
"discovery_version": "3.6.5",
|
96
|
+
"discovery_release": "20200819.1",
|
97
|
+
"discovery_bootif": "52:54:00:fb:f4:1d",
|
98
|
+
"link_eth0": "true",
|
99
|
+
"link_lo": "true",
|
100
|
+
"nmprimary_connection_id": "primary",
|
101
|
+
"nmprimary_connection_uuid": "a5869516-e2b3-11ea-b42d-525400fbf41d",
|
102
|
+
"nmprimary_connection_stable-id": "",
|
103
|
+
"nmprimary_connection_type": "802-3-ethernet",
|
104
|
+
"nmprimary_connection_interface-name": "",
|
105
|
+
"nmprimary_connection_autoconnect": "yes",
|
106
|
+
"nmprimary_connection_autoconnect-priority": "1",
|
107
|
+
"nmprimary_connection_autoconnect-retries": "-1",
|
108
|
+
"nmprimary_connection_multi-connect": "0",
|
109
|
+
"nmprimary_connection_auth-retries": "-1",
|
110
|
+
"nmprimary_connection_timestamp": "1597908310",
|
111
|
+
"nmprimary_connection_read-only": "no",
|
112
|
+
"nmprimary_connection_permissions": "",
|
113
|
+
"nmprimary_connection_zone": "",
|
114
|
+
"nmprimary_connection_master": "",
|
115
|
+
"nmprimary_connection_slave-type": "",
|
116
|
+
"nmprimary_connection_autoconnect-slaves": "-1",
|
117
|
+
"nmprimary_connection_secondaries": "",
|
118
|
+
"nmprimary_connection_gateway-ping-timeout": "0",
|
119
|
+
"nmprimary_connection_metered": "unknown",
|
120
|
+
"nmprimary_connection_lldp": "default",
|
121
|
+
"nmprimary_connection_mdns": "-1",
|
122
|
+
"nmprimary_connection_llmnr": "-1",
|
123
|
+
"nmprimary_802-3-ethernet_port": "",
|
124
|
+
"nmprimary_802-3-ethernet_speed": "0",
|
125
|
+
"nmprimary_802-3-ethernet_duplex": "",
|
126
|
+
"nmprimary_802-3-ethernet_auto-negotiate": "no",
|
127
|
+
"nmprimary_802-3-ethernet_mac-address": "52:54:00:FB:F4:1D",
|
128
|
+
"nmprimary_802-3-ethernet_cloned-mac-address": "",
|
129
|
+
"nmprimary_802-3-ethernet_generate-mac-address-mask": "",
|
130
|
+
"nmprimary_802-3-ethernet_mac-address-blacklist": "",
|
131
|
+
"nmprimary_802-3-ethernet_mtu": "auto",
|
132
|
+
"nmprimary_802-3-ethernet_s390-subchannels": "",
|
133
|
+
"nmprimary_802-3-ethernet_s390-nettype": "",
|
134
|
+
"nmprimary_802-3-ethernet_s390-options": "",
|
135
|
+
"nmprimary_802-3-ethernet_wake-on-lan": "default",
|
136
|
+
"nmprimary_802-3-ethernet_wake-on-lan-password": "",
|
137
|
+
"nmprimary_ipv4_method": "disabled",
|
138
|
+
"nmprimary_ipv4_dns": "",
|
139
|
+
"nmprimary_ipv4_dns-search": "",
|
140
|
+
"nmprimary_ipv4_dns-options": " ",
|
141
|
+
"nmprimary_ipv4_dns-priority": "0",
|
142
|
+
"nmprimary_ipv4_addresses": "",
|
143
|
+
"nmprimary_ipv4_gateway": "",
|
144
|
+
"nmprimary_ipv4_routes": "",
|
145
|
+
"nmprimary_ipv4_route-metric": "-1",
|
146
|
+
"nmprimary_ipv4_route-table": "0",
|
147
|
+
"nmprimary_ipv4_routing-rules": "",
|
148
|
+
"nmprimary_ipv4_ignore-auto-routes": "no",
|
149
|
+
"nmprimary_ipv4_ignore-auto-dns": "no",
|
150
|
+
"nmprimary_ipv4_dhcp-client-id": "",
|
151
|
+
"nmprimary_ipv4_dhcp-timeout": "0",
|
152
|
+
"nmprimary_ipv4_dhcp-send-hostname": "yes",
|
153
|
+
"nmprimary_ipv4_dhcp-hostname": "",
|
154
|
+
"nmprimary_ipv4_dhcp-fqdn": "",
|
155
|
+
"nmprimary_ipv4_never-default": "no",
|
156
|
+
"nmprimary_ipv4_may-fail": "yes",
|
157
|
+
"nmprimary_ipv4_dad-timeout": "-1",
|
158
|
+
"nmprimary_ipv6_method": "manual",
|
159
|
+
"nmprimary_ipv6_dns": "2001:db8::2",
|
160
|
+
"nmprimary_ipv6_dns-search": "",
|
161
|
+
"nmprimary_ipv6_dns-options": " ",
|
162
|
+
"nmprimary_ipv6_dns-priority": "0",
|
163
|
+
"nmprimary_ipv6_addresses": "2001:db8::1/64",
|
164
|
+
"nmprimary_ipv6_gateway": "2001:db8::2",
|
165
|
+
"nmprimary_ipv6_routes": "",
|
166
|
+
"nmprimary_ipv6_route-metric": "-1",
|
167
|
+
"nmprimary_ipv6_route-table": "0",
|
168
|
+
"nmprimary_ipv6_routing-rules": "",
|
169
|
+
"nmprimary_ipv6_ignore-auto-routes": "no",
|
170
|
+
"nmprimary_ipv6_ignore-auto-dns": "no",
|
171
|
+
"nmprimary_ipv6_never-default": "no",
|
172
|
+
"nmprimary_ipv6_may-fail": "yes",
|
173
|
+
"nmprimary_ipv6_ip6-privacy": "-1",
|
174
|
+
"nmprimary_ipv6_addr-gen-mode": "eui64",
|
175
|
+
"nmprimary_ipv6_dhcp-duid": "",
|
176
|
+
"nmprimary_ipv6_dhcp-send-hostname": "no",
|
177
|
+
"nmprimary_ipv6_dhcp-hostname": "",
|
178
|
+
"nmprimary_ipv6_token": "",
|
179
|
+
"nmprimary_vlan_parent": "",
|
180
|
+
"nmprimary_vlan_id": "0",
|
181
|
+
"nmprimary_vlan_flags": "1",
|
182
|
+
"nmprimary_vlan_ingress-priority-map": "",
|
183
|
+
"nmprimary_vlan_egress-priority-map": "",
|
184
|
+
"nmprimary_proxy_method": "none",
|
185
|
+
"nmprimary_proxy_browser-only": "no",
|
186
|
+
"nmprimary_proxy_pac-url": "",
|
187
|
+
"nmprimary_proxy_pac-script": "",
|
188
|
+
"nmprimary_general_name": "primary",
|
189
|
+
"nmprimary_general_uuid": "a5869516-e2b3-11ea-b42d-525400fbf41d",
|
190
|
+
"nmprimary_general_devices": "eth0",
|
191
|
+
"nmprimary_general_state": "activated",
|
192
|
+
"nmprimary_general_default": "no",
|
193
|
+
"nmprimary_general_default6": "yes",
|
194
|
+
"nmprimary_general_spec-object": "",
|
195
|
+
"nmprimary_general_vpn": "no",
|
196
|
+
"nmprimary_general_dbus-path": "/org/freedesktop/NetworkManager/ActiveConnection/2",
|
197
|
+
"nmprimary_general_con-path": "/org/freedesktop/NetworkManager/Settings/2",
|
198
|
+
"nmprimary_general_zone": "",
|
199
|
+
"nmprimary_general_master-path": "",
|
200
|
+
"nmprimary_ip4_gateway": "",
|
201
|
+
"nmprimary_ip6_address": "2001:db8::1/64",
|
202
|
+
"nmprimary_ip6_gateway": "2001:db8::2",
|
203
|
+
"nmprimary_ip6_route": "dst = 2001:db8::/64, nh = ::, mt = 100",
|
204
|
+
"nmprimary_ip6_dns": "2001:db8::2"
|
205
|
+
}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
{
|
2
|
+
"lib": "/usr/share/fdi/facts:/opt/extension/facts",
|
3
|
+
"processors": {
|
4
|
+
"models": [
|
5
|
+
"Intel Core Processor (Skylake, IBRS)",
|
6
|
+
"Intel Core Processor (Skylake, IBRS)"
|
7
|
+
],
|
8
|
+
"count": 2,
|
9
|
+
"physicalcount": 2
|
10
|
+
},
|
11
|
+
"kernel": "Linux",
|
12
|
+
"ps": "ps -ef",
|
13
|
+
"partitions": {
|
14
|
+
"sda1": {
|
15
|
+
"size": "1228800",
|
16
|
+
"label": "EFI System Partition",
|
17
|
+
"filesystem": "vfat"
|
18
|
+
},
|
19
|
+
"sda2": {
|
20
|
+
"uuid": "825ebe27-ee98-4c32-8949-1ac200fc8b42",
|
21
|
+
"size": "2097152",
|
22
|
+
"filesystem": "xfs"
|
23
|
+
},
|
24
|
+
"sda3": {
|
25
|
+
"size": "38612992",
|
26
|
+
"filesystem": "LVM2_member"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"hostname": "fdi",
|
30
|
+
"blockdevice_sda_size": 21474836480,
|
31
|
+
"blockdevice_sda_vendor": "ATA",
|
32
|
+
"blockdevice_sda_model": "QEMU HARDDISK",
|
33
|
+
"blockdevices": "sda",
|
34
|
+
"architecture": "x86_64",
|
35
|
+
"hardwaremodel": "x86_64",
|
36
|
+
"operatingsystem": "CentOS",
|
37
|
+
"os": {
|
38
|
+
"name": "CentOS",
|
39
|
+
"family": "RedHat",
|
40
|
+
"release": {
|
41
|
+
"major": "7",
|
42
|
+
"minor": "8",
|
43
|
+
"full": "7.8.2003"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"processor0": "Intel Core Processor (Skylake, IBRS)",
|
47
|
+
"processor1": "Intel Core Processor (Skylake, IBRS)",
|
48
|
+
"processorcount": 2,
|
49
|
+
"uptime_days": 0,
|
50
|
+
"macaddress": "52:54:00:96:45:81",
|
51
|
+
"path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/extension/bin",
|
52
|
+
"uptime_hours": 0,
|
53
|
+
"rubyplatform": "x86_64-linux",
|
54
|
+
"netmask": "255.0.0.0",
|
55
|
+
"ipaddress6": "fd00:aaaa:bbbb:cc:5054:ff:fe96:4581",
|
56
|
+
"osfamily": "RedHat",
|
57
|
+
"kernelrelease": "3.10.0-1127.18.2.el7.x86_64",
|
58
|
+
"system_uptime": {
|
59
|
+
"seconds": 264,
|
60
|
+
"hours": 0,
|
61
|
+
"days": 0,
|
62
|
+
"uptime": "0:04 hours"
|
63
|
+
},
|
64
|
+
"bios_vendor": "EFI Development Kit II / OVMF",
|
65
|
+
"bios_version": "0.0.0",
|
66
|
+
"bios_release_date": "02/06/2015",
|
67
|
+
"manufacturer": "QEMU",
|
68
|
+
"productname": "Standard PC (Q35 + ICH9, 2009)",
|
69
|
+
"serialnumber": "Not Specified",
|
70
|
+
"uuid": "34c5be4a-2d35-4524-9471-3f7c73d1fe89",
|
71
|
+
"type": "Other",
|
72
|
+
"operatingsystemrelease": "7.8.2003",
|
73
|
+
"uptime": "0:04 hours",
|
74
|
+
"hardwareisa": "x86_64",
|
75
|
+
"virtual": "kvm",
|
76
|
+
"is_virtual": true,
|
77
|
+
"rubysitedir": "/usr/local/share/ruby/site_ruby/",
|
78
|
+
"id": "root",
|
79
|
+
"filesystems": "ext2,ext3,ext4,iso9660,squashfs",
|
80
|
+
"timezone": "UTC",
|
81
|
+
"uniqueid": "007f0200",
|
82
|
+
"sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCiuXQicGounSVTpAIPhRkAA5ovVuLAzziUpNngr2yhb54khyzKbH51s0WDlCDXDN72vmqOK2fAUhpdRZJes/q1PAUk9BUnwpTDI2LYUhj9E0QA7GM/GxqWhrDRt/vG5WkuuUEZVKI4lyuLgGJ5fOn9p22VSHRl7PSmMfSehDPExlQWjffqwi4aKGkndRIY28IuZCWHebLno4diSkKoExin5XMc2HyGNikmPH5vwTD2HwKsHivNvmwYybpPBDmHm4n6uNvwCjr0a24JygU1fy3kFT6W/EEgEV72+J38zWwoEgAeGzca0O4mJy37xv9WBVao6mvLk1vnZRT13r4qneU5",
|
83
|
+
"sshfp_rsa": "SSHFP 1 1 df8461ddddf423f915f06f06740dad52677a9289\nSSHFP 1 2 f7f453d2bc934e235af1eab0cf0ce18fb31326475de513e0f4634b753b5cb4e8",
|
84
|
+
"sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDDMio789P5EtxntS/wCT/LzYaOEWJ3/TqvewlTzRYlf/zNOIlMGG12QTX1R8P2cus7K+fNWZzXZ3mdV5e/CQos=",
|
85
|
+
"sshfp_ecdsa": "SSHFP 3 1 7458744ef5488b42f08e9c506183eac9c9535ce4\nSSHFP 3 2 ee0568b1c150f62b72083674e1d88c5401156c592206ea9a16725d517f69b165",
|
86
|
+
"sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIGv5VKv1DuFxAWKvKozb0wYqUTESoCiOUUciHkgA6LFP",
|
87
|
+
"sshfp_ed25519": "SSHFP 4 1 4034bdf424c98467a9341f788baf11d31edf7852\nSSHFP 4 2 1c1da30f5991a573fc54ede288b53ff9494888e1eae5def0e2b3a76763a4fc46",
|
88
|
+
"network_lo": "127.0.0.0",
|
89
|
+
"physicalprocessorcount": 2,
|
90
|
+
"kernelmajversion": "3.10",
|
91
|
+
"fqdn": "fdi",
|
92
|
+
"kernelversion": "3.10.0",
|
93
|
+
"facterversion": "2.4.1",
|
94
|
+
"operatingsystemmajrelease": "7",
|
95
|
+
"interfaces": "eth0,lo",
|
96
|
+
"macaddress_eth0": "52:54:00:96:45:81",
|
97
|
+
"mtu_eth0": 1500,
|
98
|
+
"ipaddress_lo": "127.0.0.1",
|
99
|
+
"netmask_lo": "255.0.0.0",
|
100
|
+
"mtu_lo": 65536,
|
101
|
+
"gid": "root",
|
102
|
+
"memorysize": "1.95 GB",
|
103
|
+
"memoryfree": "1.74 GB",
|
104
|
+
"swapsize": "0.00 MB",
|
105
|
+
"swapfree": "0.00 MB",
|
106
|
+
"swapsize_mb": "0.00",
|
107
|
+
"swapfree_mb": "0.00",
|
108
|
+
"memorysize_mb": "1997.13",
|
109
|
+
"memoryfree_mb": "1784.67",
|
110
|
+
"selinux": false,
|
111
|
+
"rubyversion": "2.0.0",
|
112
|
+
"uptime_seconds": 264,
|
113
|
+
"efi": true,
|
114
|
+
"discovery_version": "3.6.5",
|
115
|
+
"discovery_release": "20200819.1",
|
116
|
+
"discovery_bootif": "52:54:00:96:45:81",
|
117
|
+
"link_eth0": "true",
|
118
|
+
"link_lo": "true",
|
119
|
+
"nmprimary_connection_id": "primary",
|
120
|
+
"nmprimary_connection_uuid": "d8651bb4-e2c3-11ea-816a-525400964581",
|
121
|
+
"nmprimary_connection_stable-id": "",
|
122
|
+
"nmprimary_connection_type": "802-3-ethernet",
|
123
|
+
"nmprimary_connection_interface-name": "",
|
124
|
+
"nmprimary_connection_autoconnect": "yes",
|
125
|
+
"nmprimary_connection_autoconnect-priority": "1",
|
126
|
+
"nmprimary_connection_autoconnect-retries": "-1",
|
127
|
+
"nmprimary_connection_multi-connect": "0",
|
128
|
+
"nmprimary_connection_auth-retries": "-1",
|
129
|
+
"nmprimary_connection_timestamp": "1597914143",
|
130
|
+
"nmprimary_connection_read-only": "no",
|
131
|
+
"nmprimary_connection_permissions": "",
|
132
|
+
"nmprimary_connection_zone": "",
|
133
|
+
"nmprimary_connection_master": "",
|
134
|
+
"nmprimary_connection_slave-type": "",
|
135
|
+
"nmprimary_connection_autoconnect-slaves": "-1",
|
136
|
+
"nmprimary_connection_secondaries": "",
|
137
|
+
"nmprimary_connection_gateway-ping-timeout": "0",
|
138
|
+
"nmprimary_connection_metered": "unknown",
|
139
|
+
"nmprimary_connection_lldp": "default",
|
140
|
+
"nmprimary_connection_mdns": "-1",
|
141
|
+
"nmprimary_connection_llmnr": "-1",
|
142
|
+
"nmprimary_802-3-ethernet_port": "",
|
143
|
+
"nmprimary_802-3-ethernet_speed": "0",
|
144
|
+
"nmprimary_802-3-ethernet_duplex": "",
|
145
|
+
"nmprimary_802-3-ethernet_auto-negotiate": "no",
|
146
|
+
"nmprimary_802-3-ethernet_mac-address": "52:54:00:96:45:81",
|
147
|
+
"nmprimary_802-3-ethernet_cloned-mac-address": "",
|
148
|
+
"nmprimary_802-3-ethernet_generate-mac-address-mask": "",
|
149
|
+
"nmprimary_802-3-ethernet_mac-address-blacklist": "",
|
150
|
+
"nmprimary_802-3-ethernet_mtu": "auto",
|
151
|
+
"nmprimary_802-3-ethernet_s390-subchannels": "",
|
152
|
+
"nmprimary_802-3-ethernet_s390-nettype": "",
|
153
|
+
"nmprimary_802-3-ethernet_s390-options": "",
|
154
|
+
"nmprimary_802-3-ethernet_wake-on-lan": "default",
|
155
|
+
"nmprimary_802-3-ethernet_wake-on-lan-password": "",
|
156
|
+
"nmprimary_ipv4_method": "auto",
|
157
|
+
"nmprimary_ipv4_dns": "",
|
158
|
+
"nmprimary_ipv4_dns-search": "",
|
159
|
+
"nmprimary_ipv4_dns-options": " ",
|
160
|
+
"nmprimary_ipv4_dns-priority": "0",
|
161
|
+
"nmprimary_ipv4_addresses": "",
|
162
|
+
"nmprimary_ipv4_gateway": "",
|
163
|
+
"nmprimary_ipv4_routes": "",
|
164
|
+
"nmprimary_ipv4_route-metric": "-1",
|
165
|
+
"nmprimary_ipv4_route-table": "0",
|
166
|
+
"nmprimary_ipv4_routing-rules": "",
|
167
|
+
"nmprimary_ipv4_ignore-auto-routes": "no",
|
168
|
+
"nmprimary_ipv4_ignore-auto-dns": "no",
|
169
|
+
"nmprimary_ipv4_dhcp-client-id": "",
|
170
|
+
"nmprimary_ipv4_dhcp-timeout": "300",
|
171
|
+
"nmprimary_ipv4_dhcp-send-hostname": "no",
|
172
|
+
"nmprimary_ipv4_dhcp-hostname": "",
|
173
|
+
"nmprimary_ipv4_dhcp-fqdn": "",
|
174
|
+
"nmprimary_ipv4_never-default": "no",
|
175
|
+
"nmprimary_ipv4_may-fail": "yes",
|
176
|
+
"nmprimary_ipv4_dad-timeout": "-1",
|
177
|
+
"nmprimary_ipv6_method": "auto",
|
178
|
+
"nmprimary_ipv6_dns": "",
|
179
|
+
"nmprimary_ipv6_dns-search": "",
|
180
|
+
"nmprimary_ipv6_dns-options": " ",
|
181
|
+
"nmprimary_ipv6_dns-priority": "0",
|
182
|
+
"nmprimary_ipv6_addresses": "",
|
183
|
+
"nmprimary_ipv6_gateway": "",
|
184
|
+
"nmprimary_ipv6_routes": "",
|
185
|
+
"nmprimary_ipv6_route-metric": "-1",
|
186
|
+
"nmprimary_ipv6_route-table": "0",
|
187
|
+
"nmprimary_ipv6_routing-rules": "",
|
188
|
+
"nmprimary_ipv6_ignore-auto-routes": "no",
|
189
|
+
"nmprimary_ipv6_ignore-auto-dns": "no",
|
190
|
+
"nmprimary_ipv6_never-default": "no",
|
191
|
+
"nmprimary_ipv6_may-fail": "yes",
|
192
|
+
"nmprimary_ipv6_ip6-privacy": "-1",
|
193
|
+
"nmprimary_ipv6_addr-gen-mode": "eui64",
|
194
|
+
"nmprimary_ipv6_dhcp-duid": "",
|
195
|
+
"nmprimary_ipv6_dhcp-send-hostname": "yes",
|
196
|
+
"nmprimary_ipv6_dhcp-hostname": "",
|
197
|
+
"nmprimary_ipv6_token": "",
|
198
|
+
"nmprimary_vlan_parent": "",
|
199
|
+
"nmprimary_vlan_id": "0",
|
200
|
+
"nmprimary_vlan_flags": "1",
|
201
|
+
"nmprimary_vlan_ingress-priority-map": "",
|
202
|
+
"nmprimary_vlan_egress-priority-map": "",
|
203
|
+
"nmprimary_proxy_method": "none",
|
204
|
+
"nmprimary_proxy_browser-only": "no",
|
205
|
+
"nmprimary_proxy_pac-url": "",
|
206
|
+
"nmprimary_proxy_pac-script": "",
|
207
|
+
"nmprimary_general_name": "primary",
|
208
|
+
"nmprimary_general_uuid": "d8651bb4-e2c3-11ea-816a-525400964581",
|
209
|
+
"nmprimary_general_devices": "eth0",
|
210
|
+
"nmprimary_general_state": "activated",
|
211
|
+
"nmprimary_general_default": "no",
|
212
|
+
"nmprimary_general_default6": "no",
|
213
|
+
"nmprimary_general_spec-object": "",
|
214
|
+
"nmprimary_general_vpn": "no",
|
215
|
+
"nmprimary_general_dbus-path": "/org/freedesktop/NetworkManager/ActiveConnection/1",
|
216
|
+
"nmprimary_general_con-path": "/org/freedesktop/NetworkManager/Settings/1",
|
217
|
+
"nmprimary_general_zone": "",
|
218
|
+
"nmprimary_general_master-path": "",
|
219
|
+
"nmprimary_ip6_address": "fd00:aaaa:bbbb:cc:5054:ff:fe96:4581/64",
|
220
|
+
"nmprimary_ip6_gateway": "",
|
221
|
+
"nmprimary_ip6_route": "dst = fd00:aaaa:bbbb:cc::/64, nh = ::, mt = 100",
|
222
|
+
"nmprimary_ip6_dns": "fe80::5054:ff:fe3a:6bd3"
|
223
|
+
}
|
@@ -6,10 +6,10 @@ class Api::V2::SettingsControllerTest < ActionController::TestCase
|
|
6
6
|
end
|
7
7
|
|
8
8
|
test_attributes :pid => '2c5ecb7e-87bc-4980-9620-7ae00e3f360e'
|
9
|
-
test "should update hostname prefix without value" do
|
9
|
+
test "should not update hostname prefix without value" do
|
10
10
|
setting = Setting.find_by_name("discovery_prefix")
|
11
11
|
put :update, params: { :id => setting.id, :setting => { :value => '' } }
|
12
|
-
|
12
|
+
assert_nil JSON.parse(@response.body)['value']
|
13
13
|
end
|
14
14
|
|
15
15
|
test_attributes :pid => '4969994d-f934-4f0e-9a98-476b87eb0527'
|