Ask Your Question
1

Curl error applying class "pe_repo::platform::ubuntu_1404_amd64"

asked 2014-05-06 14:50:13 -0500

yaplej gravatar image

updated 2014-05-06 16:38:42 -0500

spuder gravatar image

I installed puppet on a VPS to try it out on a CentOS 6.5 host. I was adding an Ubuntu agent so added the class "pe_repo::platform::ubuntu_1404_amd64". When it tried to apply to my master I get this error.

curl -f -L -o puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz https://pm.puppetlabs.com/puppet-enterprise/3.2.3/puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz returned 22 instead of one of [0]

Same happens for the i386 repo too.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-06 16:45:25 -0500

spuder gravatar image

When I run your command I get the same error

By removing the -f (fail silently), the file downloads properly.

With the -f

[root@interactive tmp]# curl -f -L -o puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz https://pm.puppetlabs.com/puppet-enterprise/3.2.3/puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   289    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
[root@interactive tmp]# echo $?
22

Without the -f

[root@interactive tmp]# curl -L -o puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz https://pm.puppetlabs.com/puppet-enterprise/3.2.3/puppet-enterprise-3.2.3-ubuntu-14.04-amd64-agent.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
115   289  115   231    0     0    432      0 --:--:-- --:--:-- --:--:--   432
[root@interactive tmp]# echo $?
0
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

2 followers

Stats

Asked: 2014-05-06 14:50:13 -0500

Seen: 660 times

Last updated: May 06 '14