Skip to content

Instantly share code, notes, and snippets.

@rimusz
Created May 19, 2015 19:35
Show Gist options
  • Select an option

  • Save rimusz/97a37e53f3caa31e2372 to your computer and use it in GitHub Desktop.

Select an option

Save rimusz/97a37e53f3caa31e2372 to your computer and use it in GitHub Desktop.
Softlayer baremetal cloud-config
#cloud-config
hostname: control1
ssh_authorized_keys:
- ssh-rsa
somekey
coreos:
update:
reboot-strategy: off
etcd:
addr: 10.112.212.200:4001
peer-addr: 10.112.212.200:7001
fleet:
metadata: "role=services,cpeer=control1"
units:
- name: etcd.service
command: start
- name: flanneld.service
drop-ins:
- name: 50-network-config.conf
content: |
[Service]
Environment=FLANNEL_VER=0.3.0
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{ "Network": "10.244.0.0/16" }'
command: start
- name: fleet.service
command: start
- name: 10-static.network
runtime: true
content: |
[Match]
Name=eno1
[Network]
Address=10.112.212.200
[Route]
Gateway=10.112.212.193
Destination=10.0.0.0/8
- name: 20-static.network
runtime: true
content: |
[Match]
Name=eno2
[Network]
Address=111.2.223.150/28
Gateway=111.2.223.145
DNS=8.8.8.8
DNS=4.4.4.4
# Custom scripts
write_files:
- path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
content: |
[Service]
Environment=DOCKER_OPTS='--insecure-registry="0.0.0.0/0"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment