ghoneycutt / puppet-module-ssh

Puppet module to manage SSH
Other
34 stars 184 forks source link

Warning '6' coerced to 6 #231

Closed rgarrigue closed 1 year ago

rgarrigue commented 7 years ago

Hi

Since I was around, just a little warning popping up on my test env

==> test.vagrant.local: Warning: The string '6' was automatically coerced to the numerical value 6 at /etc/puppetlabs/code/environments/production/modules/ssh/manifests/init.pp:283:3

Cheers,

ghoneycutt commented 7 years ago

Thanks for reporting. When moving to Puppet v4 only and dropping support for v3, we should use integers instead of strings where appropriate.

fnoop commented 7 years ago

Yes, these warnings have popped up on every run since an upgrade from puppet 4.10.1 to 4.10.4:

Warning: The string '7' was automatically coerced to the numerical value 7 at /srv/maverick/software/maverick/manifests/puppet-modules/ssh/manifests/init.pp:283:32
Warning: The string '2' was automatically coerced to the numerical value 2 at /srv/maverick/software/maverick/manifests/puppet-modules/ssh/manifests/init.pp:284:32

https://docs.puppet.com/puppet/4.10/release_notes.html#automatic-string-to-numeric-conversions-deprecated

baurmatt commented 6 years ago

@ghoneycutt When are you planning to remove the support of Puppet 3? Its EOL for almost a year now ;)

darkfeline commented 6 years ago

Ubuntu Trusty is EOL in 2019, and it still ships Puppet 3.4.3.

I hate having to support/maintain old software as much as any other developer, just keep in mind that supporting old versions is much appreciated for the poor people who have no choice but to use old versions.

baurmatt commented 6 years ago

That's definitely not a good excuse. You can easily use the stable packages provided by http://apt.puppetlabs.com/. If not, I could argue that CentOS 7 also includes Puppet 3 and is supported until 2024. I pretty sure we shouldn't wait that long ;)

ghoneycutt commented 6 years ago

Currently working through upgrading my most used modules to support Puppet 5 and drop support for Puppet 3. SSH is next after pam and yum.

I intend to continue to support old OS platforms, just not old puppet versions. @darkfeline You can run newer puppet versions on your old platforms.

darkfeline commented 6 years ago

If all organizations/managers listened to reason, the world would be a very different place. Packages shipped in the official repos is very different from installing from third party sources from a policy perspective. I am not demanding that Puppet 3 be supported, I am just saying why some users may want it. Anecdotally, I think more orgs run LTS Ubuntu than CentOS.

ghoneycutt commented 6 years ago

@darkfeline When we drop support for Puppet3 it will be a major version change. While I will not actively support Puppet 3, I can leave a puppet3 branch in this repo and will merge pull requests to that branch if the community wants to send PR's and keep it alive.

linuxcube commented 6 years ago

Was this issue ever fixed, I still see the WARN in my puppet runs. Please advise

Phil-Friderici commented 1 year ago

Fixed in v4.