Fedora a part de CentOS
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{% if grains['kernel'] == 'Linux' %}
|
{% if grains['kernel'] == 'Linux' %}
|
||||||
{% if grains['os_family'] == 'RedHat' %}
|
{% if grains['os_family'] == 'RedHat' %}
|
||||||
{% if grains['os'] == 'CentOS' or grains['os'] == 'Fedora' %}
|
{% if grains['os'] == 'CentOS' %}
|
||||||
CentOS Docker PreRequisites:
|
CentOS Docker PreRequisites:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
@@ -27,7 +27,33 @@
|
|||||||
- name: docker
|
- name: docker
|
||||||
- addusers:
|
- addusers:
|
||||||
- iwan
|
- iwan
|
||||||
|
{% elif or grains['os'] == 'Fedora' %}
|
||||||
|
Fedora Docker PreRequisites:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- dnf-utils
|
||||||
|
- device-mapper-persistent-data
|
||||||
|
- lvm2
|
||||||
|
|
||||||
|
Fedora Docker Add Repo:
|
||||||
|
cmd.run:
|
||||||
|
- name: dnf-config-manager -y --add-repo 'https://download.docker.com/linux/fedora/docker-ce.repo'
|
||||||
|
|
||||||
|
Fedora Docker CE installation:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- docker-ce
|
||||||
|
|
||||||
|
Fedora docker Service running:
|
||||||
|
service.running:
|
||||||
|
- name: docker
|
||||||
|
- enable: True
|
||||||
|
|
||||||
|
Fedora Docker Group:
|
||||||
|
group.present:
|
||||||
|
- name: docker
|
||||||
|
- addusers:
|
||||||
|
- iwan
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif grains['os_family'] == 'Debian' %}
|
{% elif grains['os_family'] == 'Debian' %}
|
||||||
{% if grains['os'] == 'Debian' %}
|
{% if grains['os'] == 'Debian' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user