-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcloud-config.yaml
28 lines (26 loc) · 1012 Bytes
/
cloud-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#cloud-config
coreos:
units:
- name: docker.service
command: start
drop-ins:
- name: 50-custom-bridge.conf
content: |
[Service]
Environment='DOCKER_OPTS=--bip="10.0.11.0/8" --fixed-cidr="10.0.11.0/24"'
- name: openvswitch.service
command: start
content: |
[Unit]
Description=Open vSwitch Servers
After=docker.service
Requires=docker.service
[Service]
Restart=always
ExecStartPre=/sbin/modprobe openvswitch
ExecStartPre=/sbin/modprobe af_key
ExecStartPre=-/usr/bin/docker run --name=openvswitch-cfg -v /opt/ovs/etc busybox true
ExecStartPre=-/usr/bin/docker rm -f openvswitch
ExecStartPre=/usr/bin/docker run -d --net=host --privileged --name=openvswitch --volumes-from=openvswitch-cfg theojulienne/coreos-ovs:latest
ExecStart=/usr/bin/docker attach openvswitch
ExecStartPost=/usr/bin/docker exec openvswitch /scripts/docker-attach