Skip to content

Instantly share code, notes, and snippets.

0 moses@wheezy-builder-1:pe-puppet-dashboard:(3.0.x)$ rake pe:local_deb PE_VER=3.0
Could not load tasks/rails. Some rake tasks may not be available without tasks/rails.
The load error generated the following message: cannot load such file -- tasks/rails
Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem
rm -rf pkg
mkdir -p vendor/cache
cd vendor/cache
Fetching: rake-0.9.6.gem (100%)
Downloaded rake-0.9.6
Fetching: i18n-0.6.1.gem (100%)
bash-3.2# PATH=/opt/puppet/bin:$PATH
bash-3.2# irb
irb(main):001:0> require 'yaml'
/opt/puppet/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
LoadError: load failed - /opt/puppet/lib/ruby/1.9.1/powerpc-aix6.1.0.0/stringio.so. Please issue below command for detailed reasons:
/usr/sbin/execerror ruby "(ld 3 1 main /opt/puppet/lib/ruby/1.9.1/powerpc-aix6.1.0.0/stringio.so"
from /opt/puppet/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
0 moses@mosesmac:~$ curl -i -Fname='build.yaml' -Ffile0='@/Users/moses/build2.yaml' -Fjson='{'parameter': {'name': 'build.yaml','file': 'file0'}}' -FSubmit=Build 'http://jenkins-release.delivery.puppetlabs.net/job/experimental-puppet-packaging/buildWithParameters' -v
* About to connect() to jenkins-release.delivery.puppetlabs.net port 80 (#0)
* Trying 10.0.14.198...
* connected
* Connected to jenkins-release.delivery.puppetlabs.net (10.0.14.198) port 80 (#0)
> POST /job/experimental-puppet-packaging/buildWithParameters HTTP/1.1
> User-Agent: curl/7.25.0 (x86_64-apple-darwin11.3.0) libcurl/7.25.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25
> Host: jenkins-release.delivery.puppetlabs.net
> Accept: */*
> Content-Length: 3082
# @pe_version is obtained by the branch we're on
# We want the latest tag on *our* branch
tag = %x{git tag | grep "#{@pe_version}"}.split.sort.last
commits = %x{git log --pretty=format:'%h' #{tag}.. | wc -l}.chomp
hash = %x{git show HEAD --pretty=format:'%h'}
TEAM=release
PGHOST=vor.puppetlabs.lan
PGDATABASE=release
PGUSER=release
export TEAM PGHOST PGDATABASE PGUSER
psql: FATAL: no pg_hba.conf entry for host "10.0.14.195", user "release", database "release", SSL on
FATAL: no pg_hba.conf entry for host "10.0.14.195", user "release", database "release", SSL off
From cfce8cf0baa7a96498f0ddc2c46170ed38c9aea7 Mon Sep 17 00:00:00 2001
From: Todd Zullinger <tmz@pobox.com>
Date: Thu, 12 Jul 2012 00:34:28 -0400
Subject: [PATCH/puppet] Preserve timestamps when installing files
Without the preserve option, ruby's FileUtils.install method uses the
current time for all installed files. For backup systems, package
installs, and general pedantic sysadmins, preserving timestamps makes a
small improvement in the world.
---
# Augeas and SELinux requirements may be disabled at build time by passing
# --without augeas and/or --without selinux to rpmbuild or mock
# F-17 and above have ruby-1.9.x, and place libs in a different location
%if 0%{?fedora} >= 17
%global puppet_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
%else
%global puppet_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
%endif
From f320eb76e7bd8488b8fb480e051417f052c453ea Mon Sep 17 00:00:00 2001
From: Moses Mendoza <moses@puppetlabs.com>
Date: Tue, 30 Oct 2012 14:33:27 -0700
Subject: [PATCH] Update puppet spec to 3.0.1
This patch updates the puppet spec for version 3.0.1, and removes the
signature file as a source since its not used in the spec anywhere.
Puppet 3.0.1 includes service management files for systemd, which ships
with F17, so this updates the spec to include systemd conditionals where
applicable. Several deprecated manpages and executables, including
#!/bin/sh -e
case "$1" in
configure)
if grep -q 'Ubuntu 8.04' /etc/issue ; then
SITELIBDIR=$(ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
mkdir -p $SITELIBDIR || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective $SITELIBDIR/ || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective.rb $SITELIBDIR/ || :
fi