Skip to content

Instantly share code, notes, and snippets.

View bemeyert's full-sized avatar

Markus "Shorty" Uckelmann bemeyert

  • Next Kraftwerke GmbH
  • Kölle am Rhing
View GitHub Profile
@bemeyert
bemeyert / svn_prompt.sh
Last active August 29, 2015 13:56
Another tunable Subversion Bash prompt. Insert into or source in your .bashrc.
# Define some colors first.
# CAVEAT: Work only with 256 color terminal!
red=$(tput setaf 1)
RED=$(tput bold ; tput setaf 1)
blue=$(tput setaf 33)
BLUE=$(tput bold ; tput setaf 33)
cyan=$(tput setaf 6)
CYAN=$(tput bold; tput setaf 6)
NC=$(tput sgr0) # No Color
2014/09/02 12:37:46 ui: ==> vmware-iso: Running post-processor: vsphere
2014/09/02 12:37:46 /usr/local/bin/packer-command-build: 2014/09/02 12:37:46 Deleting original artifact for build 'vmware-iso'
2014/09/02 12:37:46 /usr/local/bin/packer-builder-vmware-iso: 2014/09/02 12:37:46 opening new ssh session
2014/09/02 12:37:46 /usr/local/bin/packer-builder-vmware-iso: 2014/09/02 12:37:46 starting remote command: rm -rf /vmfs/volumes/local/output-vmware-iso
2014/09/02 12:37:46 /usr/local/bin/packer-builder-vmware-iso: 2014/09/02 12:37:46 remote command exited with '0': rm -rf /vmfs/volumes/local/output-vmware-iso
2014/09/02 12:37:46 ui error: Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx
2014/09/02 12:37:46 /usr/local/bin/packer-command-build: 2014/09/02 12:37:46 Builds completed. Waiting on interrupt barrier...
2014/09/02 12:37:46 machine readable: error-count []string{"1"}
@bemeyert
bemeyert / packer.log
Created September 4, 2014 10:48
vmware-iso failes with "Error detecting host IP: IP not found in ifconfig output"
2014/09/04 12:42:41 Packer Version: 0.6.1 8b24d990943ff496a3bd951cb63f5fa03cff1c2f
2014/09/04 12:42:41 Packer Target OS/Arch: linux amd64
2014/09/04 12:42:41 Built with Go Version: go1.3
2014/09/04 12:42:41 Detected home directory from env var: /home/shorty
2014/09/04 12:42:41 Attempting to open config file: /home/shorty/.packerconfig
2014/09/04 12:42:41 File doesn't exist, but doesn't need to. Ignoring.
2014/09/04 12:42:41 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack amazon-chroot:packer-builder-amazon-chroot digitalocean:packer-builder-digitalocean docker:packer-builder-docker parallels-pvm:packer-builder-parallels-pvm null:packer-builder-null amazon-instance:packer-builder-amazon-instance qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso virtualbox-ovf:packer-builder-virtualbox-ovf vmware-iso:packer-builder-vmware-iso vmware-vmx:packer-builder-vmware-vmx amazon-ebs:packer-builder-amazon-ebs p
@bemeyert
bemeyert / gist:ab3d0567d953d154a9d4
Created April 27, 2015 13:20
Saltstack elasticsearch as job_cache
In my master configuration:
```yaml
master_job_cache: elasticsearch
elasticsearch:
host: 'eshost:9200'
index: 'salt_test'
```
@bemeyert
bemeyert / main.cf
Created June 2, 2015 10:00
Postfix Conf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
default_database_type = btree
default_process_limit = 80
html_directory = no
@bemeyert
bemeyert / Debug information with timeout set
Last active November 29, 2016 11:38
Runner timeout via Salt API
Json_return="$(curl -sSk ${API} ${CURL_OPTS} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-b ${cookie_file} \
-d '
[{
"client": "runner",
"fun": "state.orchestrate",
"mods": "'"${orchestrator_state}"'",
"timeout": 900,
@bemeyert
bemeyert / ES_index.json
Last active January 24, 2017 12:48
Problem with Grafana and annotations via Elasticsearch
{
"event" : {
"aliases" : { },
"mappings" : {
"events" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
@bemeyert
bemeyert / Jenkins error message
Last active August 3, 2018 14:22
Jenkins scripted pipeline loop error
hudson.remoting.ProxyException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{build-composer=null, build-qucli=null}' with class 'java.util.HashMap' to class 'org.jenkinsci.plugins.pipeline.modeldefinition.model.Root' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(java.util.HashMap)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:403)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter$castToType.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArra
@bemeyert
bemeyert / Jenkins error
Created August 9, 2018 15:20
Scripted pipeline aborts for unknown reasons
hudson.remoting.ProxyException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{clean-composer=null, clean-qucli=null}' with class 'java.util.HashMap' to class 'org.jenkinsci.plugins.pipeline.modeldefinition.model.Root' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(java.util.HashMap)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:403)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter$castToType.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArra
$VAR1 = {
'redirects' => [
{
'request' => {
'path' => '/Abgebildete',
'host' => ''
},
'ID' => '12345',
'status' => 301,
'deliver' => '/'