Created
November 14, 2014 16:57
-
-
Save andrewwebber/1e49ce6d61b73ba04d60 to your computer and use it in GitHub Desktop.
cbfs-cloudconfig
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
#cloud-config | |
coreos: | |
fleet: | |
etcd_servers: http://[etcd server goes here]:4001 | |
metadata: role=kubernetes | |
units: | |
- name: etcd.service | |
mask: true | |
- name: fleet.service | |
command: start | |
- name: docker.service | |
mask: true | |
- name: setup-network-environment.service | |
command: start | |
content: | | |
[Unit] | |
Description=Setup Network Environment | |
Documentation=https://github.com/kelseyhightower/setup-network-environment | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
ExecStartPre=-/usr/bin/mkdir -p /opt/bin | |
ExecStartPre=/usr/bin/wget -N -P /opt/bin http://storage.googleapis.com/snenv/setup-network-environment | |
ExecStartPre=/usr/bin/chmod +x /opt/bin/setup-network-environment | |
ExecStart=/opt/bin/setup-network-environment | |
RemainAfterExit=yes | |
Restart=always | |
RestartSec=2 | |
- name: download-cbfs.service | |
command: start | |
content: | | |
[Unit] | |
After=network-online.target | |
Before=proxy.service | |
Description=Download CBFS Binaries | |
Documentation=http://andrew.webber@brainloop.com | |
Requires=network-online.target | |
[Service] | |
ExecStart=/usr/bin/wget -N -P /opt/bin http://muc-devweb5.brainloop.com/cbfs.linux | |
ExecStart=/usr/bin/chmod +x /opt/bin/cbfs.linux | |
RemainAfterExit=yes | |
Restart=always | |
- name: cbfs.service | |
command: start | |
content: | | |
[Unit] | |
After=setup-network-environment.service | |
ConditionFileIsExecutable=/opt/bin/cbfs.linux | |
Description=Couchbase File System Server | |
Documentation=http://andrew.webber@brainloop.com | |
[Service] | |
EnvironmentFile=/etc/network-environment | |
ExecStart=/opt/bin/cbfs.linux \ | |
--couchbase=http://data1.qmirm.test2:8091 \ | |
--bucket=cbfs \ | |
--nodeID=${DEFAULT_IPV4} \ | |
--verbose | |
Restart=on-failure | |
RestartSec=1 | |
[Install] | |
WantedBy=multi-user.target | |
update: | |
group: alpha | |
reboot-strategy: best-effort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment