Skip to content

Instantly share code, notes, and snippets.

View mwohlgemuth's full-sized avatar

Maximilian Wohlgemuth mwohlgemuth

View GitHub Profile
autopkg version
0.4.2
autopkg run -v Firefox.munki
Traceback (most recent call last):
File "/usr/local/bin/autopkg", line 1469, in <module>
sys.exit(main(sys.argv))
File "/usr/local/bin/autopkg", line 1463, in main
exit(subcommands[verb]['function'](argv))
File "/usr/local/bin/autopkg", line 1249, in run_recipes
@mwohlgemuth
mwohlgemuth / gist:6af6753b0b314ed755ff
Created April 17, 2015 15:12
Yosemite NBI Restore Failure
2015-04-17 17:09:52.766 DeployStudio Runtime.bin[388:12231] Running workflow: 'RESTORE Yosemite testing CoreStorage' (B6E8A14B-45A4-4699-97A8-EF785D9675EC)
2015-04-17 17:09:53.068 DeployStudio Runtime.bin[388:6837] Looking for available disks:
2015-04-17 17:09:53.068 DeployStudio Runtime.bin[388:6837] Boot device='/dev/disk1'
2015-04-17 17:09:53.068 DeployStudio Runtime.bin[388:6837] Repository device='(null)'
2015-04-17 17:09:53.329 DeployStudio Runtime.bin[388:6837] >> '/dev/disk1': boot disk
2015-04-17 17:09:53.532 DeployStudio Runtime.bin[388:6837] >> '/dev/disk0': ok (SSD)
2015-04-17 17:09:58.547 DeployStudio Runtime.bin[388:13843] Partitioning action:
2015-04-17 17:09:58.549 DeployStudio Runtime.bin[388:13843] "/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSPartitionTask.bundle/Contents/Resources/Scripts/deleteparentlvg.sh" /dev/disk0 2>&1
2015-04-17 17:09:58.780 DeployStudio Runtime.bin[388:13843] /usr/sbin/diskutil unmountDisk force /dev/disk0 2>&1
2015-04-17 17:09:58.978 DeployStud
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>catalogs</key>
<array>
</array>
<key>conditional_items</key>
<array>
<dict>
@mwohlgemuth
mwohlgemuth / gist:2b56ea93ee35511fffde
Created December 12, 2014 14:44
ds restore workflow fail
2014-12-12 15:37:49.839 DeployStudio Runtime.bin[388:5968] ====================================================================================================
2014-12-12 15:37:49.840 DeployStudio Runtime.bin[388:5968] DeployStudio Runtime
2014-12-12 15:37:49.874 DeployStudio Runtime.bin[388:5968] DSCore.framework version 1.6.12 (b141021), Copyright 2014 The DeployStudio Team.
2014-12-12 15:37:49.876 DeployStudio Runtime.bin[388:5968] MAC address: 00:25:4b:ba:09:f6
2014-12-12 15:37:49.894 DeployStudio Runtime.bin[388:5968] Network address: 10.42.15.73 (mac-w892029z8qs.local)
2014-12-12 15:37:49.906 DeployStudio Runtime.bin[388:5968] Network interface speed: AUTOSELECT (1000BASET <FULL-DUPLEX,FLOW-CONTROL>)
2014-12-12 15:37:49.919 DeployStudio Runtime.bin[388:5968] Operating System: Mac OS X Version 10.10 (Build 14A389)
2014-12-12 15:37:49.920 DeployStudio Runtime.bin[388:5968] Date: 14/12/12 15:37:49
2014-12-12 15:37:49.920 DeployStudio Runtime.bin[388:5968] ===================================================
@mwohlgemuth
mwohlgemuth / gist:94e2edd67ccfafdc55a2
Created October 20, 2014 14:14
Photoshop Camera Raw 8.5 Update
START - Installer Session
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
RIBS version: 6.2.10.0
OSX version: 10.10.0
::START TIMER:: [Total Timer]
CHECK: Single instance running
CHECK : Credentials
Load Deployment File
deploymentFile option not given
CHECK : Another Native OS installer already running
@mwohlgemuth
mwohlgemuth / gist:4dc5fd7ed8231d61117a
Created October 3, 2014 08:45
makecatalogs munkilib.FoundationPlist.NSPropertyListWriteException: Failed to write plist data
Traceback (most recent call last):
File "/usr/local/munki/makecatalogs", line 297, in <module>
main()
File "/usr/local/munki/makecatalogs", line 294, in main
makecatalogs(repopath, options)
File "/usr/local/munki/makecatalogs", line 229, in makecatalogs
plistlib.writePlist(catalogs[key], catalogpath)
File "/usr/local/munki/munkilib/FoundationPlist.py", line 103, in writePlist
"Failed to write plist data to %s" % filepath)
@mwohlgemuth
mwohlgemuth / gist:3605b908920dd96fc3ff
Created October 2, 2014 10:53
jenkins installer.log
Oct 2 12:51:24 apkg-imba-1.local runner[259]: Administrator authorization granted.
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: ================================================================================
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: User picked Standard Install
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Choices selected for installation:
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins 1.583"
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins"
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: jenkins-1.583.pkg#jenkins.pkg : org.jenkins-ci.jenkins.osx.pkg : 1.1405
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Start at boot as "jenkins""
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: jenkins-1.583.pkg#orgjenkinsci-1.pkg : org.jenkins-ci.launchd-jenkins.pkg : 1.0
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins Support Files"
@mwohlgemuth
mwohlgemuth / gist:665f47511b4b4dcb1443
Created October 2, 2014 10:36
installer.log 10.9.5 jenkins stable jenkins-1.565.3.pkg
Installer[383]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “jenkins-1.565.3.pkg”." UserInfo=0x7f9aaa81acd0 {NSFilePath=./postinstall, NSURL=file://localhost/Users/admin/Downloads/jenkins-1.565.3.pkg#orgjenkinsci-1.pkg, PKInstallPackageIdentifier=org.jenkins-ci.launchd-jenkins.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “jenkins-1.565.3.pkg”.}
Oct 2 11:40:43 apkg-imba-1.local installd[292]: PackageKit: Removing client PKInstallDaemonClient pid=383, uid=499 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
# printers.rb
Facter.add('printers') do
confine :kernel => %w{Linux FreeBSD OpenBSD SunOS Darwin}
confine do
Facter::Core::Execution.which('lpstat')
end
setcode do
output = Array.new
@mwohlgemuth
mwohlgemuth / printers.py
Created September 8, 2014 15:19
sal printers plugin
from yapsy.IPlugin import IPlugin
from yapsy.PluginManager import PluginManager
from django.template import loader, Context
from django.db.models import Count, Avg
from server.models import *
from django.shortcuts import get_object_or_404
import server.utils as utils
from django.conf import settings
from datetime import datetime, timedelta
from django.db.models import Q