-
Notifications
You must be signed in to change notification settings - Fork 167
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
ansible: add httplib2 #2881
Merged
Merged
ansible: add httplib2 #2881
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -144,10 +144,6 @@ packages: { | |
'gcc-c++,sudo,git,zip,unzip,iptables-services,GConf2-devel,openssl-devel,python3', | ||
], | ||
|
||
rhel8_s390x: [ | ||
'GConf2-devel,python2' # Needed for V8 builds | ||
], | ||
|
||
Comment on lines
-147
to
-150
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to |
||
rhel8: [ | ||
'ccache,cmake,gcc-c++,gcc-toolset-11,git,make,python3', | ||
], | ||
|
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,9 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 7 | ||
|
||
- name: register Red Hat subscription | ||
community.general.redhat_subscription: | ||
activationkey: "{{ type }}" | ||
org_id: "{{ rh_org }}" | ||
state: present |
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,16 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install packages required for V8 builds | ||
include: "{{ v8deps_include }}" | ||
loop_control: | ||
loop_var: v8deps_include | ||
with_first_found: | ||
- files: | ||
- "{{ role_path }}/tasks/partials/{{ os }}-{{ arch }}.yml" | ||
- "{{ role_path }}/tasks/partials/{{ os }}.yml" | ||
- "{{ role_path }}/tasks/partials/{{ os|stripversion }}.yml" | ||
skip: true |
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,10 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install httplib2 | ||
ansible.builtin.yum: | ||
name: ['python2-httplib2', 'python3-httplib2'] | ||
state: present |
33 changes: 33 additions & 0 deletions
33
ansible/roles/build-test-v8/tasks/partials/rhel7-s390x.yml
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 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
# RHEL 7 doesn't have a package for pip and EPEL 7 doesn't support s390x. | ||
# Install pip via `get-pip.py`. | ||
- name: download pip install script | ||
ansible.builtin.get_url: | ||
dest: "{{ home }}/{{ server_user }}/get-pip.py" | ||
url: https://bootstrap.pypa.io/pip/2.7/get-pip.py | ||
|
||
- name: install pip | ||
ansible.builtin.shell: | ||
cmd: python {{ home }}/{{ server_user }}/get-pip.py | ||
creates: /usr/bin/pip2 | ||
|
||
# With pip2 we're getting a `No module named glob` error when pep517 is used | ||
# (defaults to use). httplib2 0.18.0 is the last version that is installable | ||
# with `--no-use-pep517`. | ||
- name: install httplib2 for python 2 | ||
ansible.builtin.pip: | ||
executable: pip2 | ||
extra_args: --no-use-pep517 | ||
name: httplib2==0.18.0 | ||
state: present | ||
|
||
- name: install httplib2 for python 3 | ||
ansible.builtin.pip: | ||
executable: pip-3 | ||
name: httplib2 | ||
state: present |
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,24 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
# V8 builds still require Python 2. | ||
- name: install packages required to build V8 | ||
ansible.builtin.dnf: | ||
name: ['GConf2-devel', 'python2', 'python2-pip', 'python3-httplib2'] | ||
state: present | ||
|
||
- name: update python package alternatives | ||
community.general.alternatives: | ||
link: /usr/bin/python | ||
name: python | ||
path: /usr/bin/python2 | ||
|
||
# RHEL 8 doesn't have a package for httplib2 for Python 2 so install via pip. | ||
- name: install httplib2 | ||
ansible.builtin.pip: | ||
executable: pip2 | ||
name: httplib2 | ||
state: present |
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,10 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
- name: install httplib2 | ||
ansible.builtin.apt: | ||
name: ['python-httplib2', 'python3-httplib2'] | ||
state: present |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to
ansible/roles/build-test-v8/tasks/partials/rhel8.yml
.