On Friday, May 10, 2013 7:35:48 AM UTC-5, Fco CM wrote: > > Hi, > > did you try: > > node default { > > include epel > > } > >
That is not the issue. The error message he reported shows that his class is assigned to the target node, for the error occurs when the Package resource declared in it is being applied. Francesco: it is unlikely to be possible to configure Puppet to issue HTTP requests through a proxy only during the application of one non-Exec resource. System commands issued by Puppet (such as 'rpm') will typically run each in a separate and very sparse environment, so one cannot set up the environment of another. You could conceivably set up and run a special-purpose http service on the local host that proxies requests via your main organizational proxy server; the important point here would be that you would rewrite the URL in your Package resource to refer to that service; maybe something like this: source => 'http://localhost/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm<http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm> ' (where that special-purpose service knows that the ultimate server to which requests need to be directed is dl.fedoraproject.org, via your proxy). But that's an awful lot of work for a such a specialized need. You should consider simply installing epel-release as part of initial system provisioning. If that won't work for you, then you can instead either 1. Use a Yumrepo resource to set up the repository. Relative to the package, this has the shortcoming that it will not install the repo's public key, but you can do that separately via a File resource. 2. Serve the RPM from an internal source instead. If you are running Puppet via apache/passenger, then that source could be the same apache instance that hosts Puppet. It could also be a network filesystem accessible to your nodes, or even a local file (that you can ensure present via a File resource). Good luck, John -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.