From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CC85EE0073D; Mon, 11 Jan 2016 06:34:29 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4057AE0086B for ; Mon, 11 Jan 2016 06:34:24 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id u0BEYO1Z027153 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK) for ; Mon, 11 Jan 2016 06:34:24 -0800 Received: from [128.224.56.48] (128.224.56.48) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Mon, 11 Jan 2016 06:34:23 -0800 To: Mark Asselstine References: <1452366255-8937-1-git-send-email-mark.asselstine@windriver.com> From: Bruce Ashfield Message-ID: <5693BD55.6060107@windriver.com> Date: Mon, 11 Jan 2016 09:33:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1452366255-8937-1-git-send-email-mark.asselstine@windriver.com> Cc: meta-virtualization@yoctoproject.org Subject: Re: [m-c-s][PATCH 1/2] puppet: add puppetlabs stdlib module X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 14:34:29 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 16-01-09 02:04 PM, Mark Asselstine wrote: > 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. merged to master. Bruce > > Signed-off-by: Mark Asselstine > --- > .../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 > +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 > +--- > + 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" >