Add support for fedora atomic host (#1779)
* don't try to install this rpm on fedora atomic * add docker 1.13.1 for fedora * built-in docker unit file is sufficient, as tested on both fedora and centos atomic
This commit is contained in:
parent
6ec45b10f1
commit
f2235be1d3
4 changed files with 2 additions and 44 deletions
|
@ -24,13 +24,6 @@
|
||||||
notify: restart docker
|
notify: restart docker
|
||||||
when: not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] or is_atomic)
|
when: not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] or is_atomic)
|
||||||
|
|
||||||
- name: Write docker.service systemd file for atomic
|
|
||||||
template:
|
|
||||||
src: docker_atomic.service.j2
|
|
||||||
dest: /etc/systemd/system/docker.service
|
|
||||||
notify: restart docker
|
|
||||||
when: is_atomic
|
|
||||||
|
|
||||||
- name: Write docker options systemd drop-in
|
- name: Write docker options systemd drop-in
|
||||||
template:
|
template:
|
||||||
src: docker-options.conf.j2
|
src: docker-options.conf.j2
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Docker Application Container Engine
|
|
||||||
Documentation=http://docs.docker.com
|
|
||||||
After=network.target
|
|
||||||
Wants=docker-storage-setup.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
NotifyAccess=all
|
|
||||||
EnvironmentFile=-/etc/sysconfig/docker
|
|
||||||
EnvironmentFile=-/etc/sysconfig/docker-storage
|
|
||||||
Environment=GOTRACEBACK=crash
|
|
||||||
Environment=DOCKER_HTTP_HOST_COMPAT=1
|
|
||||||
Environment=PATH=/usr/libexec/docker:/usr/bin:/usr/sbin
|
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
|
||||||
Delegate=yes
|
|
||||||
KillMode=process
|
|
||||||
ExecStart=/usr/bin/dockerd-current \
|
|
||||||
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
|
|
||||||
--default-runtime=docker-runc \
|
|
||||||
--exec-opt native.cgroupdriver=systemd \
|
|
||||||
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current \
|
|
||||||
$DOCKER_OPTS \
|
|
||||||
$DOCKER_STORAGE_OPTIONS \
|
|
||||||
$DOCKER_NETWORK_OPTIONS \
|
|
||||||
$DOCKER_DNS_OPTIONS \
|
|
||||||
$ADD_REGISTRY \
|
|
||||||
$BLOCK_REGISTRY \
|
|
||||||
$INSECURE_REGISTRY
|
|
||||||
LimitNOFILE=1048576
|
|
||||||
LimitNPROC=1048576
|
|
||||||
LimitCORE=infinity
|
|
||||||
TimeoutStartSec=1min
|
|
||||||
Restart=on-abnormal
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -9,6 +9,7 @@ docker_versioned_pkg:
|
||||||
'latest': docker
|
'latest': docker
|
||||||
'1.11': docker-1:1.11.2
|
'1.11': docker-1:1.11.2
|
||||||
'1.12': docker-1:1.12.5
|
'1.12': docker-1:1.12.5
|
||||||
|
'1.13': docker-1.13.1
|
||||||
'stable': docker-ce
|
'stable': docker-ce
|
||||||
'edge': docker-ce-edge
|
'edge': docker-ce-edge
|
||||||
|
|
||||||
|
|
|
@ -133,6 +133,7 @@
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Fedora"
|
- ansible_distribution == "Fedora"
|
||||||
- ansible_distribution_major_version > 21
|
- ansible_distribution_major_version > 21
|
||||||
|
- not is_atomic
|
||||||
changed_when: False
|
changed_when: False
|
||||||
tags:
|
tags:
|
||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
|
|
Loading…
Reference in a new issue