http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

106 views
Skip to first unread message

Colin Leavett-Brown

unread,
May 7, 2014, 7:19:57 PM5/7/14
to puppet...@googlegroups.com
Using the modules provided by this rpm, "puppet apply" results in "Could not find declared class ::openstack::repo at /etc/puppet/modules/havana/manifests/profile/base.pp:7". If we change /etc/puppet/modules/havana/manifests/profile/base.pp, line 7 to read "class { '::openstack::resources::repo': }", then a subsequent puppet apply results in "Error: Could not find class mysql::python". Apparently, this manifest has been moved to a subdirectory "bindings" (or is it in "tests" ?). Please can we have a workable rpm.

jcbollinger

unread,
May 8, 2014, 9:39:32 AM5/8/14
to puppet...@googlegroups.com
On Wednesday, May 7, 2014 6:19:57 PM UTC-5, Colin Leavett-Brown wrote:
Using the modules provided by this rpm, "puppet apply" results in "Could not find declared class ::openstack::repo at /etc/puppet/modules/havana/manifests/profile/base.pp:7". If we change /etc/puppet/modules/havana/manifests/profile/base.pp, line 7 to read "class { '::openstack::resources::repo': }", then a subsequent puppet apply results in "Error: Could not find class mysql::python". Apparently, this manifest has been moved to a subdirectory "bindings" (or is it in "tests" ?). Please can we have a workable rpm.


You have a module compatibility problem.  The RPM named in your subject line just sets up one of PL's YUM package repositories on your system.  That doesn't provide any Puppet modules, and neither do any of the RPMs available from the repository thereby configured.  Your problem has nothing whatever to do with PuppetLabs's RPMs or the YUM repository in which they reside

You can manage the modules installed on your master with the Puppet module tool.  If you are using the Enterprise version then there may be additional options available for that, too.

I am inclined to dislike the 'havana' module you are using purely on the basis that it has exposure to such issues in the first place, but in fairness, it is not always possible to altogether avoid such exposure.  At minimum, the 'havana' module should document its dependencies on other modules, in detail.  If you are using the puppetlabs-havana module, then I note that its documentation specifies that it works only with version 3 of the puppetlabs-openstack module.  I conclude that you have a different version of puppetlabs-openstack installed.


John

Colin Leavett-Brown

unread,
May 8, 2014, 12:25:46 PM5/8/14
to puppet...@googlegroups.com
Hi John, That makes complete sense, and thank you. I had scripted the install of the repository and modules and forgot the important parts of the script, namely:

    wget -O /tmp/havana.zip  https://github.com/puppetlabs/puppetlabs-havana/archive/master.zip
    unzip -d /etc/puppet/modules /tmp/havana.zip
    mv /etc/puppet/modules/puppetlabs-havana-master /etc/puppet/modules/havana
    .
    .
    puppet module install puppetlabs-ntp
    puppet module install puppetlabs/openstack
    puppet module install puppetlabs/mongodb

I will be reviewing the puppet modules and making sure I have compatible (havana for now) versions.

Colin.
Reply all
Reply to author
Forward
0 new messages