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

Configure "galaxy" user and group in the HTCondor cluster #992

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
# Galaxy user and group
galaxy_user:
name: galaxy
create_home: true
home: /opt/galaxy
uid: 999
shell: /bin/bash
galaxy_group:
name: galaxy
gid: 999

# Certbot defaults
certbot_auto_renew_hour: "{{ 23 |random(seed=inventory_hostname) }}"
certbot_auto_renew_minute: "{{ 59 |random(seed=inventory_hostname) }}"
Expand Down Expand Up @@ -63,11 +74,6 @@ telegraf_plugins_default:
- plugin: netstat
- plugin: chrony


# ???
galaxy_uid: 999
galaxy_gid: 999

# Automated yum updates
yum_cron:
base:
Expand Down
15 changes: 15 additions & 0 deletions group_vars/htcondor/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,18 @@ condor_extra: |
JOB_START_DELAY = {{ htcondor_job_start_delay }}
CLAIM_WORKLIFE = {{ htcondor_claim_worklife }}
NEGOTIATOR_POST_JOB_RANK = {{ htcondor_negotiator_post_job_rank }}

# Configuration of `usegalaxy_eu.handy.os_setup`.
enable_create_user: true
enable_remap_user: true
handy_users:
- user_name: "{{ galaxy_user.name }}"
user_uid: "{{ galaxy_user.uid }}"
user_group: "{{ galaxy_group.name }}"
user_comment: "Galaxy useraccount"
user_create_home: "{{ galaxy_user.create_home }}"
user_home: "{{ galaxy_user.home }}"
user_shell: "{{ galaxy_user.shell }}"
handy_groups:
- group_name: "{{ galaxy_group.name }}"
group_gid: "{{ galaxy_group.gid }}"
9 changes: 8 additions & 1 deletion htcondor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Systemd-nspawn container aimed at running a second HTCondor installation.
- name: Create a systemd-nspawn container aimed at running a second HTCondor installation.
hosts: htcondor-secondary-submit-host
handlers:
- name: Reload sshd # (in the container)
Expand Down Expand Up @@ -203,6 +203,12 @@
name: condor
state: reloaded
pre_tasks:
- name: Ensure findutils is installed.
become: true
ansible.builtin.package:
name: findutils
state: installed

- name: Ensure the HTCondor configuration directory exists.
become: true
ansible.builtin.file:
Expand All @@ -226,4 +232,5 @@
ansible.builtin.service_facts:
register: service_facts
roles:
- usegalaxy_eu.handy.os_setup
- grycap.htcondor
2 changes: 1 addition & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ collections:
source: https://galaxy.ansible.com
type: galaxy
- name: usegalaxy_eu.handy
version: 3.0.0
version: 3.0.2
source: https://galaxy.ansible.com
- name: ansible.windows
version: 1.14.0
Expand Down
Loading