Red Hat Bugzilla – Bug 1247175
Need newer ruby for RHEL 5.x systems to work with puppet facter
Last modified: 2017-02-23 14:49:09 EST
Description of problem: The custom fact provided by openscap converts an array to a hash using Hash, which isn't supported on Ruby 1.8.5. 1.8.5: 1.8.5-p231 :003 > Hash[[['foo', 'bar']]] ArgumentError: odd number of arguments for Hash from (irb):3:in `[]' from (irb):3 from :0 Newer: irb(main):001:0> Hash[[['foo', 'bar']]] => {"foo"=>"bar"} Version-Release number of selected component (if applicable): * Satellite 6.1.1 SNAP 14 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created redmine issue http://projects.theforeman.org/issues/12304 from this bug
Upstream bug component is SCAP Plugin
*** Bug 1232023 has been marked as a duplicate of this bug. ***
To verify: * Sync all of RHEL 5Server and 5.11 RPMs from CDN * Create a custom product and synchronize the Tools channel for RHEL 5 x86_64 using the internal URL usually provided with a new build * Create a content view and add these repositories to it * Publish the content view * Create an activation key, associating it to this content view * Provision a new RHEL 5 x86_64 Host, perhaps using a Host Group + a libVirt Compute Resource * Check that the provisioned Host shows/generates Puppet reports
Verified in 6.1.6 Compose #5 Sample content from a RHEL5 host puppet report: Level Resource message info Puppet Retrieving plugin info Puppet Caching certificate_revocation_list for ca notice /File[/var/lib/puppet/lib/puppet]/ensure created notice /File[/var/lib/puppet/lib/puppet/provider]/ensure created notice /File[/var/lib/puppet/lib/puppet/provider/file_line]/ensure created notice /File[/var/lib/puppet/lib/puppet/parser]/ensure created notice /File[/var/lib/puppet/lib/puppet/parser/functions]/ensure created notice /File[/var/lib/puppet/lib/puppet/parser/functions/ensure_packages.rb]/ensure defined content as '{md5}fbed5c0c9bf82b7746e01f15f89d184f' notice /File[/var/lib/puppet/lib/puppet/parser/functions/validate_hash.rb]/ensure defined content as '{md5}e9cfaca68751524efe16ecf2f958a9a0' notice /File[/var/lib/puppet/lib/puppet/parser/functions/count.rb]/ensure defined content as '{md5}9eb74eccd93e2b3c87fd5ea14e329eba' notice /File[/var/lib/puppet/lib/puppet/parser/functions/validate_bool.rb]/ensure defined content as '{md5}a712634a000024398b3c6cd4ecc46463' notice /File[/var/lib/puppet/lib/puppet/parser/functions/get_module_path.rb]/ensure defined content as '{md5}d4bf50da25c0b98d26b75354fa1bcc45' notice /File[/var/lib/puppet/lib/puppet/parser/functions/is_ip_address.rb]/ensure defined content as '{md5}a714a736c1560e8739aaacd9030cca00' notice /File[/var/lib/puppet/lib/puppet/parser/functions/is_numeric.rb]/ensure defined content as '{md5}93ddc9d4c0834a5e5e0562d7b3cdce91' notice /File[/var/lib/puppet/lib/puppet/parser/functions/delete.rb]/ensure defined content as '{md5}96e569dac96b8c9387e9303445d73048' notice /File[/var/lib/puppet/lib/puppet/parser/functions/is_domain_name.rb]/ensure defined content as '{md5}cf72726c0fec831eb703ec9deea739eb' notice /File[/var/lib/puppet/lib/puppet/parser/functions/has_ip_address.rb]/ensure defined content as '{md5}ee207f47906455a5aa49c4fb219dd325' notice /File[/var/lib/puppet/lib/puppet/parser/functions/validate_absolute_path.rb]/ensure defined content as '{md5}385137ac24a2dec6cecc4e6ea75be442' notice /File[/var/lib/puppet/lib/puppet/parser/functions/has_key.rb]/ensure defined content as '{md5}7cd9728c38f0b0065f832dabd62b0e7e'
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:0052
Moving to POST since upstream bug http://projects.theforeman.org/issues/12304 has been closed