Skip to content

Instantly share code, notes, and snippets.

View bastichelaar's full-sized avatar
🏠
Working from home

Bas Tichelaar bastichelaar

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bastichelaar on github.
  • I am bastichelaar (https://keybase.io/bastichelaar) on keybase.
  • I have a public key ASA_E11EZmyfgB_jut0zkDM6TkCjiKLmXt0ntmHcddnm5Qo

To claim this, I am signing this object:

FROM alpine:3.1
MAINTAINER Vladimir Krivosheev <[email protected]>
ENV JAVA_VERSION 8
ENV JAVA_UPDATE 45
ENV JAVA_BUILD 14
RUN apk add --update wget ca-certificates && \
cd /tmp && \
wget "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" && \
diff --git a/ansible/templates/retrieve_security_groups.sh.j2 b/ansible/templates/retrieve_security_groups.sh.j2
index 7265ede..695aa6e 100755
--- a/ansible/templates/retrieve_security_groups.sh.j2
+++ b/ansible/templates/retrieve_security_groups.sh.j2
@@ -10,7 +10,7 @@ do
get_group="cat /tmp/$$.json | jq '.SecurityGroups[] | select(.GroupName==$groupname) | .GroupId'"
groupid=`eval $get_group`
varname=`echo $groupname| tr " " "_"| tr "-" "_" | tr -d \"`
- echo ${varname}_group: $groupid
+ echo ${varname}_group: '{ "group_id": "$groupid" }'
docker run --net host \
-v /sys/fs/cgroup:/sys/fs/cgroup \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/bin/docker \
redjack/mesos-master --work_dir=/mesos
docker run --net host \
-v /sys/fs/cgroup:/sys/fs/cgroup \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/bin/docker \
redjack/mesos-slave \
mesos-slave --master=52.16.131.104:5050 --containerizers=docker,mesos
mysql-cluster:
pkg:
- installed
- name: libaio
cmd:
- script
- source: salt://mysql-cluster/install_mysql_cluster.sh
- stateful: True
- user: root
- require:
@bastichelaar
bastichelaar / check_salt
Created November 29, 2012 17:59
Nagios script to check whether a salt minion is online (with timeout)
#!/usr/bin/env python
import salt.cli.caller
import salt.config
import argparse
import sys
import signal
class TimeoutException(Exception):
pass
@bastichelaar
bastichelaar / This does work
Created April 10, 2012 08:26
Search queries with numbers don't work
curl -XGET 'http://127.0.0.1:9200/_search' -d '
{
"query": {
"term": {
"logsource": "thirtyloops.app.mycoolapp.production"
}
}
}
'