-
Notifications
You must be signed in to change notification settings - Fork 13
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
Irods and davrods: bigger update #3 #612
Conversation
…bots into irods_and_davrods
…dated variables, rewrite database_connect.py, increased davrods security/tls> v1.2 and limited ciphers ...
# - name: Upgrade pip to latest version | ||
# ansible.builtin.command: pip3 install -U pip | ||
# become: true | ||
- name: Upgrade pip3 to latest version | ||
ansible.builtin.pip: | ||
name: pip | ||
state: latest | ||
executable: pip3 | ||
become: true |
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.
This will overwrite the version installed with the RPM using ansible.builtin.yum
. Hence this cannot be "frozen" using the Pulp repos and could break other Python3 RPMs. Is this necessary? Or is the python3-pip
RPM installed with ansible.builtin.yum
good enough?
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.
There are a few other Python packages installed with pip3 and without version control:
- Install docker-py (supported by python 3)
- Install pyodbc with pip3
Can those be deployed in a python virtual environment for iRODS as opposed to in the default location affecting all Python code on the server?
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.
Nice work! Some small questions/comments: see inline.
…ue-of-robots into irods_and_davrods
…bots into irods_and_davrods
…ue-of-robots into irods_and_davrods
…bots into irods_and_davrods
…bots into irods_and_davrods
…ue-of-robots into irods_and_davrods
ansible.builtin.command: sudo python /var/lib/irods/scripts/setup_irods.py --json_configuration_file=/root/unattended_install.json | ||
when: database_tables.stdout_lines | default([]) | length > 0 and database_tables.stdout is search(".*No relations found.*") | ||
ansible.builtin.command: 'python /var/lib/irods/scripts/setup_irods.py --json_configuration_file=/{{ ir_service_account_home }}/unattended_install.json' | ||
# when: database_tables.stdout_lines | default([]) | length > 0 and database_tables.stdout is search(".*No relations found.*") |
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.
Is this as intended or was the when
commented out for testing purposes?
unixODBC-devel
,python3-devel
andgcc-c++
packages so that pyodbc can be built when installed with pipdatabase_connect.py
to use generic/internal irods configuration values (moved to files, as it should work with "native" settings and we will not need our ansible variables anymore - created upstream pull request)yum update
docker-py
to support the python 3, as the 2 was problematic for deploy (and of course, it is outdated ... )Tested on irods-test ✔️ , deployed on irods-catalogus ✔️
Irods iput, irm tested ✔️ , davrods access tested ✔️
Checked with lattest ansible-lint (6.4.0) ✔️