Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECSOPS-329 update ansible roles python3 #107

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Ruefa
Copy link
Contributor

@Ruefa Ruefa commented Jul 29, 2021

No description provided.

roles/docker/defaults/main.yml Outdated Show resolved Hide resolved
ubuntu_docker_ce_version: "{{ docker_ubuntu_ce_version }}~ce~3-0~ubuntu"
centos_docker_ce_version: "{{ docker_centos_ce_version }}.ce"
debian_docker_ce_version: "{{ (ansible_distribution_release == 'buster') | ternary('5:20.10.7~3-0~debian-buster', '5:19.03.15~3-0~debian-stretch') }}"
ubuntu_docker_ce_version: "5:20.10.7~3-0~ubuntu-bionic"
Copy link
Member

@tsoliangwu0130 tsoliangwu0130 Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't checked these ubuntu and debian Docker versions yet. Are they LTS? Are there any security vulnerabilities in our current install? Update Docker needs more testing and research based on my experience, so I'd recommend creating another ticket to take care of the Docker update or the scope of this ticket will be super huge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many vulnerabilities and at least one serious vuln. I reversed this commit and I'll make a ticket to do further testing.

# Ubuntu pip2 path doesnt set correctly
- name: install docker with pip2 (Ubuntu)
shell:
cmd: /usr/bin/python3.6 -m pip install docker-compose
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you are using Python3 to install docker-compose here, instead of using pip2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I corrected the language I used. Ansible docker modules on ubuntu use this python regardless of what defaults you set and I couldnt find a way around that.

roles/docker/tasks/main.yml Show resolved Hide resolved
roles/pip/defaults/main.yaml Outdated Show resolved Hide resolved
name: python-pip
name:
- python-pip
- python-typing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is python-typing for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its a requirement for the packages installed with pip later in this file

roles/pip/tasks/main.yml Outdated Show resolved Hide resolved
roles/python-3/tasks/install.yml Outdated Show resolved Hide resolved
roles/python-3/tasks/main.yml Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants