Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 04884E00895; Tue, 2 Dec 2014 19:15:42 -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, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [157.56.111.112 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 940 seconds by postgrey-1.32 at yocto-www; Tue, 02 Dec 2014 19:15:38 PST Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0112.outbound.protection.outlook.com [157.56.111.112]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6F2A5E00521 for ; Tue, 2 Dec 2014 19:15:38 -0800 (PST) Received: from BY2PR03CA002.namprd03.prod.outlook.com (10.255.93.19) by BY2PR0301MB0759.namprd03.prod.outlook.com (25.160.63.27) with Microsoft SMTP Server (TLS) id 15.1.26.15; Wed, 3 Dec 2014 03:00:32 +0000 Received: from BN1AFFO11FD023.protection.gbl (10.255.93.4) by BY2PR03CA002.outlook.office365.com (10.255.93.19) with Microsoft SMTP Server (TLS) id 15.1.31.17 via Frontend Transport; Wed, 3 Dec 2014 03:00:31 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD023.mail.protection.outlook.com (10.58.52.83) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Wed, 3 Dec 2014 03:00:31 +0000 Received: from sun.ap.freescale.net (sun.ap.freescale.net [10.192.208.75]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sB330SBU021513; Tue, 2 Dec 2014 20:00:29 -0700 From: YangHaibo To: Date: Wed, 3 Dec 2014 11:00:23 +0800 Message-ID: <1417575623-10537-1-git-send-email-b40869@freescale.com> X-Mailer: git-send-email 1.9.2 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(377424004)(50986999)(450100001)(6806004)(110136001)(44976005)(19580405001)(19580395003)(4396001)(50226001)(77096005)(36756003)(68736005)(106466001)(120916001)(99396003)(77156002)(104016003)(62966003)(33646002)(107046002)(48376002)(2351001)(229853001)(50466002)(104166001)(105606002)(95666004)(86362001)(47776003)(575784001)(20776003)(93916002)(31966008)(102836001)(97736003)(87936001)(15975445006)(89996001)(88136002)(87286001)(46102003)(21056001)(92566001)(92726001)(84676001)(64706001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0759; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0759; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0759; X-Forefront-PRVS: 0414DF926F Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=B40869@freescale.com; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0759; X-OriginatorOrg: freescale.com Subject: [PATCH] puppet: add recipe for puppet 3.7.3 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: Wed, 03 Dec 2014 03:15:42 -0000 Content-Type: text/plain --- .../puppet/puppet/add_puppet_gemspec.patch | 23 ++++++++++++++++ .../recipes-support/puppet/puppet_3.7.3.bb | 31 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 meta-openstack/recipes-support/puppet/puppet/add_puppet_gemspec.patch create mode 100644 meta-openstack/recipes-support/puppet/puppet_3.7.3.bb diff --git a/meta-openstack/recipes-support/puppet/puppet/add_puppet_gemspec.patch b/meta-openstack/recipes-support/puppet/puppet/add_puppet_gemspec.patch new file mode 100644 index 0000000..a5c8e3b --- /dev/null +++ b/meta-openstack/recipes-support/puppet/puppet/add_puppet_gemspec.patch @@ -0,0 +1,23 @@ +diff -urN puppet-3.7.3_ori/puppet.gemspec puppet-3.7.3/puppet.gemspec +--- puppet-3.7.3_ori/puppet.gemspec 1970-01-01 08:00:00.000000000 +0800 ++++ puppet-3.7.3/puppet.gemspec 2014-11-12 14:30:07.000000000 +0800 +@@ -0,0 +1,19 @@ ++$:.unshift(File.dirname(__FILE__) + '/lib') ++require 'puppet/version' ++ ++Gem::Specification.new do |s| ++ s.name = 'puppet' ++ s.version = Puppet::PUPPETVERSION ++ s.platform = Gem::Platform::RUBY ++ s.summary = 'Open source Puppet is a configuration management system' ++ s.description = s.summary ++ s.author = 'Yang Haibo' ++ s.email = 'b40869@freescale.com' ++ s.homepage = 'https://puppetlabs.com/puppet/puppet-open-source' ++ s.license = 'Apache 2.0' ++ ++ s.bindir = 'bin' ++ s.executables = ['puppet', 'extlookup2hiera'] ++ s.require_path = 'lib' ++ s.files = %w(LICENSE README.md Rakefile) + Dir.glob('{lib,spec}/**/*') ++end diff --git a/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb b/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb new file mode 100644 index 0000000..afd9a23 --- /dev/null +++ b/meta-openstack/recipes-support/puppet/puppet_3.7.3.bb @@ -0,0 +1,31 @@ +SUMMARY = "Open source Puppet is a configuration management system" +HOMEPAGE = "https://puppetlabs.com/puppet/puppet-open-source" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f257790c70561550fd666c6e0044fd89" + +SRC_URI = " \ + https://downloads.puppetlabs.com/puppet/puppet-${PV}.tar.gz \ + file://add_puppet_gemspec.patch \ +" +SRC_URI[md5sum] = "cc294da1d51df07bcc7f6cf78bd90ce0" +SRC_URI[sha256sum] = "4a3bd7ddb51072c3dd898a8de158cde204a2d8fd0b84e8ac806b84c074348637" + +inherit ruby + +DEPENDS += " \ + ruby \ + facter \ + hiera \ +" + +RUBY_INSTALL_GEMS = "puppet-${PV}.gem" + +do_install_append() { + install -d ${D}${sysconfdir}/puppet + install -d ${D}${sysconfdir}/puppet/manifests + install -d ${D}${sysconfdir}/puppet/modules + + install -m 655 ${S}/conf/auth.conf ${D}${sysconfdir}/puppet/ + install -m 655 ${S}/conf/fileserver.conf ${D}${sysconfdir}/puppet/ + install -m 655 ${S}/conf/tagmail.conf ${D}${sysconfdir}/puppet/ +} -- 1.9.2