[meta-virtualization] [m-c-s][PATCH 1/2] puppet: add puppetlabs stdlib module

Mark Asselstine mark.asselstine at windriver.com
Sat Jan 9 11:04:14 PST 2016


This module is used by many puppet modules so will be useful to have
to extend our puppet capabilities. Additionally it offers some useful
functionality such as the ability to append to a file.

Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 .../puppetlabs-stdlib/files/Add-gemspec.patch      | 35 ++++++++++++++++++++++
 .../puppetlabs-stdlib/puppetlabs-stdlib_git.bb     | 29 ++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch
 create mode 100644 recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb

diff --git a/recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch b/recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch
new file mode 100644
index 0000000..d959aeb
--- /dev/null
+++ b/recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch
@@ -0,0 +1,35 @@
+From e23971fcc1425e06a11484e552fbc631c43f44d4 Mon Sep 17 00:00:00 2001
+From: Mark Asselstine <mark.asselstine at windriver.com>
+Date: Tue, 22 Dec 2015 11:05:22 -0500
+Subject: [PATCH] Add gemspec
+
+Started with an example from here
+http://guides.rubygems.org/make-your-own-gem/
+
+Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
+---
+ puppetlabs-stdlib.gemspec | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+ create mode 100644 puppetlabs-stdlib.gemspec
+
+diff --git a/puppetlabs-stdlib.gemspec b/puppetlabs-stdlib.gemspec
+new file mode 100644
+index 0000000..6b7eee3
+--- /dev/null
++++ b/puppetlabs-stdlib.gemspec
+@@ -0,0 +1,12 @@
++Gem::Specification.new do |s|
++  s.name        = 'puppetlabs-stdlib'
++  s.version     = '4.10.0'
++  s.date        = '2015-12-15'
++  s.summary     = "Puppet Labs Standard Library module"
++  s.description = s.summary
++  s.authors     = ["Puppet Labs"]
++  s.email       = ''
++  s.files       = %w(LICENSE README.markdown Rakefile) + Dir.glob('{lib,spec}/**/*')
++  s.homepage    = 'https://github.com/puppetlabs/puppetlabs-stdlib'
++  s.license     = 'Apache 2.0'
++end
+-- 
+2.1.4
+
diff --git a/recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb b/recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb
new file mode 100644
index 0000000..2d3d9c2
--- /dev/null
+++ b/recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb
@@ -0,0 +1,29 @@
+SUMMARY = "Puppet Labs Standard Library module"
+HOMEPAGE = "https://github.com/puppetlabs/puppetlabs-stdlib"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=38a048b9d82e713d4e1b2573e370a756"
+
+PV = "4.10.0"
+SRCREV = "0b4822be3d2242e83c28ab7fed6c5817adc322d5"
+
+SRC_URI = " \
+    git://github.com/puppetlabs/puppetlabs-stdlib.git;branch=master \
+    file://Add-gemspec.patch \
+"
+
+inherit ruby
+
+S="${WORKDIR}/git"
+
+DEPENDS += " \
+        ruby \
+        facter \
+"
+
+RDEPENDS_${PN} += " \
+        ruby \
+        facter \
+        puppet \
+"
+
+RUBY_INSTALL_GEMS = "puppetlabs-stdlib-${PV}.gem"
-- 
2.1.4



More information about the meta-virtualization mailing list