Skip to content

Commit

Permalink
Merge pull request #275 from carbonin/specify_platform_for_scap
Browse files Browse the repository at this point in the history
Specify rhel7 as the scap security guide platform
  • Loading branch information
bdunne authored Oct 3, 2017
2 parents d3a774a + 046c081 commit 2f0d09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/gems/pending/appliance_console/scap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def lockdown
require 'yaml'
scap_config = YAML.load_file(yaml_filename)
begin
LinuxAdmin::Scap.new.lockdown(*scap_config['rules'], scap_config['values'])
LinuxAdmin::Scap.new("rhel7").lockdown(*scap_config['rules'], scap_config['values'])
rescue => e
say("Configuration failed: #{e.message}")
else
Expand All @@ -31,7 +31,7 @@ def packages_installed?
if !LinuxAdmin::Scap.openscap_available?
say("OpenSCAP has not been installed")
false
elsif !LinuxAdmin::Scap.ssg_available?
elsif !LinuxAdmin::Scap.ssg_available?("rhel7")
say("SCAP Security Guide has not been installed")
false
else
Expand Down
2 changes: 1 addition & 1 deletion manageiq-gems-pending.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "binary_struct", "~> 2.1"
s.add_runtime_dependency "bundler", ">= 1.8.4" # rails-assets requires bundler >= 1.8.4, see: https://rails-assets.org/
s.add_runtime_dependency "highline", "~> 1.6.21" # Needed for the appliance_console
s.add_runtime_dependency "linux_admin", "~> 0.20.2"
s.add_runtime_dependency "linux_admin", "~> 1.0"
s.add_runtime_dependency "log4r", "= 1.1.8"
s.add_runtime_dependency "memoist", "~> 0.15.0"
s.add_runtime_dependency "more_core_extensions", "~> 3.4"
Expand Down

0 comments on commit 2f0d09f

Please sign in to comment.