Skip to content

Instantly share code, notes, and snippets.

@stahnma
stahnma / -
Created November 14, 2017 20:12
This file has been truncated, but you can view the full file.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
Value "/opt/pl-build-tools/bin:$$PATH:/opt/puppetlabs/puppet/bin" looks like it's escaping one or more shell variable names for shell interpolation.
"$$PATH" will be coerced to "$(PATH)"
All environment variables will now be resolved by Make before they're executed
by the shell. These variables will be mangled for you for now, but you should
update your project's parameters.
#!/usr/bin/env bash
# Usage example: ./get_compiles 2017-09-27 05 06 07 08
DATE="$1"
shift
for x in "$@"
do
egrep "'Compiled catalog'|'Compiled static catalog'" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l
@stahnma
stahnma / -
Created August 24, 2017 03:29
The git source `git://github.com/puppetlabs/packaging.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.5.0
Using ast 2.2.0
Using fustigit 0.1.4 (was 0.1.3)
Using git 1.3.0
Installing json 1.8.3 with native extensions
Using redis 3.3.3 (was 3.3.1)
@stahnma
stahnma / -
Created August 23, 2017 21:27
This file has been truncated, but you can view the full file.
rewrite rule support is deprecated and will be removed before Vanagon 1.0.0.
Rewritten URLs will be automatically converted into mirror URLs for now but
please use the component DSL method '#mirror url' to define new mirror URL
sources for a given component.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
the component DSL method signature #environment({Key => Value}) is deprecated

Tools in play

  • Vanagon - Combine all your software into a package with this one weird trick
  • VMPooler - Warm cache for VMs of all flavors
  • EZbake - Packaging tool for clojure projects
  • Beaker - Testing Harness
  • Puppet Agent - The AIO package of Puppet and friends
  • Packaging Repo - packaging and shipping workflows
  • PL Build Tools - GCC and friends for building our stack
touch cpp-pcp-client-patch
[ -d cpp-pcp-client ] || mkdir -p cpp-pcp-client
cd cpp-pcp-client && \
export PATH="/opt/puppetlabs/puppet/bin:/opt/pl-build-tools/bin:$PATH" && \
/opt/pl-build-tools/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/opt/pl-build-tools/arm-linux-gnueabihf/pl-build-toolchain.cmake -DLEATHERMAN_GETTEXT=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_PREFIX_PATH=/opt/puppetlabs/puppet -DCMAKE_INSTALL_PREFIX=/opt/puppetlabs/puppet -DCMAKE_INSTALL_RPATH=/opt/puppetlabs/puppet/lib -DCMAKE_SYSTEM_PREFIX_PATH=/opt/puppetlabs/puppet -DBOOST_STATIC=ON .
-- The C compiler identification is GNU 6.1.0
-- The CXX compiler identification is GNU 6.1.0
-- Check for working C compiler: /opt/pl-build-tools/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /opt/pl-build-tools/bin/arm-linux-gnueabihf-gcc -- works
-- Detecting C compiler ABI info
@stahnma
stahnma / -
Created August 10, 2016 16:38
Executing 'rpm -q curl > /dev/null || yum -y install curl && curl -o '/etc/yum.repos.d/591e1cf8d2bde2f14f23192b25b0dbd6-pl-build-tools-staging-s390x.repo' 'http://pl-build-tools-staging.delivery.puppetlabs.net/yum/el/6/s390x/pl-build-tools-staging-s390x.repo' && rpm -q curl > /dev/null || yum -y install curl && curl -o '/etc/yum.repos.d/d5770fcbdfaa16926b98afb3927dff0d-pl-build-tools-staging-x86_64.repo' 'http://pl-build-tools-staging.delivery.puppetlabs.net/yum/el/6/x86_64/pl-build-tools-staging-x86_64.repo' && yum install --assumeyes autoconf automake createrepo rsync gcc make rpmdevtools rpm-libs yum-utils rpm-sign' on '[email protected]'
Warning: Permanently added 'u9w8g60fav21uw3.delivery.puppetlabs.net,10.32.119.120' (RSA) to the list of known hosts.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-
This file has been truncated, but you can view the full file.
Executing 'rpm -q curl > /dev/null || yum -y install curl && curl -o '/etc/yum.repos.d/6cd92b050263463711896eed52e4c47b-pl-build-tools-staging-s390x.repo' 'http://pl-build-tools-staging.delivery.puppetlabs.net/yum/el/7/s390x/pl-build-tools-staging-s390x.repo' && rpm -q curl > /dev/null || yum -y install curl && curl -o '/etc/yum.repos.d/6079ab7a1fedb5c8b9000188d0fd30b7-pl-build-tools-staging-x86_64.repo' 'http://pl-build-tools-staging.delivery.puppetlabs.net/yum/el/7/x86_64/pl-build-tools-staging-x86_64.repo' && yum install --assumeyes autoconf automake createrepo rsync gcc make rpmdevtools rpm-libs yum-utils rpm-sign' on '[email protected]'
Warning: Permanently added 'x86ee7jpk0pec2j.delivery.puppetlabs.net,10.32.113.146' (ECDSA) to the list of known hosts.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--
This file has been truncated, but you can view the full file.
Executing 'rpm -q curl > /dev/null || yum -y install curl && curl -o local.rpm 'http://pl-build-tools.delivery.puppetlabs.net/yum/pl-build-tools-release-el-7.noarch.rpm'; rpm -Uvh local.rpm; rm -f local.rpm && yum install --assumeyes rsync gcc make rpmdevtools rpm-libs yum-utils rpm-sign' on '[email protected]'
Warning: Permanently added 'vkchdk0mvo5rm2q.delivery.puppetlabs.net,10.32.117.143' (ECDSA) to the list of known hosts.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9356 100 9356 0 0 61088 0 --:--:-- --:--:-- --:--:-- 61552
warning: local.rpm: Header V4 RSA/SHA1 Signature, key ID 4bd6ec30: NOKEY
Preparing... ########################################
Updating / installing...
pl-build-tools-release-22.0.2-0.el7 #################################
This file has been truncated, but you can view the full file.
Executing 'apt-get -qq update && apt-get -qq install curl && curl -o local.deb 'http://pl-build-tools.delivery.puppetlabs.net/debian/pl-build-tools-release-jessie.deb' && dpkg -i local.deb; rm -f local.deb && apt-get -qq update && export DEBIAN_FRONTEND=noninteractive; apt-get update ; apt-get install -y --no-install-recommends build-essential devscripts make quilt pkg-config debhelper rsync fakeroot' on '[email protected]'
Warning: Permanently added 'u26jvpnq2xf9wed.delivery.puppetlabs.net,10.32.112.215' (ECDSA) to the list of known hosts.
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (R