Hi guys,

After upgrading my puppetmaster from 3.1.1 to 3.2.1 I'm getting the error 
below:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Failed to parse template dashboard/passenger-vhost.erb:
  Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb
  Line: 81
  Detail: Could not find value for 'dashboard_port' at 
/etc/puppet/modules-0/dashboard/templates/passenger-vhost.erb:1
 at /etc/puppet/modules-0/apache/manifests/vhost.pp:117 on node 
puppet1.puppet.test
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

It works if I edit the passenger-vhost.erb and add a @ in all variables:

Listen <%= @dashboard_port %>

<VirtualHost *:<%= @dashboard_port %>>
  ServerName <%= @name %>
  DocumentRoot <%= @docroot %>
  RailsBaseURI <%= @rails_base_uri %>
  <Directory <%= @docroot %>>

Is this expected behavior in Puppet 3.2.1 ?

Here is my class definition:

  class {'dashboard':
    dashboard_ensure        => 'present',
    dashboard_user          => 'www-data',
    dashboard_group         => 'www-data',
    dashboard_db            => 'dashboard_prod',
    dashboard_charset       => 'utf8',
    dashboard_port          => '8080',
    passenger               => true,
  }

Regards,
Felipe

-- 
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.


Reply via email to