aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2016-01-09 14:04:14 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-01-11 09:33:32 -0500
commitf961d9626e97185247348a052fcd2cbd5802c3e1 (patch)
treea89b89421f46012621045abd50aceb2b2ae54886 /recipes-support
parent46c95437862c507672e425904b248ad86c938e97 (diff)
downloadmeta-cloud-services-f961d9626e97185247348a052fcd2cbd5802c3e1.tar.gz
meta-cloud-services-f961d9626e97185247348a052fcd2cbd5802c3e1.tar.bz2
meta-cloud-services-f961d9626e97185247348a052fcd2cbd5802c3e1.zip
puppet: add puppetlabs stdlib module
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@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch35
-rw-r--r--recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb29
2 files changed, 64 insertions, 0 deletions
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@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@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"