Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

PE code deployment fails with undefined method when external modules declared in Puppetfile

$
0
0
I've created a basic Puppet Enterprise setup for testing. It has a puppet_control repo (using the Puppet-supplied example), uses Code Manager and only pulls in a handful of modules from the Forge and has a few manifests. However, whenever I run `puppet-code deploy --all --wait`, I get the following error: [{"environment":"production","id":5,"status":"failed","error":{"kind":"puppetlabs.code-manager/deploy-failure","details":{"corrected-env-name":"production"},"msg":"Errors while deploying environment 'production' (exit code: 1):\nERROR\t -> undefined method `each' for #\n"}}] (Running `puppet-code deploy` with a `-l debug` or `-l trace` does not produce anything more in-depth on that error. What's interesting is that if I remove all of the `module` lines from Puppetfile, i.e. don't import any modules, then the deployment works and the code is synced from */etc/puppetlabs/code-staging/* to */etc/puppetlabs/code/*. The only wrench in this whole setup that may be affecting this is that the Puppet Master/Server has to go through a web proxy to get out to the Internet. However, this works. OTOH, I have no idea if Code Manager isn't following what it sees in `r10k.yaml`. Any ideas would be appreciated.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>