2015-07-29 06:52:15 +00:00
|
|
|
rancher:
|
2016-05-03 15:55:15 +00:00
|
|
|
defaults:
|
|
|
|
hostname: {{.HOSTNAME_DEFAULT}}
|
|
|
|
network:
|
|
|
|
dns:
|
|
|
|
nameservers: [8.8.8.8, 8.8.4.4]
|
2015-07-29 06:52:15 +00:00
|
|
|
bootstrap:
|
2015-12-21 06:26:34 +00:00
|
|
|
state-script:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-statescript:{{.VERSION}}{{.SUFFIX}}
|
2015-12-21 06:26:34 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.detach: "false"
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.after: udev-bootstrap
|
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/host/dev
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
- /lib/firmware:/lib/firmware
|
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
|
|
|
- /usr/share/ros:/usr/share/ros:ro
|
2015-08-06 19:01:57 +00:00
|
|
|
udev-bootstrap:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
|
2015-08-27 09:06:01 +00:00
|
|
|
environment:
|
|
|
|
- BOOTSTRAP=true
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/host/dev
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
- /lib/firmware:/lib/firmware
|
2015-07-21 15:43:20 +00:00
|
|
|
autoformat:
|
2015-07-29 06:52:15 +00:00
|
|
|
autoformat:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-autoformat:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
2015-08-06 19:01:57 +00:00
|
|
|
udev-autoformat:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
2015-08-04 21:45:38 +00:00
|
|
|
io.rancher.os.after: autoformat
|
2015-07-29 06:52:15 +00:00
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/host/dev
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
- /lib/firmware:/lib/firmware
|
|
|
|
bootstrap_docker:
|
2015-08-18 07:49:04 +00:00
|
|
|
args: [daemon, -s, overlay, -b, none, --restart=false, -g, /var/lib/system-docker,
|
2015-07-29 07:51:49 +00:00
|
|
|
-G, root, -H, 'unix:///var/run/system-docker.sock', --userland-proxy=false]
|
2015-07-29 06:52:15 +00:00
|
|
|
cloud_init:
|
|
|
|
datasources:
|
|
|
|
- configdrive:/media/config-2
|
|
|
|
repositories:
|
|
|
|
core:
|
2016-05-23 06:51:46 +00:00
|
|
|
url: {{.OS_SERVICES_REPO}}/{{.REPO_VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
state:
|
|
|
|
fstype: auto
|
|
|
|
dev: LABEL=RANCHER_STATE
|
2015-12-20 05:26:09 +00:00
|
|
|
oem_fstype: auto
|
|
|
|
oem_dev: LABEL=RANCHER_OEM
|
2015-07-29 06:52:15 +00:00
|
|
|
services:
|
2016-02-24 03:06:14 +00:00
|
|
|
{{if eq "amd64" .ARCH -}}
|
2015-07-29 06:52:15 +00:00
|
|
|
acpid:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-acpid:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
2016-02-24 03:06:14 +00:00
|
|
|
{{end -}}
|
2015-07-29 06:52:15 +00:00
|
|
|
all-volumes:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes_from:
|
2015-10-04 06:07:56 +00:00
|
|
|
- container-data-volumes
|
2015-07-29 06:52:15 +00:00
|
|
|
- command-volumes
|
|
|
|
- user-volumes
|
|
|
|
- system-volumes
|
|
|
|
cloud-init:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-cloudinit:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
|
|
|
io.rancher.os.reloadconfig: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
2016-04-08 20:04:35 +00:00
|
|
|
io.rancher.os.after: ntp
|
2015-07-29 06:52:15 +00:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
cloud-init-pre:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-cloudinit:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
environment:
|
|
|
|
- CLOUD_INIT_NETWORK=false
|
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
|
|
|
io.rancher.os.reloadconfig: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
2015-08-04 21:45:38 +00:00
|
|
|
io.rancher.os.after: preload-system-images
|
2015-07-29 06:52:15 +00:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
command-volumes:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes:
|
2015-08-27 19:24:26 +00:00
|
|
|
- /usr/bin/docker:/usr/bin/docker.dist:ro
|
2015-11-13 08:07:16 +00:00
|
|
|
- /usr/bin/ros:/usr/bin/dockerlaunch:ro
|
|
|
|
- /usr/bin/ros:/usr/bin/user-docker:ro
|
|
|
|
- /usr/bin/ros:/usr/bin/system-docker:ro
|
2015-07-29 07:51:49 +00:00
|
|
|
- /usr/bin/ros:/sbin/poweroff:ro
|
|
|
|
- /usr/bin/ros:/sbin/reboot:ro
|
2015-11-13 08:07:16 +00:00
|
|
|
- /usr/bin/ros:/sbin/halt:ro
|
2015-07-29 07:51:49 +00:00
|
|
|
- /usr/bin/ros:/sbin/shutdown:ro
|
2015-08-27 13:33:26 +00:00
|
|
|
- /usr/bin/ros:/usr/bin/respawn:ro
|
2015-11-18 09:04:46 +00:00
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
2015-11-13 08:07:16 +00:00
|
|
|
- /usr/bin/ros:/usr/bin/cloud-init:ro
|
|
|
|
- /usr/bin/ros:/usr/sbin/netconf:ro
|
2015-07-29 07:51:49 +00:00
|
|
|
- /usr/bin/ros:/usr/sbin/wait-for-docker:ro
|
2015-07-29 06:52:15 +00:00
|
|
|
console:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2016-05-27 01:54:42 +00:00
|
|
|
io.rancher.os.after: network
|
2015-08-26 15:05:44 +00:00
|
|
|
io.docker.compose.rebuild: always
|
2015-07-29 06:52:15 +00:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- all-volumes
|
2015-08-31 07:53:45 +00:00
|
|
|
volumes:
|
|
|
|
- /usr/bin/iptables:/sbin/iptables:ro
|
2015-10-04 06:07:56 +00:00
|
|
|
container-data-volumes:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes:
|
|
|
|
- /var/lib/docker:/var/lib/docker
|
2016-03-31 19:52:14 +00:00
|
|
|
- /var/lib/system-docker:/var/lib/system-docker
|
2015-10-04 06:07:56 +00:00
|
|
|
- /var/lib/rkt:/var/lib/rkt
|
2016-04-08 20:04:35 +00:00
|
|
|
network-pre:
|
2016-05-27 01:54:42 +00:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: netconf
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2015-08-04 21:45:38 +00:00
|
|
|
io.rancher.os.after: cloud-init-pre
|
2015-07-29 06:52:15 +00:00
|
|
|
net: host
|
|
|
|
uts: host
|
2015-11-06 16:53:00 +00:00
|
|
|
pid: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
2016-04-08 20:04:35 +00:00
|
|
|
network:
|
2016-05-27 01:54:42 +00:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: netconf --stop-network-pre
|
2016-04-08 20:04:35 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.after: cloud-init
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
pid: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
2015-07-29 06:52:15 +00:00
|
|
|
ntp:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-ntp:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2016-05-27 01:54:42 +00:00
|
|
|
io.rancher.os.after: network-pre
|
2015-07-29 06:52:15 +00:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
preload-system-images:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-preload:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /var/run/system-docker.sock:/var/run/docker.sock
|
|
|
|
- /var/lib/system-docker/preload:/mnt/preload
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
preload-user-images:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-preload:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "false"
|
2015-08-06 19:01:57 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.after: console
|
2015-07-29 06:52:15 +00:00
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /var/lib/docker/preload:/mnt/preload
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
syslog:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-syslog:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- system-volumes
|
|
|
|
system-volumes:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/host/dev
|
2015-08-27 19:24:26 +00:00
|
|
|
- /etc/docker:/etc/docker
|
2015-12-10 15:56:15 +00:00
|
|
|
- /etc/hosts:/etc/hosts
|
2015-11-30 11:06:21 +00:00
|
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
2015-10-04 06:07:56 +00:00
|
|
|
- /etc/rkt:/etc/rkt
|
2015-07-29 06:52:15 +00:00
|
|
|
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
|
2016-02-20 00:11:32 +00:00
|
|
|
- /etc/selinux:/etc/selinux
|
2015-08-27 13:33:26 +00:00
|
|
|
- /lib/firmware:/lib/firmware
|
2015-08-27 19:24:26 +00:00
|
|
|
- /lib/modules:/lib/modules
|
2015-08-11 05:57:15 +00:00
|
|
|
- /run:/run
|
2015-12-20 05:26:09 +00:00
|
|
|
- /usr/share/ros:/usr/share/ros
|
2016-05-25 16:40:28 +00:00
|
|
|
- /var/lib/rancher/cache:/var/lib/rancher/cache
|
2015-08-27 19:24:26 +00:00
|
|
|
- /var/lib/rancher/conf:/var/lib/rancher/conf
|
|
|
|
- /var/lib/rancher:/var/lib/rancher
|
2015-08-27 13:33:26 +00:00
|
|
|
- /var/log:/var/log
|
2015-08-27 19:24:26 +00:00
|
|
|
- /var/run:/var/run
|
2015-08-11 05:57:15 +00:00
|
|
|
udev-cold:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
|
2015-08-11 05:57:15 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.before: udev
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- system-volumes
|
2015-07-29 06:52:15 +00:00
|
|
|
udev:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-udev:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
environment:
|
|
|
|
- DAEMON=true
|
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.detach: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- system-volumes
|
|
|
|
user-volumes:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-state:{{.VERSION}}{{.SUFFIX}}
|
2015-07-29 06:52:15 +00:00
|
|
|
labels:
|
2015-11-26 12:41:42 +00:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 06:52:15 +00:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes:
|
|
|
|
- /home:/home
|
|
|
|
- /opt:/opt
|
2015-08-27 19:24:26 +00:00
|
|
|
docker:
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os-docker:{{.VERSION}}{{.SUFFIX}}
|
2015-08-27 19:24:26 +00:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2015-08-27 20:02:42 +00:00
|
|
|
io.rancher.os.after: console
|
2015-08-27 19:24:26 +00:00
|
|
|
net: host
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- all-volumes
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/host/sys/fs/cgroup
|
2015-07-29 06:52:15 +00:00
|
|
|
system_docker:
|
2015-08-14 05:24:52 +00:00
|
|
|
args: [daemon, --log-opt, max-size=25m, --log-opt, max-file=2, -s, overlay, -b, docker-sys,
|
2015-08-13 16:07:31 +00:00
|
|
|
--fixed-cidr, 172.18.42.1/16, --restart=false, -g, /var/lib/system-docker, -G, root,
|
2015-07-29 06:52:15 +00:00
|
|
|
-H, 'unix:///var/run/system-docker.sock', --userland-proxy=false]
|
|
|
|
upgrade:
|
2016-02-24 03:06:14 +00:00
|
|
|
url: {{.OS_RELEASES_YML}}
|
2016-05-06 17:12:09 +00:00
|
|
|
image: {{.OS_REPO}}/os
|
2015-09-11 09:10:50 +00:00
|
|
|
docker:
|
2015-12-10 06:36:37 +00:00
|
|
|
tls_args: [--tlsverify, --tlscacert=/etc/docker/tls/ca.pem, --tlscert=/etc/docker/tls/server-cert.pem, --tlskey=/etc/docker/tls/server-key.pem,
|
2015-07-29 06:52:15 +00:00
|
|
|
'-H=0.0.0.0:2376']
|
2016-01-19 05:20:50 +00:00
|
|
|
args: [daemon, --log-opt, max-size=25m, --log-opt, max-file=2, -s, overlay, -G, docker, -H, 'unix:///var/run/docker.sock']
|