Skip to content

Instantly share code, notes, and snippets.

@domcleal
domcleal / -
Created October 30, 2015 09:14
--- /tmp/a 2015-10-30 09:13:37.764508096 +0000
+++ /tmp/b 2015-10-30 09:14:12.174607016 +0000
@@ -114,134 +114,10 @@
foreman-installer-1.11.0/modules/apache/README.md
foreman-installer-1.11.0/modules/apache/metadata.json
foreman-installer-1.11.0/modules/apache/README.passenger.md
-foreman-installer-1.11.0/modules/apache/.git/
-foreman-installer-1.11.0/modules/apache/.git/FETCH_HEAD
-foreman-installer-1.11.0/modules/apache/.git/info/
-foreman-installer-1.11.0/modules/apache/.git/info/exclude
@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 / core1
Last active August 27, 2015 13:59
Package rebuild order for Foreman's SCL-enabled RPMs as of August 2015
tfm
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 / sync_templates.sh
Created March 10, 2015 09:46
Simple script to sync community-templates into foreman's app/views/unattended
#!/bin/bash
REPO=$(mktemp -d)
trap "rm -rf $REPO" EXIT
git clone https://github.com/theforeman/community-templates $REPO/ct
# move into destination dir if run from Foreman root
[ -d app/views/unattended ] && cd app/views/unattended
### Keybase proof
I hereby claim:
* I am domcleal on github.
* I am domcleal (https://keybase.io/domcleal) on keybase.
* I have a public key whose fingerprint is 7AAE 76FE 90ED 4439 5624 04A2 7C7D 326F 2C2B 72CC
To claim this, I am signing this object:
Info: Applying configuration version '1418826679'
Debug: Augeas[kerberos_etc_services](provider=augeas): Opening augeas with root /, lens path /var/lib/puppet/lib/augeas/lenses, flags 32
Debug: Augeas[kerberos_etc_services](provider=augeas): Augeas version 1.0.0 is installed
Debug: Augeas[kerberos_etc_services](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'defnode' with params ["kerberostcp", "/files/etc/services/service-name[.=\"kerberos\"][protocol = \"tcp\"]", "kerberos"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/port", "88"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'set' with params ["$kerberostcp/protocol", "tcp"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'remove' with params ["$kerberostcp/alias"]
Debug: Augeas[kerberos_etc_services](provider=augeas): sending command 'ins' with params ["
@domcleal
domcleal / augeas.md
Last active August 29, 2015 14:11 — forked from riton/augeas.md

After first puppet execution

augtool> print /files/etc/services/service-name[.="kerberos"]
/files/etc/services/service-name[171] = "kerberos"
/files/etc/services/service-name[171]/port = "88"
/files/etc/services/service-name[171]/protocol = "tcp"
/files/etc/services/service-name[171]/alias[1] = "kerberos5"
/files/etc/services/service-name[171]/alias[2] = "krb5"
/files/etc/services/service-name[171]/alias[3] = "kerberos-sec"
@domcleal
domcleal / augeas.md
Last active August 29, 2015 14:11 — forked from riton/augeas.md

After first puppet execution

augtool> print /files/etc/services/service-name[.="kerberos"]
/files/etc/services/service-name[171] = "kerberos"
/files/etc/services/service-name[171]/port = "88"
/files/etc/services/service-name[171]/protocol = "tcp"
/files/etc/services/service-name[171]/alias[1] = "kerberos5"
/files/etc/services/service-name[171]/alias[2] = "krb5"
/files/etc/services/service-name[171]/alias[3] = "kerberos-sec"
all good on v3.3.3...
[root@foremanf19 ~]# puppet module install puppetlabs/postgresql
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
└─┬ puppetlabs-postgresql (v3.3.3)
├── puppetlabs-apt (v1.5.0)
├── puppetlabs-concat (v1.1.0)