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

Move pulsar recipe to this repo #191

Merged
merged 2 commits into from
Sep 23, 2024
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
30 changes: 30 additions & 0 deletions artifacts/lrms/pulsar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
- hosts: localhost
connection: local
handlers:
- name: Restart Pulsar
ansible.builtin.service:
name: pulsar.service
state: restarted
enabled: true

tasks:
- name: Check whether Pulsar is installed
ansible.builtin.stat:
path: /opt/pulsar/config/app.yml
register: st

- name: Fail if the file does not exist
ansible.builtin.fail:
msg: "It is a prerequisite to use the VGCN virtual machine image: https://github.com/usegalaxy-eu/vgcn"
when: not st.stat.exists

- name: Configure message queue in Pulsar
ansible.builtin.lineinfile:
path: /opt/pulsar/config/app.yml
regexp: '^message_queue_url:'
line: 'message_queue_url: pyamqp://{{ pulsar_user }}:{{ pulsar_password }}@mq.galaxyproject.eu:5671//pulsar/{{ pulsar_user }}?ssl=1'
owner: root
group: root
mode: '0644'
notify: Restart Pulsar
2 changes: 1 addition & 1 deletion custom_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ node_types:
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/sebastian-luna-valero/tosca/main/artifacts/pulsar.yml
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/pulsar.yml
inputs:
pulsar_user: { get_property: [ SELF, mq_user ] }
pulsar_password: { get_property: [ SELF, mq_password ] }
Expand Down
Loading