Actions
User story #25970
openMake compilation resolved loops over Blocks/Methods in techniques possible
Status:
Pending technical review
Priority:
N/A
Assignee:
Category:
rudderc
Target version:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No
Description
Being able to loop/repeat a method|block call in a technique using parameterized local variables would be great.
The loops will be resolved at technique compilation, right before the starting from the leaf element when nested.
The proposed syntax is heavily inspired from the Ansible loops syntax https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html#using-loops.
- name: "Install a package" method: package_present params: name: "${plouf.name}" version: "${plouf.version}" foreach: # field to force a loop - name: "vim" version: "latest" - name: "htop" version: "2.3.4" - name: "${technique_id.extra_package}" version: "latest" foreach_name: "plouf" # loop iterator name, useful when loops are nested using blocks
Updated by Félix DALLIDET 12 days ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Félix DALLIDET 12 days ago
Work in progess here: https://github.com/Fdall/rudder/commit/6b28e546d010d9ae2f9b3250446d19daf39e66fd
Updated by Félix DALLIDET 12 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder/pull/6049
Actions