dev-sec / puppet-os-hardening

This puppet module provides numerous security-related configurations, providing all-round base protection.
http://dev-sec.io/
Apache License 2.0
281 stars 101 forks source link

os_hardening failing on centos7 #241

Closed lokeshreddy4u closed 3 years ago

lokeshreddy4u commented 4 years ago

Describe the bug puppet agent run failing on CentOS 7

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, 'split' parameter 'str' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/modules/os_hardening/manifests/minimize_access.pp, line: 59, column: 18) on node x.x.x.x.ec2.internal
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Example code

Apply os_hardening module on CentOS7

OS / Environment

CentOS Linux release 7.8.2003 (Core) Amazon EC2 instance

Puppet Version

6.16.0

Additional context facter --custom-dir=/opt/puppetlabs/puppet/cache/lib/facter home_users /home/centos

mcgege commented 4 years ago

@lokeshreddy4u Is this still valid? I'm using os_hardening on multiple CentOS 7 platforms without problem ... If yes: Can you give some more infos on your installation?