[devsec] Re: no implicit conversion of Integer into String

  • From: Michael Geiger <info@xxxxxxxxxx>
  • To: devsec@xxxxxxxxxxxxx, Hanspeter Kunz <hkunz@xxxxxxxxxx>
  • Date: Mon, 29 Apr 2019 19:41:36 +0200

Hi Hanspeter,

this is realy weird ... I'm deploying os_hardening in different
environments and have not seen such an error before.

Please open a ticket here, I'll try to help:
https://github.com/dev-sec/puppet-os-hardening/issues


Greetings

Michael



Am 28.04.2019 um 22:56 schrieb Hanspeter Kunz:

Hi there,

I get a lot of these errors:

Error:
/Stage[main]/Os_hardening::Sysctl/Sysctl[net.ipv4.conf.default.rp_filte
r]/ensure: change from 'absent' to 'present' failed: Could not set
'present' on ensure: no implicit conversion of Integer into String
(file:
/etc/puppetlabs/code/environments/ifi/modules/os_hardening/manifests/sy
sctl.pp, line: 78)
Error: Could not set 'present' on ensure: no implicit conversion of
Integer into String (file:
/etc/puppetlabs/code/environments/ifi/modules/os_hardening/manifests/sy
sctl.pp, line: 111)
Error: Could not set 'present' on ensure: no implicit conversion of
Integer into String (file:
/etc/puppetlabs/code/environments/ifi/modules/os_hardening/manifests/sy
sctl.pp, line: 111)
Wrapped exception:
no implicit conversion of Integer into String

even if I just using only default parameter values, i.e.

class { "os_hardening": }

in fact, it seems I get such an error for every instance of 'bool2num'
in os_hardening/manifests/sysctl.pp, e.g. (corresponding to the error
above)

line 111: sysctl { 'net.ipv4.conf.all.arp_ignore': value =>
bool2num($arp_restricted) }

I am using 

* puppetserver 6.3.0-1stretch
* herculesteam-augeasproviders_sysctl (v2.3.1)

Best regards,
Hanspeter Kunz

________________________________________
Mailing list: https://www.freelists.org/list/devsec
Archive: https://www.freelists.org/archive/devsec
Post to: devsec@xxxxxxxxxxxxx
Unsubscribe: https://www.freelists.org/list/devsec

Other related posts: