foreman_openscap 0.6.7 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/routes.rb +2 -2
- data/lib/foreman_openscap/engine.rb +8 -12
- data/lib/foreman_openscap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb3744e73ddf3598ad80b9b73a6a0976f9d3323e
|
|
4
|
+
data.tar.gz: 9d13279059f0b9a936264fd0504b030bc67fe7c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14555d42760bae73b2e361eeb3e2235b66ea13eb6da1c36008891c4d448b01329da7194e1317b79c24ecb72b4f21f8909e23565475c1d241d6d9721d49541c62
|
|
7
|
+
data.tar.gz: 8f2421b8a49450ee99a665f37866d9c6e0a91e1312eb4142604279b7371ec56b4f0fb1b2693d9697b317322ffaf724e4ce7c52e66bfe8c484cee495497c198f4
|
data/config/routes.rb
CHANGED
|
@@ -27,9 +27,9 @@ Rails.application.routes.draw do
|
|
|
27
27
|
get 'auto_complete_search'
|
|
28
28
|
post 'scap_content_selected'
|
|
29
29
|
post 'tailoring_file_selected'
|
|
30
|
-
|
|
30
|
+
post 'select_multiple_hosts'
|
|
31
31
|
post 'update_multiple_hosts'
|
|
32
|
-
|
|
32
|
+
post 'disassociate_multiple_hosts'
|
|
33
33
|
post 'remove_policy_from_multiple_hosts'
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -42,7 +42,7 @@ module ForemanOpenscap
|
|
|
42
42
|
|
|
43
43
|
initializer 'foreman_openscap.register_plugin', :before => :finisher_hook do |app|
|
|
44
44
|
Foreman::Plugin.register :foreman_openscap do
|
|
45
|
-
requires_foreman '>= 1.
|
|
45
|
+
requires_foreman '>= 1.15'
|
|
46
46
|
|
|
47
47
|
apipie_documented_controllers ["#{ForemanOpenscap::Engine.root}/app/controllers/api/v2/compliance/*.rb"]
|
|
48
48
|
|
|
@@ -120,6 +120,8 @@ module ForemanOpenscap
|
|
|
120
120
|
:view_openscap_proxies]
|
|
121
121
|
role "Create ARF report", [:create_arf_reports] # special as only Proxy can create
|
|
122
122
|
|
|
123
|
+
add_all_permissions_to_default_roles
|
|
124
|
+
|
|
123
125
|
#add menu entries
|
|
124
126
|
divider :top_menu, :caption => N_('Compliance'), :parent => :hosts_menu
|
|
125
127
|
menu :top_menu, :compliance_policies, :caption => N_('Policies'),
|
|
@@ -155,17 +157,11 @@ module ForemanOpenscap
|
|
|
155
157
|
parameter_filter Hostgroup, :openscap_proxy_id, :openscap_proxy
|
|
156
158
|
parameter_filter Log, :result
|
|
157
159
|
|
|
158
|
-
if ForemanOpenscap.with_remote_execution?
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
|
|
165
|
-
options[:host_action_button] = true
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"), options)
|
|
160
|
+
if ForemanOpenscap.with_remote_execution? && Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
|
|
161
|
+
RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"),
|
|
162
|
+
:description => N_("Run OpenSCAP scan"),
|
|
163
|
+
:host_action_button => true,
|
|
164
|
+
:provided_inputs => "policies")
|
|
169
165
|
end
|
|
170
166
|
|
|
171
167
|
add_controller_action_scope(::Api::V2::HostsController, :index) do |base_scope|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_openscap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Šimon Lukašík"
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2017-
|
|
14
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: deface
|