Skip to content

Commit 51d4df5

Browse files
committed
add fluxd stream support
1 parent 1555bf4 commit 51d4df5

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

roles/daemon/tasks/daemon-stream.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
- name: Stream daemon bootstrap
3+
ansible.builtin.uri:
4+
url: "{{ global.stream_chain_endpoint }}"
5+
method: POST
6+
dest: "/home/{{ global.user }}/{{daemon.bootstrap_file}}"
7+
mode: "0644"
8+
owner: "{{ global.user }}"
9+
group: "{{ global.user }}"

roles/daemon/tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,13 @@
9191
tags:
9292
- daemon-stop
9393
- never
94+
95+
- name: Stream Daemon Bootstrap
96+
ansible.builtin.include_tasks:
97+
file: daemon-stream.yml
98+
apply:
99+
tags:
100+
- daemon-stream
101+
tags:
102+
- daemon-stream
103+
- never

user.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
global:
33
user: # FluxNode User Account
44
reboot_if_required: # (default: false) Boolean: true - Reboot after OS Upgrade if required / false - Don't reboot after OS Upgrade
5+
stream_chain_endpoint: # String: endpoint to access daemon stream chain function 'http://<your node ip>:<your node apiport>/flux/streamchain'
56

67
user:
78
dufus: # This can be named anything.. just needs to match the user var on the host vars

0 commit comments

Comments
 (0)