aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuojian Zhou <guojian.zhou@windriver.com>2015-08-19 22:56:10 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-08-20 13:38:48 -0400
commitbd7a3f804950ae454d025aa8773789441a63820c (patch)
treeaccc6e8bf6f8f14de6e771c0fed0564ba7004cb8
parent7c0b2edd50fb11c5e8ea86b533d7caea50cf3d6d (diff)
downloadmeta-cloud-services-bd7a3f804950ae454d025aa8773789441a63820c.tar.gz
meta-cloud-services-bd7a3f804950ae454d025aa8773789441a63820c.tar.bz2
meta-cloud-services-bd7a3f804950ae454d025aa8773789441a63820c.zip
Add the ruby-shadow recipe for the puppet tool
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@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--meta-openstack/recipes-support/puppet/puppet_3.7.3.bb1
-rw-r--r--meta-openstack/recipes-support/ruby-shadow/ruby-shadow_git.bb23
2 files changed, 24 insertions, 0 deletions
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 f201a7b2..c1743e6e 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 00000000..72be016c
--- /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"