View docker-mesos-dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -pv mesos-dns && tee mesos-dns/config.json <<'EOF' | |
{ | |
"zk": "zk://ZK1:2181,ZK2:2181,ZK3:2181/mesos", | |
"masters": ["MASTER1:5050", "MASTER2:5050", "MASTER3:5050"], | |
"refreshSeconds": 60, | |
"ttl": 60, | |
"domain": "pick.your.domain.com", | |
"port": 53, | |
"resolvers": ["dns_ip1", "dns_ip2", "dns_ip3"], | |
"timeout": 5, |
View docker-run-mesos-dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -d --name mesos-dns -p 53:53/udp -p 8123 -v "$PWD/mesos-dns/config.json:/config.json" -v "$PWD/mesos-dns/logs:/tmp" mesosphere/mesos-dns:0.5.2 /usr/bin/mesos-dns -v=2 -config=/config.json |
View mac-bash-profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add userspace python binaries to path - 2016.07.12 | |
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wb/Library/Python/2.7/bin | |
# java home | |
export JAVA_HOME=`/usr/libexec/java_home` | |
# Alias List | |
alias ll='ls -l' | |
# Bash prompt |
View rexray-aws-policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:CreateTags", | |
"ec2:DescribeInstances", | |
"ec2:CreateVolume", | |
"ec2:DeleteVolume", | |
"ec2:AttachVolume", |
View check-user-exist.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COUNTER=0 | |
USER='blah' | |
while [ $COUNTER -lt 10 ]; do | |
if [ `id -u $USER 2>/dev/null || echo -1` -ge 0 ]; then | |
echo 'User Found... Moving on...' | |
break | |
else |
View get-pub-ip.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -o nounset -o errexit | |
curl -fsSL https://ipinfo.io/ip |
View ip-detect.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip route get 8.8.8.8 | awk '{print $7; exit}' |
View unpack-certs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOCATION=`S3|http|NFS|ETC|location_of_tar` | |
sudo curl -o /tmp/ca-certs.tar $LOCATION \ | |
&& sudo cd /etc/pki/ca-trust/source/anchors \ | |
&& sudo tar vfx /tmp/ca-certs.tar \ | |
&& sudo /usr/bin/update-ca-trust extract |
View dcos_agent_ami
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"provisioners": [ | |
{ | |
"type": "shell", | |
"remote_path": "/home/centos/agent-setup.sh", | |
"script": "agent-setup.sh" | |
}, | |
{ | |
"type": "ansible-local", | |
"playbook_file": "ansible/aws-packer.yml", | |
"playbook_dir": "ansible", |
View dcos_setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Install epel-release for later | |
sudo yum install -y epel-release wget curl | |
# Setup Python | |
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | |
sudo python get-pip.py | |
sudo rm -rf get-pip.py |
OlderNewer