1
0
mirror of https://github.com/rancher/os.git synced 2025-05-13 10:34:43 +00:00
os/os-config.tpl.yml

376 lines
10 KiB
YAML
Raw Normal View History

rancher:
environment:
VERSION: {{.VERSION}}
SUFFIX: {{.SUFFIX}}
defaults:
hostname: {{.HOSTNAME_DEFAULT}}
{{if eq "amd64" .ARCH -}}
docker:
engine: docker-17.03.1-ce
{{else -}}
docker:
engine: docker-1.11.2
{{end -}}
network:
dns:
nameservers: [8.8.8.8, 8.8.4.4]
bootstrap:
bootstrap:
image: {{.OS_REPO}}/os-bootstrap:{{.VERSION}}{{.SUFFIX}}
command: ros bootstrap
labels:
io.rancher.os.detach: "false"
io.rancher.os.scope: system
log_driver: json-file
net: none
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
- /var/lib/rancher:/var/lib/rancher:ro
2016-11-09 19:08:30 +00:00
cloud_init_services:
cloud-init:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: cloud-init-save
labels:
io.rancher.os.detach: "false"
io.rancher.os.scope: system
log_driver: json-file
net: host
uts: host
pid: host
ipc: host
privileged: true
volumes:
- /dev:/host/dev
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
- /lib/modules:/lib/modules
- /lib/firmware:/lib/firmware
- /usr/bin/ros:/usr/bin/ros:ro
- /usr/bin/ros:/usr/bin/cloud-init-save
- /usr/share/ros:/usr/share/ros:ro
- /var/lib/rancher:/var/lib/rancher
- /var/lib/rancher/conf:/var/lib/rancher/conf
bootstrap_docker:
bridge: none
storage_driver: overlay
restart: false
graph: /var/lib/system-docker
group: root
2016-10-30 19:07:55 +00:00
host: ["unix:///var/run/system-docker.sock"]
userland_proxy: false
console: default
cloud_init:
datasources:
- configdrive:/media/config-2
repositories:
core:
2016-07-01 17:13:52 +00:00
url: {{.OS_SERVICES_REPO}}/{{.REPO_VERSION}}
state:
fstype: auto
oem_fstype: auto
oem_dev: LABEL=RANCHER_OEM
sysctl:
fs.file-max: 1000000000
services:
2016-02-24 03:06:14 +00:00
{{if eq "amd64" .ARCH -}}
acpid:
2016-07-22 06:08:14 +00:00
image: {{.OS_REPO}}/os-acpid:{{.VERSION}}{{.SUFFIX}}
2016-06-16 21:26:06 +00:00
command: /usr/sbin/acpid -f
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 -}}
all-volumes:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
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
- command-volumes
- media-volumes
- user-volumes
- system-volumes
cloud-init-execute:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: cloud-init-execute -pre-console
labels:
io.rancher.os.detach: "false"
io.rancher.os.scope: system
2016-11-09 19:08:30 +00:00
io.rancher.os.after: ntp
net: host
uts: host
privileged: true
volumes_from:
- system-volumes
2016-11-21 19:52:21 +00:00
volumes:
- /usr/bin/ros:/usr/bin/ros
command-volumes:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
log_driver: json-file
net: none
privileged: true
read_only: true
volumes:
- /usr/bin/ros:/usr/bin/ros:ro
console:
2016-05-06 17:12:09 +00:00
image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
command: ros console-init
labels:
io.rancher.os.scope: system
2016-11-09 19:08:30 +00:00
io.rancher.os.after: cloud-init-execute
io.docker.compose.rebuild: always
io.rancher.os.console: default
net: host
uts: host
pid: host
ipc: host
privileged: true
restart: always
volumes_from:
- all-volumes
volumes:
- /usr/bin/iptables:/sbin/iptables:ro
2015-10-04 06:07:56 +00:00
container-data-volumes:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
log_driver: json-file
net: none
privileged: true
read_only: true
volumes:
- /var/lib/docker:/var/lib/docker
logrotate:
image: {{.OS_REPO}}/os-logrotate:{{.VERSION}}{{.SUFFIX}}
command: /usr/sbin/logrotate -v /etc/logrotate.conf
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
io.rancher.os.before: system-cron
cron.schedule: "@hourly"
uts: host
net: none
privileged: true
volumes_from:
- command-volumes
- system-volumes
media-volumes:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
log_driver: json-file
net: none
privileged: true
read_only: true
volumes:
- /media:/media:shared
- /mnt:/mnt:shared
network:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
2016-11-09 19:08:30 +00:00
command: netconf
labels:
io.rancher.os.scope: system
2016-11-09 19:08:30 +00:00
io.rancher.os.after: udev
io.rancher.os.reloadconfig: "true"
net: host
uts: host
pid: host
privileged: true
volumes_from:
- command-volumes
- system-volumes
volumes:
- /usr/bin/iptables:/sbin/iptables:ro
ntp:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: ntpd --nofork -g
labels:
io.rancher.os.scope: system
2016-11-09 19:08:30 +00:00
io.rancher.os.after: network
net: host
uts: host
privileged: true
restart: always
volumes_from:
- command-volumes
- system-volumes
preload-user-images:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: ros preload-images
labels:
io.rancher.os.detach: "false"
2015-08-06 19:01:57 +00:00
io.rancher.os.scope: system
io.rancher.os.after: console
privileged: true
volumes_from:
- command-volumes
- system-volumes
syslog:
image: {{.OS_REPO}}/os-syslog:{{.VERSION}}{{.SUFFIX}}
2016-11-03 23:43:41 +00:00
command: rsyslogd -n
labels:
io.rancher.os.scope: system
log_driver: json-file
net: host
uts: host
privileged: true
restart: always
volumes_from:
- command-volumes
- system-volumes
system-cron:
image: rancher/container-crontab:v0.1.0
labels:
io.rancher.os.scope: system
uts: host
net: none
privileged: true
restart: always
volumes:
- /var/run/system-docker.sock:/var/run/docker.sock
system-volumes:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
log_driver: json-file
net: none
privileged: true
read_only: true
volumes:
- /dev:/host/dev
- /etc/docker:/etc/docker
2015-12-10 15:56:15 +00:00
- /etc/hosts:/etc/hosts
- /etc/logrotate.d:/etc/logrotate.d
- /etc/resolv.conf:/etc/resolv.conf
- /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
- /lib/modules:/lib/modules
2015-08-11 05:57:15 +00:00
- /run:/run
- /usr/share/ros:/usr/share/ros
- /var/lib/rancher/cache:/var/lib/rancher/cache
- /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
- /var/run:/var/run
2015-08-11 05:57:15 +00:00
udev-cold:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: ros udev-settle
2015-08-11 05:57:15 +00:00
labels:
io.rancher.os.detach: "false"
2015-08-11 05:57:15 +00:00
io.rancher.os.scope: system
net: host
uts: host
privileged: true
volumes_from:
- command-volumes
2015-08-11 05:57:15 +00:00
- system-volumes
udev:
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: udevd
labels:
io.rancher.os.detach: "true"
io.rancher.os.scope: system
io.rancher.os.after: udev-cold
net: host
uts: host
privileged: true
restart: always
volumes_from:
- command-volumes
- system-volumes
user-volumes:
2016-06-16 21:26:06 +00:00
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
command: echo
labels:
io.rancher.os.createonly: "true"
io.rancher.os.scope: system
log_driver: json-file
net: none
privileged: true
read_only: true
volumes:
- /home:/home
- /opt:/opt
docker:
{{if eq "amd64" .ARCH -}}
image: {{.OS_REPO}}/os-docker:17.03.1{{.SUFFIX}}
{{else -}}
image: {{.OS_REPO}}/os-docker:1.11.2{{.SUFFIX}}
{{end -}}
command: ros user-docker
environment:
- HTTP_PROXY
- HTTPS_PROXY
- NO_PROXY
labels:
io.rancher.os.scope: system
io.rancher.os.after: console
net: host
pid: host
ipc: host
uts: host
privileged: true
restart: always
volumes_from:
- all-volumes
2016-09-09 16:06:23 +00:00
volumes:
- /sys:/host/sys
- /var/lib/system-docker:/var/lib/system-docker:shared
system_docker:
2016-06-01 04:38:10 +00:00
exec: true
storage_driver: overlay
restart: false
graph: /var/lib/system-docker
group: root
2016-10-30 19:07:55 +00:00
host: ["unix:///var/run/system-docker.sock"]
pid_file: /var/run/system-docker.pid
exec_root: /var/run/system-docker
config_file: /etc/docker/system-docker.json
userland_proxy: false
log_opts:
max-size: 25m
max-file: 2
upgrade:
url: {{.OS_RELEASES_YML}}/releases{{.SUFFIX}}.yml
2016-05-06 17:12:09 +00:00
image: {{.OS_REPO}}/os
docker:
{{if eq "amd64" .ARCH -}}
engine: docker-17.03.1-ce
{{else -}}
engine: docker-1.11.2
{{end -}}
storage_driver: overlay
group: docker
2016-10-30 19:07:55 +00:00
host: ["unix:///var/run/docker.sock"]
log_opts:
max-size: 25m
max-file: 2
tls_args: [--tlsverify, --tlscacert=/etc/docker/tls/ca.pem, --tlscert=/etc/docker/tls/server-cert.pem, --tlskey=/etc/docker/tls/server-key.pem,
'-H=0.0.0.0:2376']