Skip to contentSkip to conversation

puppet: add puppetlabs stdlib module

PATCH Applied Mark Asselstine 2 participants 3 messages Jan 9, 2016 – Jan 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 .../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
recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch new file +35 -0
new file mode 100644
index 0000000..d959aeb
@@ -0,0 +1,35 @@
+From e23971fcc1425e06a11484e552fbc631c43f44d4 Mon Sep 17 00:00:00 2001
+From: Mark Asselstine <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb new file +29 -0
new file mode 100644
index 0000000..2d3d9c2
@@ -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"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 puppet: add new recipe for puppet-vswitch module

There are several puppet modules that provide functionality to interact with vSwitches, such as OpenVSwitch. This one is one of the more popular and is an officially sanctioned puppet module so using this one for the time being.

---
 .../puppet-vswitch/files/Add-gemspec.patch         | 35 ++++++++++++++++++++++
 .../puppet-vswitch/puppet-vswitch_git.bb           | 32 ++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 recipes-support/puppet-vswitch/files/Add-gemspec.patch
 create mode 100644 recipes-support/puppet-vswitch/puppet-vswitch_git.bb
recipes-support/puppet-vswitch/files/Add-gemspec.patch new file +35 -0
new file mode 100644
index 0000000..2216c3b
@@ -0,0 +1,35 @@
+From 66ffd1621d30b3fe9ccbc0a7d21319b351833afb Mon Sep 17 00:00:00 2001
+From: Mark Asselstine <[email protected]>
+Date: Thu, 17 Dec 2015 14:06:18 -0500
+Subject: [PATCH] Add gemspec
+
+Started with an example from here
+http://guides.rubygems.org/make-your-own-gem/
+
+Signed-off-by: Mark Asselstine <[email protected]>
+---
+ puppet-vswitch.gemspec | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+ create mode 100644 puppet-vswitch.gemspec
+
+diff --git a/puppet-vswitch.gemspec b/puppet-vswitch.gemspec
+new file mode 100644
+index 0000000..eb4c44e
+--- /dev/null
++++ b/puppet-vswitch.gemspec
+@@ -0,0 +1,12 @@
++Gem::Specification.new do |s|
++  s.name        = 'puppet-vswitch'
++  s.version     = '3.0.0'
++  s.date        = '2015-11-27'
++  s.summary     = "Puppet provider for virtual switches."
++  s.description = s.summary
++  s.authors     = ["Puppet Labs"]
++  s.email       = ''
++  s.files       = %w(LICENSE README.md Rakefile) + Dir.glob('{lib,spec}/**/*')
++  s.homepage    = 'https://github.com/openstack/puppet-vswitch'
++  s.license     = 'Apache 2.0'
++end
+-- 
+2.1.4
+
recipes-support/puppet-vswitch/puppet-vswitch_git.bb new file +32 -0
new file mode 100644
index 0000000..86922ae
@@ -0,0 +1,32 @@
+SUMMARY = "Puppet provider for virtual switches."
+HOMEPAGE = "https://github.com/openstack/puppet-vswitch"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+PV = "3.0.0"
+SRCREV = "c374840910c823f7669cf2e1229c7df7192ae880"
+
+SRC_URI = " \
+    git://github.com/openstack/puppet-vswitch.git;branch=master \
+    file://Add-gemspec.patch \
+"
+
+inherit ruby
+
+S="${WORKDIR}/git"
+
+DEPENDS += " \
+        ruby \
+        facter \
+"
+
+RDEPENDS_${PN} += " \
+        ruby \
+        facter \
+        puppet \
+"
+
+RUBY_INSTALL_GEMS = "puppet-vswitch-${PV}.gem"
+
+do_install_append() {
+}
Signature · 1 line
2.1.4
#2 lore raw
In reply to Mark Asselstine
Quoted 3 lines · Mark Asselstine

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

Quoted 86 lines
---
  .../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

recipes-support/puppetlabs-stdlib/files/Add-gemspec.patch new file +35 -0
new file mode 100644
index 0000000..d959aeb
@@ -0,0 +1,35 @@
+From e23971fcc1425e06a11484e552fbc631c43f44d4 Mon Sep 17 00:00:00 2001
+From: Mark Asselstine <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-support/puppetlabs-stdlib/puppetlabs-stdlib_git.bb new file +29 -0
new file mode 100644
index 0000000..2d3d9c2
@@ -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"