Add puppet modules to rootfs

- port: puppetlabs-mysql
- workaround: puppetlabs-stdlib broken symlinks
- packagegroup stx updated with:
	- puppetlabs-stdlib
	- puppetlabs-mysql
	- puppet-vswitch
This commit is contained in:
babak sarashki 2019-10-24 18:56:41 -07:00
parent 9560776c4f
commit 55dad912f1
4 changed files with 59 additions and 0 deletions

View File

@ -94,6 +94,9 @@ RDEPENDS_packagegroup-stx-misc = "\
platform-util \
namespace-utils \
drbd-utils \
puppet-vswitch \
puppetlabs-stdlib \
puppetlabs-mysql \
"
RDEPENDS_packagegroup-stx-ceph = "\

View File

@ -0,0 +1,15 @@
--- /dev/null 2019-10-23 20:19:32.602763995 -0700
+++ b/puppetlabs-mysql.gemspec 2019-10-24 18:37:03.348286718 -0700
@@ -0,0 +1,12 @@
+Gem::Specification.new do |s|
+ s.name = 'puppetlabs-mysql'
+ s.version = '10.2.0'
+ s.date = '2019-09-24'
+ s.summary = "Puppet Labs myql module"
+ 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/puppetlabs/puppetlabs-mysql'
+ s.license = 'Apache 2.0'
+ end

View File

@ -0,0 +1,29 @@
DESCRIPTION = "The mysql module installs, configures, and manages the MySQL service."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCREV = "817844c08573177f73be71049b521ec67c134951"
PROTOCOL = "https"
BRANCH = "master"
S = "${WORKDIR}/git"
PV = "10.2.0"
SRC_URI = "git://github.com/puppetlabs/puppetlabs-mysql.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH} \
file://puppetlabs-mysql/Add-gemspec.patch \
"
inherit ruby
DEPENDS += " \
ruby \
facter \
"
RDEPENDS_${PN} += " \
ruby \
facter \
puppet \
"
RUBY_INSTALL_GEMS = "puppetlabs-mysql-${PV}.gem"

View File

@ -0,0 +1,12 @@
# FIXME:
# For now this is a Workaround to not install broken links; otherwise the package strip and split fails.
do_install_append () {
rm -rf ${D}/usr/lib/ruby/gems/2.5.0/gems/puppetlabs-stdlib-4.10.0/spec/fixtures/modules/stdlib/manifests
rm -rf ${D}/usr/lib/ruby/gems/2.5.0/gems/puppetlabs-stdlib-4.10.0/spec/fixtures/modules/stdlib/lib
cp -r ${S}/manifests \
${D}/usr/lib/ruby/gems/2.5.0/gems/puppetlabs-stdlib-4.10.0/spec/fixtures/modules/stdlib/
cp -r ${S}/lib \
${D}/usr/lib/ruby/gems/2.5.0/gems/puppetlabs-stdlib-4.10.0/spec/fixtures/modules/stdlib/
}