Skip to content
Open
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
9 changes: 9 additions & 0 deletions roles/daemon/tasks/daemon-stream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Stream daemon bootstrap
ansible.builtin.uri:
url: "{{ global.stream_chain_endpoint }}"
method: POST
dest: "/home/{{ global.user }}/{{daemon.bootstrap_file}}"
mode: "0644"
owner: "{{ global.user }}"
group: "{{ global.user }}"
10 changes: 10 additions & 0 deletions roles/daemon/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,13 @@
tags:
- daemon-stop
- never

- name: Stream Daemon Bootstrap
ansible.builtin.include_tasks:
file: daemon-stream.yml
apply:
tags:
- daemon-stream
tags:
- daemon-stream
- never
1 change: 1 addition & 0 deletions user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
global:
user: # FluxNode User Account
reboot_if_required: # (default: false) Boolean: true - Reboot after OS Upgrade if required / false - Don't reboot after OS Upgrade
stream_chain_endpoint: # String: endpoint to access daemon stream chain function 'http://<your node ip>:<your node apiport>/flux/streamchain'

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