foreman_discovery 9.1.5 → 10.0.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/api/v2/discovered_hosts_controller.rb +5 -4
- data/app/controllers/api/v2/discovery_rules_controller.rb +1 -1
- data/app/controllers/concerns/foreman/controller/parameters/discovered_host.rb +2 -9
- data/app/controllers/discovered_hosts_controller.rb +10 -21
- data/app/controllers/discovery_rules_controller.rb +1 -1
- data/app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb +1 -1
- data/app/helpers/discovered_hosts_helper.rb +2 -3
- data/app/models/discovery_attribute_set.rb +1 -1
- data/app/models/discovery_rule.rb +1 -1
- data/app/models/host/discovered.rb +23 -17
- data/app/models/host/managed_extensions.rb +2 -5
- data/app/services/foreman_discovery/host_converter.rb +0 -6
- data/app/services/foreman_discovery/node_api/power.rb +0 -8
- data/app/views/discovered_hosts/_discovered_host_modal.html.erb +12 -13
- data/app/views/discovered_hosts/_selected_hosts.html.erb +1 -1
- data/app/views/discovered_hosts/multiple_destroy.html.erb +5 -4
- data/app/views/discovered_hosts/show.html.erb +9 -1
- data/app/views/discovered_hosts/welcome.html.erb +10 -0
- data/db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb +1 -1
- data/db/migrate/20150714144500_review_discovery_permissions.rb +9 -7
- data/db/migrate/20161006094714_add_constraints_on_subnets_smart_proxies.rb +0 -3
- data/extra/discover-host +18 -11
- data/extra/discovery/rhel7-vlan.json +352 -0
- data/lib/foreman_discovery/engine.rb +2 -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 +1 -1
- data/locale/ca/foreman_discovery.po +1 -1
- data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/de/foreman_discovery.edit.po +2 -2
- data/locale/de/foreman_discovery.po +2 -2
- data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en/foreman_discovery.edit.po +79 -75
- data/locale/en/foreman_discovery.po +13 -10
- data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en_GB/foreman_discovery.edit.po +1 -1
- data/locale/en_GB/foreman_discovery.po +1 -1
- data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/es/foreman_discovery.edit.po +2 -2
- data/locale/es/foreman_discovery.po +2 -2
- data/locale/foreman_discovery.pot +89 -81
- data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/fr/foreman_discovery.edit.po +2 -2
- data/locale/fr/foreman_discovery.po +2 -2
- data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/gl/foreman_discovery.edit.po +1 -1
- data/locale/gl/foreman_discovery.po +1 -1
- data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/it/foreman_discovery.edit.po +2 -2
- data/locale/it/foreman_discovery.po +2 -2
- data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ja/foreman_discovery.edit.po +2 -2
- data/locale/ja/foreman_discovery.po +2 -2
- data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ko/foreman_discovery.edit.po +2 -2
- data/locale/ko/foreman_discovery.po +2 -2
- data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +2 -2
- data/locale/pt_BR/foreman_discovery.po +2 -2
- data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ru/foreman_discovery.edit.po +2 -2
- data/locale/ru/foreman_discovery.po +2 -2
- data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/sv_SE/foreman_discovery.edit.po +1 -1
- data/locale/sv_SE/foreman_discovery.po +1 -1
- data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_CN/foreman_discovery.edit.po +2 -2
- data/locale/zh_CN/foreman_discovery.po +2 -2
- data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_TW/foreman_discovery.edit.po +2 -2
- data/locale/zh_TW/foreman_discovery.po +2 -2
- data/test/functional/api/v2/discovered_hosts_controller_test.rb +16 -17
- data/test/functional/api/v2/discovery_rules_controller_test.rb +2 -3
- data/test/functional/api/v2/fact_value_extensions_test.rb +1 -1
- data/test/functional/discovered_hosts_controller_test.rb +102 -133
- data/test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb +5 -6
- data/test/test_helper_discovery.rb +18 -0
- data/test/unit/discovered_extensions_test.rb +25 -33
- data/test/unit/discovery_attribute_set_test.rb +5 -8
- data/test/unit/discovery_taxonomy_extensions_test.rb +2 -2
- data/test/unit/host_discovered_test.rb +30 -30
- data/test/unit/managed_extensions_test.rb +0 -1
- metadata +6 -4
- data/app/services/foreman_discovery/node_api/power_legacy_direct_service.rb +0 -15
- data/app/services/foreman_discovery/node_api/power_legacy_proxied_service.rb +0 -12
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_discovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 10.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alongoldboim
|
@@ -36,9 +36,11 @@ authors:
|
|
36
36
|
- orrabin
|
37
37
|
- Petr Chalupa
|
38
38
|
- Phirince Philip
|
39
|
+
- Rahul Bajaj
|
39
40
|
- Robert Antoni Buj Gelonch
|
40
41
|
- Scubafloyd
|
41
42
|
- Sean O\'Keeffe
|
43
|
+
- Sebastian Gräßl
|
42
44
|
- Shimon Shtein
|
43
45
|
- Shlomi Zadok
|
44
46
|
- Stephen Benjamin
|
@@ -50,7 +52,7 @@ authors:
|
|
50
52
|
autorequire:
|
51
53
|
bindir: bin
|
52
54
|
cert_chain: []
|
53
|
-
date: 2017-10-
|
55
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
54
56
|
dependencies: []
|
55
57
|
description: MaaS Discovery Plugin engine for Foreman
|
56
58
|
email: gsutclif@redhat.com
|
@@ -88,8 +90,6 @@ files:
|
|
88
90
|
- app/services/foreman_discovery/node_api/inventory.rb
|
89
91
|
- app/services/foreman_discovery/node_api/node_resource.rb
|
90
92
|
- app/services/foreman_discovery/node_api/power.rb
|
91
|
-
- app/services/foreman_discovery/node_api/power_legacy_direct_service.rb
|
92
|
-
- app/services/foreman_discovery/node_api/power_legacy_proxied_service.rb
|
93
93
|
- app/services/foreman_discovery/node_api/power_service.rb
|
94
94
|
- app/services/foreman_discovery/ui_notifications/destroy_host.rb
|
95
95
|
- app/services/foreman_discovery/ui_notifications/new_host.rb
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- app/views/discovered_hosts/select_multiple_location.html.erb
|
116
116
|
- app/views/discovered_hosts/select_multiple_organization.html.erb
|
117
117
|
- app/views/discovered_hosts/show.html.erb
|
118
|
+
- app/views/discovered_hosts/welcome.html.erb
|
118
119
|
- app/views/discovered_mailer/_discovered_host.html.erb
|
119
120
|
- app/views/discovered_mailer/discovered_summary.html.erb
|
120
121
|
- app/views/discovered_mailer/discovered_summary.text.erb
|
@@ -155,6 +156,7 @@ files:
|
|
155
156
|
- extra/discovery/default.json
|
156
157
|
- extra/discovery/rhel-dl380-1kdisks.json
|
157
158
|
- extra/discovery/rhel-r730.json
|
159
|
+
- extra/discovery/rhel7-vlan.json
|
158
160
|
- extra/discovery/suse-vmware.json
|
159
161
|
- extra/generate-authors-file
|
160
162
|
- lib/discovery.rake
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module ForemanDiscovery::NodeAPI
|
2
|
-
# legacy /reboot call direct
|
3
|
-
class PowerLegacyDirectService < NodeResource
|
4
|
-
def initialize(args)
|
5
|
-
super args
|
6
|
-
raise ArgumentError, "Legacy direct service only supports http scheme" if scheme != 'http'
|
7
|
-
raise ArgumentError, "Legacy direct service only supports port 8443" if port != 8443
|
8
|
-
Foreman::Deprecation.deprecation_warning("1.11", "Discovery legacy API will be removed, use the new Power API")
|
9
|
-
end
|
10
|
-
|
11
|
-
def reboot
|
12
|
-
::ProxyAPI::BMC.new(:url => url).power :action => "cycle"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|