-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manage repo trough proxy #394
Comments
I'd suggest to manage the repo on your own (manage_repo => false) and handle http proxies and such over there. |
Okay, an exec getting the key by wget works for me. If I want to do it as written at the top, how is "source" getting the file? It uses wget also, or is it curl? I am asking because it´s not so simple to define proxy settings and noproxy settings for different linux applications. A also tried zypprepo but this as proxy options only for yum repos |
You should configure your zypper to use a proxy before declaring the class icinga. If you'll do this by puppet you can use icinga with manage_repo => true. |
I made this already by setting up /etc/sysconfig/proxy with all necessary noproxy entries. |
Sorry, my mistake. The fiel resource that handle the key isn't involved by zypper. But zypper has an property gpgkey to handle the key. So maybe we can replace the the file resource with this property. As a workaround for your problem please use manage_repo => false and manage the zypper resource before the icinga2 class by your own. Let me now if you need additional help to implement it. |
related to #397 |
I made it. Zypper take the credentials from /root/.curlrc not in every situation. I had to enter the credentials to HTTP_PROXY in /etc/sysconfig/proxy as well. |
I want to add icinga2 repo and getting the following message:
Error: /Stage[main]/Icinga2::Repo/File[/etc/pki/GPG-KEY-icinga]: Could not evaluate: Could not retrieve file metadata for http://packages.icinga.com/icinga.key: getaddrinfo: Name or service not known
So, it hangs in repo.pp at:
How does puppet get the source? The better question is how can I setup the puppet client node to do this trough proxy with authentication?
Puppet modules:
├── common (v0.1.0)
├── icinga-icinga2 (v1.3.0)
├── puppet-zypprepo (v2.0.0)
├── puppetlabs-apt (v4.1.0)
├── puppetlabs-chocolatey (v2.0.2)
├── puppetlabs-concat (v2.2.1)
├── puppetlabs-ntp (v6.3.0)
├── puppetlabs-powershell (v2.1.0)
├── puppetlabs-registry (v1.1.4)
└── puppetlabs-stdlib (v4.17.1)
puppet version: 4.10.8
OS: SLES 12.2
Best regards, Markus
The text was updated successfully, but these errors were encountered: