puppet-zookeeper icon indicating copy to clipboard operation
puppet-zookeeper copied to clipboard

Unable to create cloudera repo

Open markcassidy opened this issue 9 years ago • 4 comments

Trying to install the cloudera yum repository for zookeeper on RHEL 7 as follows:

[mcassidy1@X]$ sudo /usr/local/bin/puppet apply -e 'class {"zookeeper::repo": source => 'cloudera', cdhver => '5' }' --noop --basemodulepath=$PWD --verbose
...
Error: Evaluation Error: Error while evaluating a Function Call, CDH version'5' is not a supported cloudera repo. at /home/mcassidy1/modules/zookeeper/manifests/repo.pp:59:17 on node X

The error message is generated by the default case of $cdhver in repo.pp; however the 5 value is a valid case. Why is it hitting the default?

markcassidy avatar Aug 25 '16 13:08 markcassidy

That's quite strange. Which version of puppet-zookeeper and Puppet do you use?

deric avatar Aug 30 '16 08:08 deric

Puppet agent version:

[mcassidy1@X modules]$ puppet --version
4.4.1

Zookeeper module version is 0.6.1

markcassidy avatar Aug 30 '16 12:08 markcassidy

@markcassidy What is the output of facter -y operatingsystemmajrelease?

Just to be sure, could you also post facter -y | grep operating?

deric avatar Nov 01 '16 12:11 deric

I suspect this might be a type issue, which were heavily changed in Puppet 4. But from your code it seems that cdhver should be parsed as a String which should be matched by the case.

deric avatar Nov 01 '16 12:11 deric