[meta-virtualization] [m-c-s][PATCH 1/5] Fix the puppet run failure issue

Mark Asselstine mark.asselstine at windriver.com
Wed Aug 19 19:56:08 PDT 2015


From: Guojian Zhou <guojian.zhou at windriver.com>

The puppet's execution depends on the facter, so add the required
RDEPENDS in the bb file.

The puppet tool run failure information:
==============================================
root@# puppet help
/usr/lib64/ruby/rubygems/custom_require.rb:36:in `require': cannot load such file -- facter (LoadError)
from /usr/lib64/ruby/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/puppet-3.7.3/lib/puppet.rb:6:in `<top (required)>'
from /usr/lib64/ruby/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:12:in `<top (required)>'
from /usr/lib64/ruby/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/rubygems/custom_require.rb:36:in `require'
from /usr/lib64/ruby/gems/1.9.1/gems/puppet-3.7.3/bin/puppet:7:in `<top (required)>'
from /usr/bin/puppet:23:in `load'
from /usr/bin/puppet:23:in `<main>'

Signed-off-by: Guojian Zhou <guojian.zhou at windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 meta-openstack/recipes-support/puppet/puppet_3.7.3.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb b/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb
index afd9a23..22376cf 100644
--- a/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb
+++ b/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb
@@ -18,6 +18,12 @@ DEPENDS += " \
         hiera \
 "
 
+RDEPENDS_${PN} += " \
+        ruby \
+        facter \
+        hiera \
+"
+
 RUBY_INSTALL_GEMS = "puppet-${PV}.gem"
 
 do_install_append() {
-- 
2.1.4



More information about the meta-virtualization mailing list