-
Notifications
You must be signed in to change notification settings - Fork 22
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 role/playbook for installation of compatibility layer #12
Conversation
Create a list of sets Co-authored-by: Bob Dröge <b.e.droge@rug.nl>
allow for multiple package sets Co-authored-by: Bob Dröge <b.e.droge@rug.nl>
Add package set install
I think this is ready to be reviewed now: I've added documentation and CI (Ansible Lint), and improved the playbook/role. One thing it doesn't do (yet?), is installing the Prefix itself. I'm not sure if the playbook should do this, but we can always add it later. @peterstol / @boegel: could you do a review? |
I tested the playbook inside a VM with a clean Prefix installation (done with the Singularity container), by the way. |
Thanks for the review @victorusu. Just made some changes based on your feedback. |
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.
lgtm
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.
Just for completion the publish transaction and abort transaction tasks should check that a transaction has been started.
Co-authored-by: Carles Fenoy <cfenoy@users.noreply.github.com>
Co-authored-by: Carles Fenoy <cfenoy@users.noreply.github.com>
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.
The ansible scripts look good!
Tested on a local prefix with ansible-playbook -c local -i localhost, install.yml
after setting cvmfs stuff to false and disabling Become =Yes, which is not required if you run as the same user as the prefix installation.
All TASKS Passed. A minor warning on gathering facts may need fixing later.
The result was a gentoo prefix installation with the EESSI overlay and lmod and archspec packages installed with the 2020.08 set.
PLAY [Install compatibility layer] **************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************
[WARNING]: error loading fact - please check content
ok: [localhost]
TASK [compatibility-layer : Check if a Prefix installation is found at the specified location] **************************************************
ok: [localhost]
TASK [compatibility-layer : Fail if the given Prefix path does not have emerge] *****************************************************************
skipping: [localhost]
TASK [compatibility-layer : Start transaction] **************************************************************************************************
skipping: [localhost]
TASK [compatibility-layer : include_tasks] ******************************************************************************************************
included: /scistor/gt/psl500/EESSI/compatibility-layer/playbooks/roles/compatibility-layer/tasks/add_overlay.yml for localhost
TASK [compatibility-layer : Install equery command (dependency for the portage module)] *********************************************************
changed: [localhost]
TASK [compatibility-layer : Create repos directory] *********************************************************************************************
changed: [localhost]
TASK [compatibility-layer : Install eselect-repository] *****************************************************************************************
changed: [localhost]
TASK [compatibility-layer : Install git] ********************************************************************************************************
changed: [localhost]
TASK [compatibility-layer : Check which repositories have been installed] ***********************************************************************
ok: [localhost]
TASK [compatibility-layer : Add custom overlay configuration] ***********************************************************************************
changed: [localhost]
TASK [compatibility-layer : Sync the repositories] **********************************************************************************************
ok: [localhost]
TASK [compatibility-layer : Make sets directory] ************************************************************************************************
changed: [localhost]
TASK [compatibility-layer : Make symlink to all package set files in the custom overlay] ********************************************************
changed: [localhost] => (item=2020.08)
TASK [compatibility-layer : include_tasks] ******************************************************************************************************
included: /scistor/gt/psl500/EESSI/compatibility-layer/playbooks/roles/compatibility-layer/tasks/install_packages.yml for localhost
TASK [compatibility-layer : Install package set] ************************************************************************************************
changed: [localhost] => (item=2020.08)
TASK [compatibility-layer : Install additional packages] ****************************************************************************************
ok: [localhost] => (item=None)
TASK [compatibility-layer : Publish transaction] ************************************************************************************************
skipping: [localhost]
PLAY RECAP **************************************************************************************************************************************
localhost : ok=15 changed=8 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0
Patched luaposix
No description provided.