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

Update the supported platforms #60

Merged
merged 7 commits into from
Sep 29, 2022

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Jun 9, 2022

🗣 Description

This pull request updates the platforms supported by this Ansible role in addition to ensuring that the cyhy-commander package is installed with pip2.

⚠ Note

This pull request is reliant on the merge of the following:

💭 Motivation and context

We are in the process of updating the instances in cisagov/cyhy_amis to use Debian Buster for instances running Python 2 code. With the above mentioned PRs for Python/pip installation we can expand the supported platforms. Additionally we update the installation process so that the cyhy-commander package is installed directly with pip.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.

We are making Python 2/pip2 support non-platform specific so we can
expand the platforms we support. Comments that specify Debian Stretch
have been updated accordingly.
With changes to the cisagov/ansible-role-python,
cisagov/ansible-role-pip, and cisagov/ansible-role-remove-python2
projects we need to specify that we want to install Python 2/pip2 and
that we do not want to remove Python 2.
Install the package directly with the pip module instead of downloading
it on the host and installing from an extracted directory and ensure
that it is installed with pip2. Also update testing to include checking
for the apt packages we install.
Use the branches for cisagov/ansible-role-pip,
cisagov/ansible-role-python, and cisagov/ansible-role-cyhy-core that
support installation of Python 2/pip2 as a variable flag.
The host.pip_package class has been deprecated so we need to switch to
the host.pip class. Additionally we should set the path for pip since
we explicitly set it for the pip module in the role.
@mcdonnnj mcdonnnj added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use dependencies Pull requests that update a dependency file labels Jun 9, 2022
@mcdonnnj mcdonnnj self-assigned this Jun 9, 2022
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

💪 💼

tasks/main.yml Show resolved Hide resolved
@mcdonnnj mcdonnnj added the blocked This issue or pull request is awaiting the outcome of another issue or pull request label Jun 9, 2022
Since `docutils` is a dependency for `cyhy-commander` it should also be
installed into the system Python 2 environment.
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

👍 👍

Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

Good catch!

This reverts commit d857f5f.

These branches have been merged into their respective develop branches.
@dav3r dav3r added this to the Summer CyHy AMI Spectacular milestone Sep 29, 2022
@mcdonnnj mcdonnnj merged commit 07e95b7 into develop Sep 29, 2022
@mcdonnnj mcdonnnj deleted the improvement/update_platforms_supported branch September 29, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue or pull request is awaiting the outcome of another issue or pull request dependencies Pull requests that update a dependency file improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants