Skip to content

Conversation

@bruggerk
Copy link

@bruggerk bruggerk commented Apr 2, 2020

This sets the missing environmental vairable DRMAA_LIBRARY_PATH to pulsar_drmaa_library_path if this is sat in the playbook.

Otherwise pulsar cannot find the drmaa library when run through systemd

Also made the file template as an ansible variable so it can easier be modified without changing the ansible role

Copy link
Member

@natefoo natefoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bruggerk! I've made a couple of minor suggestions, and unfortunately this will need to be rebased or merged for some conflicting changes I made in the past few days. Sorry for not getting to this first.

Additionally, could you add a default for the new variable (I renamed it to make its purpose a bit more obvious, as well) in defaults/main.yml please?:

pulsar_systemd_service_template: "pulsar.service.j2"

- name: Create Pulsar systemd unit file
template:
src: "pulsar.service.j2"
src: "{{pulsar_systemd_file}}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
src: "{{pulsar_systemd_file}}"
src: "{{ pulsar_systemd_service_template }}"

Comment on lines +19 to +20
{% if pulsar_drmaa_library_path %}
Environment=DRMAA_LIBRARY_PATH={{pulsar_drmaa_library_path}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if pulsar_drmaa_library_path %}
Environment=DRMAA_LIBRARY_PATH={{pulsar_drmaa_library_path}}
{% if pulsar_drmaa_library_path is defined %}
Environment="DRMAA_LIBRARY_PATH={{ pulsar_drmaa_library_path }}"

Base automatically changed from master to main March 25, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants