-
Notifications
You must be signed in to change notification settings - Fork 34
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
template varaible array issue #7
Comments
|
Nice catch. In theory, |
|
no, I am passing the default item in the array. |
|
That's not valid syntax. Could you provide a real code snippet? |
|
sorry about delayed as I'd been rebuilding the machine. The code snippet as below is in gmond.pp:- class ganglia::gmond ( |
|
I apologize if my request was vague, what I was asking for a snippet from your manifest in which you are declaring the ganglia::gmond class. |
|
I believe PR #11 should prevent the |
I've had issue on /etc/puppet/environments/production/modules/ganglia/templates/gmond.conf.el6.erb (el5 as well i guess) with error
"
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template ganglia/gmond.conf.el6.erb:
Filepath: /etc/puppet/environments/production/modules/ganglia/templates/gmond.conf.el6.erb
Line: 36
Detail: undefined method `each' for nil:NilClass
at /etc/puppet/environments/production/modules/ganglia/manifests/gmond/config.pp:25 on node rhel6test.datamail.co.nz
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
"
running on puppet agent 3.3. It looks like ruby doens't understand .each loopinh function in the template. I'd added the following to fix it.
<% if @udp_send_channel.is_a? Array ; @udp_send_channel.each do |channel| -%>
... ...
... ...
<% end ; end -%>
The text was updated successfully, but these errors were encountered: