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

Fix permission denied error when running HTCondor container post tasks #1061

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions htcondor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
# Uses /etc/sudoers. Ideally this would be solved using what is requested
# in this issue https://github.com/systemd/systemd/issues/10997, but the
# issue is still open.
become: true
community.general.sudoers:
name: htcondor-nspawn
user: "{{ galaxy_user.name }}"
Expand All @@ -194,6 +195,7 @@
- "{{ nspawn_condor_submit_command }} *"

- name: Make the environment variables available to the Galaxy handlers also available to the container.
become: true
ansible.builtin.copy:
content: "{{ nspawn_galaxy_environment_vars }}"
dest: "{{ (nspawn_image.stdout, nspawn_galaxy_environment_file | regex_replace('(\\/*)?(.*)', '\\2')) | path_join }}"
Expand Down