-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NR-164383 feat: install docker in old suse distributions
- Loading branch information
1 parent
d01b069
commit 131480e
Showing
5 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
caos.ansible_roles/roles/docker_install/files/open-suse-15.1.repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Docker] | ||
name=Docker | ||
enabled=1 | ||
autorefresh=0 | ||
baseurl=http://download.opensuse.org/distribution/leap/15.1/repo/oss/ | ||
type=rpm-md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
caos.ansible_roles/roles/docker_install/tasks/install-docker-SLES_old.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
# Use OpenSUSE 15.1 repo to install docker | ||
- name: install OpenSUSE 15.1 repo for docker | ||
copy: | ||
src: open-suse-15.1.repo | ||
dest: /etc/zypp/repos.d/open-suse-15.1.repo | ||
|
||
- name: zypper refresh Docker | ||
command: zypper refresh Docker | ||
|
||
# python-PyYAML is used by aws-cli that we don't use in canaries | ||
- name: remove python-PyYAML that conflicts with this version of docker | ||
zypper: | ||
name: "python-PyYAML" | ||
state: absent | ||
oldpackage: yes | ||
update_cache: yes | ||
force: yes | ||
|
||
- name: install docker and docker-compose | ||
command: zypper install -y --from Docker docker | ||
|
||
# remove repo | ||
- name: install OpenSUSE 15.1 repo for docker | ||
file: | ||
path: /etc/zypp/repos.d/open-suse-15.1.repo | ||
state: absent | ||
|
||
- name: zypper refresh | ||
command: zypper refresh | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
docker_compose_version: 2.12.2 | ||
docker_compose_version: 2.12.2 | ||
suse_versions_wo_docker: | ||
- "12.3" | ||
- "12.4" |