Skip to content

Commit

Permalink
find after ruby builds
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Powell <[email protected]>
  • Loading branch information
tpowell-progress committed Oct 24, 2024
1 parent c7702ba commit aeed6f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/software/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,5 @@
command "ls #{install_dir}/embedded/ssl/fipsmodule.cnf"
command "#{windows? ? "Perl.exe" : ""} ./util/wrap.pl -fips #{install_dir}/embedded/bin/openssl list -provider-path providers -provider fips -providers"
command "#{install_dir}/embedded/bin/openssl list -providers"
command "echo '🤔🐴💩 <<< openssl dir >>>'"
command "find #{install_dir}"
end
end
5 changes: 5 additions & 0 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@
if windows?
puts "Finding all the rubies installed and checking their fips_mode status"
find_command = %{
Get-ChildItem c:/opscode -name 'ruby.*' -recurse
Get-ChildItem c:/opscode -name 'ruby.exe' -recurse | ForEach-Object {
& $_ -e "require 'openssl'; puts OpenSSL::OPENSSL_VERSION_NUMBER.to_s(16); puts OpenSSL::OPENSSL_LIBRARY_VERSION; OpenSSL.fips_mode = 1; puts 'FIPS mode successfully activated for Ruby' + RUBY_VERSION"
}
Expand All @@ -401,5 +403,8 @@
}
end
command find_command

command "echo '🤔🐴💩 <<< openssl dir >>>'"
command "find #{install_dir}"
end
end

0 comments on commit aeed6f0

Please sign in to comment.