Hi Group

I have a problem with apt :: key I get the following error

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: 
Server Error: Evaluation Error: Error while evaluating a Resource Statement, 
Apt::Key[test]: parameter 'server' expects a String value, got Undef at /etc
/puppetlabs/code/environments/production/modules/my_pack/manifests/repo.pp:9 
on node testaptdeploy.localdomain
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run


As I read in the documentation the variable server is not mandatory (this 
message appears since I updated to apt V4.1, when working with 2.4 worked 
correctly), but when I add the variable server and put any url apt :: Key 
is no problem, the problem is that I do not need to place the variable 
server, this would be a dummy in my module code.


I have read the link they recommend 
https://puppet.com/blog/ntp-puppet-4-language-update

But apt :: key code I do not see any problem

Don't Work
  apt::key { 'test':
        source => 'http://URL/GPG',
        id     => 'GPGCODE',
      }

It works

apt::key { 'test':
        source => 'http://URL/GPG',
        id     => 'GPGCODE',
        server => 'ANY_URL'
      }


Information deploy

Pupper-server v4.10.6
Puppet-agent v4.10.6

Thanks for your help


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ec4847fe-2f23-4974-8b1c-b4782a079bc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to