Skip to content

Instantly share code, notes, and snippets.

View ca0abinary's full-sized avatar

Jonathan DeMarks ca0abinary

  • SPS Commerce
  • West Plains MO US
View GitHub Profile
@ca0abinary
ca0abinary / mesos-slave@.service
Created March 27, 2015 14:53
CoreOS (Mesos + Marathon + Zookeeper)
[Unit]
Description=MesosSlave
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill mesos_slave
@ca0abinary
ca0abinary / marathon@.service
Created March 27, 2015 14:54
CoreOS (Mesos + Marathon + Zookeeper)
[Unit]
Description=Marathon
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill marathon
@ca0abinary
ca0abinary / mesos-master@.service
Created March 27, 2015 14:52
CoreOS (Mesos + Marathon + Zookeeper)
[Unit]
Description=MesosMaster
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill mesos_master
@ca0abinary
ca0abinary / zookeeper@.service
Created March 27, 2015 14:50
CoreOS (Mesos + Marathon + Zookeeper)
[Unit]
Description=Zookeeper service
After=docker-flannel.service
ConditionFileNotEmpty=/etc/zookeeper-release
ConditionFileNotEmpty=/etc/zookeeper-environment
[Service]
EnvironmentFile=/etc/environment
EnvironmentFile=/etc/zookeeper-release
EnvironmentFile=/etc/zookeeper-environment
@ca0abinary
ca0abinary / config.rb
Created March 19, 2015 19:32
CoreOS + Etcd + Flannel = Pretty Cool (config.rb)
$new_discovery_url='https://discovery.etcd.io/new'
# To automatically replace the discovery token on 'vagrant up', uncomment
# the lines below:
if File.exists?('user-data') && ARGV[0].eql?('up')
require 'open-uri'
require 'yaml'
token = open($new_discovery_url).read
@ca0abinary
ca0abinary / user-data
Created March 19, 2015 19:30
CoreOS + Etcd + Flannel = Pretty Cool (user-data)
#cloud-config
---
coreos:
etcd:
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
discovery: https://discovery.etcd.io/ff10c58e472358739a4d57e315cc94f3
fleet:
public-ip: $public_ipv4