[meta-virtualization] [m-c-s][PATCH 3/5] Add the ruby-shadow recipe for the puppet tool

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


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

The puppet could not add or change the user's password automatically,
because the puppet tool requires the "libshadow" to implement this feature.

Failure information without the "libshadow" feature:
==================================================================
Debug: /User[username]: Provider useradd does not support features
manages_passwords; not managing attribute password

Signed-off-by: Guojian Zhou <guojian.zhou at windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 .../recipes-support/puppet/puppet_3.7.3.bb         |  1 +
 .../recipes-support/ruby-shadow/ruby-shadow_git.bb | 23 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 meta-openstack/recipes-support/ruby-shadow/ruby-shadow_git.bb

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 f201a7b..c1743e6 100644
--- a/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb
+++ b/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb
@@ -23,6 +23,7 @@ RDEPENDS_${PN} += " \
         ruby \
         facter \
         hiera \
+        ruby-shadow \
 "
 
 RUBY_INSTALL_GEMS = "puppet-${PV}.gem"
diff --git a/meta-openstack/recipes-support/ruby-shadow/ruby-shadow_git.bb b/meta-openstack/recipes-support/ruby-shadow/ruby-shadow_git.bb
new file mode 100644
index 0000000..72be016
--- /dev/null
+++ b/meta-openstack/recipes-support/ruby-shadow/ruby-shadow_git.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Shadow Password Module"
+HOMEPAGE = "https://github.com/apalmblad/ruby-shadow"
+LICENSE = "PD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=137882914e5269b7268f0fe8e28a3f89"
+
+PV = "2.4.1"
+
+SRC_URI = "git://github.com/apalmblad/ruby-shadow.git"
+SRCREV = "4231a4838fd50022b112838f114ee0586e119605"
+S = "${WORKDIR}/git"
+
+inherit ruby
+
+DEPENDS += " \
+        ruby \
+"
+
+RDEPENDS_${PN} += " \
+        ruby \
+"
+
+RUBY_INSTALL_GEMS = "ruby-shadow-${PV}.gem"
+FILES_${PN}-dbg += "/usr/lib64/ruby/gems/*/gems/ruby-shadow-${PV}/.debug/shadow.so"
-- 
2.1.4



More information about the meta-virtualization mailing list