Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
4f70da27
Commit
4f70da27
authored
5 years ago
by
LuciferInLove
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added Amazon Linux 2 support for deploying with docker (#5301)
parent
db5040e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/container-engine/docker/vars/amazon.yml
+16
-0
16 additions, 0 deletions
roles/container-engine/docker/vars/amazon.yml
roles/kubernetes/preinstall/tasks/0080-system-configurations.yml
+4
-1
4 additions, 1 deletion
...ubernetes/preinstall/tasks/0080-system-configurations.yml
with
20 additions
and
1 deletion
roles/container-engine/docker/vars/amazon.yml
0 → 100644
+
16
−
0
View file @
4f70da27
---
docker_kernel_min_version
:
'
0'
# https://docs.aws.amazon.com/en_us/AmazonECS/latest/developerguide/docker-basics.html
docker_versioned_pkg
:
'
latest'
:
docker
'18.03'
:
docker-18.03.1ce-5.amzn2
'18.06'
:
docker-18.06.1ce-10.amzn2
docker_version
:
"
latest"
docker_package_info
:
pkg_mgr
:
yum
pkgs
:
-
name
:
"
{{
docker_versioned_pkg[docker_version
|
string]
}}"
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/0080-system-configurations.yml
+
4
−
1
View file @
4f70da27
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
-
name
:
Confirm selinux deployed
-
name
:
Confirm selinux deployed
stat
:
stat
:
path
:
/etc/selinux/config
path
:
/etc/selinux/config
when
:
ansible_os_family == "RedHat"
when
:
-
ansible_os_family == "RedHat"
-
"
'Amazon'
not
in
ansible_distribution"
register
:
slc
register
:
slc
-
name
:
Set selinux policy
-
name
:
Set selinux policy
...
@@ -12,6 +14,7 @@
...
@@ -12,6 +14,7 @@
state
:
"
{{
preinstall_selinux_state
}}"
state
:
"
{{
preinstall_selinux_state
}}"
when
:
when
:
-
ansible_os_family == "RedHat"
-
ansible_os_family == "RedHat"
-
"
'Amazon'
not
in
ansible_distribution"
-
slc.stat.exists
-
slc.stat.exists
changed_when
:
False
changed_when
:
False
tags
:
tags
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment