Unable to create cloudera repo
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?
That's quite strange. Which version of puppet-zookeeper and Puppet do you use?
Puppet agent version:
[mcassidy1@X modules]$ puppet --version
4.4.1
Zookeeper module version is 0.6.1
@markcassidy What is the output of facter -y operatingsystemmajrelease?
Just to be sure, could you also post facter -y | grep operating?
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.