Bug 802252 - Unable to install Katello on Puppet 2.7 (ERB error)
Summary: Unable to install Katello on Puppet 2.7 (ERB error)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Katello
Classification: Retired
Component: Installer
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 08:26 UTC by Lukas Zapletal
Modified: 2012-07-17 13:09 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-17 13:09:42 UTC


Attachments (Terms of Use)

Description Lukas Zapletal 2012-03-12 08:26:24 UTC
Description of problem:

> Failed to parse template candlepin/etc/candlepin/candlepin.conf.erb:
> undefined method `empty?' for :undefined:Symbol at
> /usr/share/katello/install/puppet/modules/candlepin/manifests/config.pp:24
> on node host1.example.com

This line does not work in Puppet:

<% unless scope.lookupvar("candlepin::params::katello_oauth_key").empty? -%>

See this upstream bug: http://projects.puppetlabs.com/issues/8707

It seems we was not generating candlepin.conf until now (we now fix its permissions), so the template was always skipped.

Comment 1 Lukas Zapletal 2012-03-12 08:42:30 UTC
For Puppet 2.6 this is not a problem.

Comment 2 Lukas Zapletal 2012-03-12 09:47:25 UTC
Fixing to get it working on both Puppet 2.6 and 2.7. Pushing also a simple ERB syntax checker that now runs during RPM build.

8ea58f2 802252 - Adding ERB syntax checker to the SPEC
52f4ff3 802252 - Unable to install Katello on Puppet 2.7

Comment 3 Lukas Zapletal 2012-03-12 14:56:46 UTC
And a fix:

58c5efd 802252 - adding missing Ruby build dependency

Comment 4 Bryan Kearney 2012-07-17 13:09:42 UTC
Moving all community bugs with fixes to closed.


Note You need to log in before you can comment on or make changes to this bug.