Bug 802252

Summary: Unable to install Katello on Puppet 2.7 (ERB error)
Product: [Retired] Katello Reporter: Lukas Zapletal <lzap>
Component: InstallerAssignee: Lukas Zapletal <lzap>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 13:09:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.