About | FAQ | Help
Ask Your Question

Puppet-Agent failure with apt module

asked 2018-05-17 09:38:22 -0500

buddy_spencer gravatar image


We have some issues with our raspberrys with the puppet-agent. Today I updated the puppetserver to the newest version of puppetserver(5.3.1-1). After that I upgraded the old modules, like apt(previously version 2.2.2) to the latest version and installed the docker module.

And now I get the following error-message on the raspberrys:

Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: A substring operation does not accept a String as a character index. Expected an Integer (file: /etc/puppetlabs/code/environments/hosting_web/modules/apt/manifests/params.pp, line: 75, column: 21) on node atlxweb31110.at.strabag.com","issue_kind":"RUNTIME_ERROR"}

The agent and facter version is of course very old, because puppet doesn't offer new packages for ARM-architecture.

ii  puppet                         3.7.2-4                     all          configuration management system, agent
ii  puppet-common                  3.7.2-4                     all          configuration management system
ii  facter                         2.2.0-1                     all          collect and display facts about the system

Any ideas what's wrong and how to fix this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-18 17:45:51 -0500

binford2k gravatar image

It's because you have very old facts and the structure doesn't match what's expected. See https://github.com/puppetlabs/puppetl...

You'll have to pin to old versions of modules if you cannot upgrade your Puppet infrastructure.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-05-17 09:38:22 -0500

Seen: 37 times

Last updated: May 18