Skip to content

Instantly share code, notes, and snippets.

@obviyus
Created August 25, 2020 07:12
Show Gist options
  • Save obviyus/cebee663216fa0c8666e467832a23fb7 to your computer and use it in GitHub Desktop.
Save obviyus/cebee663216fa0c8666e467832a23fb7 to your computer and use it in GitHub Desktop.
# Command provided:
# walnut convert dump.json --graft "/path/to/readout-stfb.yaml:readout-stfb.host-{{ it }}" --workflow-name grafted
name: grafted
defaults:
roc_ctp_emulator_enabled: "true"
stfb_enabled: "true"
roles:
- name: host-{{ it }}
for:
range: "{{ hosts }}"
var: it
vars:
readout_cfg_uri: '{{stfb_enabled == "true" ? "file:/home/flp/readout_stfb_emu.cfg" : "file:/home/flp/readout.cfg"}}'
constraints:
- attribute: machine_id
value: "{{ it }}"
roles:
- name: "readout"
task:
load: readout
- name: "stfb"
enabled: "{{ stfb_enabled }}"
connect:
- name: readout
type: pull
target: "{{ Parent().Path }}.readout:readout"
rateLogging: "1"
task:
load: stfbuilder-nooutput
- name: roc-ctp-emulators
enabled: "{{roc_ctp_emulator_enabled}}"
defaults:
roc_ctp_emulator_endpoints: '["#0"]'
roles:
- name: "endpoint-{{ endpoint_id }}"
for:
range: "{{roc_ctp_emulator_endpoints}}"
var: endpoint_id
roles:
- name: roc-ctp-emulator
task:
load: "roc-ctp-emulator"
trigger: "enter_RUNNING"
timeout: 10s
critical: false
- name: dump
roles:
- bind:
- name: from_producer-0_to_Dispatcher
type: push
transport: shmem
addressing: ipc
connect:
- name: from_internal-dpl-clock_to_producer-0
type: pull
transport: shmem
target: '{{ Parent().Path }}.internal-dpl-clock:from_internal-dpl-clock_to_producer-0'
defaults:
dpl_config: ""
dump_config_uri: ""
dump_monitoring_url: no-op://
user: flp
name: producer-0
task:
critical: false
load: producer-0
timeout: ""
trigger: ""
- bind:
- name: from_Dispatcher_to_QC-TASK-RUNNER-QcTask
type: push
transport: shmem
addressing: ipc
connect:
- name: from_internal-dpl-clock_to_Dispatcher
type: pull
transport: shmem
target: '{{ Parent().Path }}.internal-dpl-clock:from_internal-dpl-clock_to_Dispatcher'
- name: from_producer-0_to_Dispatcher
type: pull
transport: shmem
target: '{{ Parent().Path }}.producer-0:from_producer-0_to_Dispatcher'
defaults:
dpl_config: ""
dump_config_uri: ""
dump_monitoring_url: no-op://
user: flp
name: Dispatcher
task:
critical: false
load: Dispatcher
timeout: ""
trigger: ""
- bind:
- name: from_QC-TASK-RUNNER-QcTask_to_QC-CHECK-RUNNER-QcCheck
type: push
transport: shmem
addressing: ipc
connect:
- name: from_internal-dpl-clock_to_QC-TASK-RUNNER-QcTask
type: pull
transport: shmem
target: '{{ Parent().Path }}.internal-dpl-clock:from_internal-dpl-clock_to_QC-TASK-RUNNER-QcTask'
- name: from_Dispatcher_to_QC-TASK-RUNNER-QcTask
type: pull
transport: shmem
target: '{{ Parent().Path }}.Dispatcher:from_Dispatcher_to_QC-TASK-RUNNER-QcTask'
defaults:
dpl_config: ""
dump_config_uri: ""
dump_monitoring_url: no-op://
user: flp
name: QC-TASK-RUNNER-QcTask
task:
critical: false
load: QC-TASK-RUNNER-QcTask
timeout: ""
trigger: ""
- bind:
- name: from_QC-CHECK-RUNNER-QcCheck_to_printer
type: push
transport: shmem
addressing: ipc
connect:
- name: from_QC-TASK-RUNNER-QcTask_to_QC-CHECK-RUNNER-QcCheck
type: pull
transport: shmem
target: '{{ Parent().Path }}.QC-TASK-RUNNER-QcTask:from_QC-TASK-RUNNER-QcTask_to_QC-CHECK-RUNNER-QcCheck'
defaults:
dpl_config: ""
dump_config_uri: ""
dump_monitoring_url: no-op://
user: flp
name: QC-CHECK-RUNNER-QcCheck
task:
critical: false
load: QC-CHECK-RUNNER-QcCheck
timeout: ""
trigger: ""
- connect:
- name: from_QC-CHECK-RUNNER-QcCheck_to_printer
type: pull
transport: shmem
target: '{{ Parent().Path }}.QC-CHECK-RUNNER-QcCheck:from_QC-CHECK-RUNNER-QcCheck_to_printer'
defaults:
dpl_config: ""
dump_config_uri: ""
dump_monitoring_url: no-op://
user: flp
name: printer
task:
critical: false
load: printer
timeout: ""
trigger: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment