Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
Mock Version: 1.2.4
ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-foreman_openscap.spec'], chrootPath='/home/dcleal/.mock/var/foreman-scl-7-x86_64-dcleal-30508/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.utf8', 'LD_PRELOAD': '/tmp/tmpAFMWJ0/$LIB/nosync.so', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'}gid=135user='mockbuild'timeout=0logger=<mockbuild.trace_decorator.getLog object at 0x7f3ff11ef5d0>uid=1000)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-foreman_openscap.spec'] with env {'LANG': 'en_GB.utf8', 'LD_PRELOAD': '/tmp/tmpAFMWJ0/$LIB/nosync.so', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\
@domcleal
domcleal / gist:f927c41721114fbc775b
Created September 23, 2015 11:57
Foreman #11885 clone issue stack trace
2015-09-23T12:33:07 [sql] [D] SQL (0.1ms) DELETE FROM "lookup_values" WHERE "lookup_values"."id" = ? [["id", 57]]
2015-09-23T12:33:07 [app] [D] Called from:
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/log_subscriber.rb:93:in `call'
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/notifications/fanout.rb:47:in `publish'
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/notifications/fanout.rb:25:in `block in publish'
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/notifications/fanout.rb:25:in `each'
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/notifications/fanout.rb:25:in `publish'
| /home/dcleal/.rvm/gems/ruby-2.0.0-p353@foreman/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:25:in `instrument'
| /home/dcleal/.rvm/gems/ruby-2
@domcleal
domcleal / access.aug
Created April 8, 2011 22:54
access.aug with @usergroup@@hostgroup support
(*
Module: Access
Parses /etc/security/access.conf
Author: Lorenzo Dalrio <lorenzo.dalrio@gmail.com>
About: Reference
Some examples of valid entries can be found in access.conf or "man access.conf"
About: License
@domcleal
domcleal / augeas_spec_stub.patch
Created May 18, 2011 21:48
Stubbing in augeas spec
diff --git a/spec/unit/provider/augeas/augeas_spec.rb b/spec/unit/provider/augeas/augeas_spec.rb
index 693e33e..b8aade2 100755
--- a/spec/unit/provider/augeas/augeas_spec.rb
+++ b/spec/unit/provider/augeas/augeas_spec.rb
@@ -373,8 +373,7 @@ describe provider_class do
augeas_stub = stub("augeas")
augeas_stub.expects("set").with("/augeas/save", "newfile")
augeas_stub.expects("save").returns(true)
- augeas_stub.expects("get").with("/augeas/events/saved").returns([])
- augeas_stub.expects("match").with("/augeas/events/saved").returns([])
@domcleal
domcleal / crm.rb
Created May 28, 2011 16:08
puppet-pacemaker ha_crm_property provider, using lazy_pip style
require 'rexml/document'
Puppet::Type.type(:ha_crm_property).provide(:crm) do
def create
lazy_crm_attribute "-t", "crm_config", "-n", resource[:name], "-v", resource[:value]
end
def destroy
lazy_crm_attribute "-t", "crm_config", "-n", resource[:name], "-D"
end
@domcleal
domcleal / pagesize.c
Created August 10, 2011 08:04
reads the page size for a virtual memory address of a given pid
/* pagesize: reads the page size for a virtual memory address of a given pid */
#include <errno.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char** argv) {
if (argc != 3) {
@domcleal
domcleal / upload.sh
Created December 4, 2011 11:08
Uploads radio station favourites to an Onkyo TX-NR509
#!/bin/bash
#
# Uploads a list of radio stations into an Onkyo receiver's web page
# Tested with a TX-NR509.
#
# Supply the list as "NAME=URL" lines on stdin.
#
# Copyright (c) 2011 Dominic Cleal <dominic@computerkb.co.uk>
# Released under the MIT licence.
#include b # works
include c # 'broken', shows warning
define a($x) {
exec { "A-$x":
command => "/bin/echo $x",
}
if $require {
Exec["A-$x"] { require +> $require }
@domcleal
domcleal / 11968.pp
Created January 21, 2012 17:35
Puppet bug #11968 reproducer
exec { "foo":
command => "/bin/echo foo",
}
file { "/tmp/test":
ensure => link,
replace => true,
target => "/tmp/foo",
force => true,
}
@domcleal
domcleal / gist:1654201
Created January 21, 2012 21:59
Puppet/Augeas quoting workaround with ERB templates (#7529)
quoting.pp:
$node = "foo"
augeas { "set-entry":
context => "/files/etc/sysconfig/network",
changes => [
"set INLINE[. = '\"$node\"'] '\"$node\"'",
],
}
augeas { "set-erb":