Skip to content

Instantly share code, notes, and snippets.

@andrewwebber
Last active April 8, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewwebber/f788790772cef47ed5bff39aae2212cf to your computer and use it in GitHub Desktop.
Save andrewwebber/f788790772cef47ed5bff39aae2212cf to your computer and use it in GitHub Desktop.
kolla-coreos
#cloud-config
users:
- name: core
passwd: $1$XMZXIbkN$WKmZMCgi5pQWXb7jSywjp1
coreos:
units:
- name: etcd2.service
command: start
- name: fleet.service
command: start
- name: docker.service
drop-ins:
- name: 50-insecure-registry.conf
content: |
[Service]
Environment='DOCKER_OPTS=--insecure-registry="172.20.10.206:4000"'
- name: 40-change-mountflags.conf
content: |
[Service]
MountFlags=shared
command: restart
write_files:
- path: /etc/systemd/network/10-virt.netdev
permissions: 0644
owner: root
content: |
[NetDev]
Name=virbr0
Kind=bridge
- path: /etc/systemd/network/20-static.network
permissions: 0644
owner: root
content: |
[Match]
Name=ens13f0
[Network]
Bridge=virbr0
- path: /etc/systemd/network/30-virt.network
permissions: 0644
owner: root
content: |
[Match]
Name=virbr0
[Network]
DNS=172.20.20.20
Address=172.20.30.167/24
Gateway=172.20.30.1
- path: /etc/systemd/network/40-veth.netdev
permissions: 0644
owner: root
content: |
[NetDev]
Name=veth0
Kind=veth
[Peer]
Name=veth1
- path: /etc/systemd/network/50-virt.network
permissions: 0644
owner: root
content: |
[Match]
Name=veth0
[Network]
Bridge=virbr0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment