@Andrew Griffin are you trying to do something with resources like
steps:
- resources:
# This resource is type 'package' and title 'nginx'
- package: nginx
parameters:
ensure: latest
# This resource is type 'service' and title 'nginx'
- type: service
title: nginx
parameters:
ensure: running
targets:
-
web1.example.com
-
web2.example.com
-
web3.example.com
description: "Set up nginx on the webservers"
(This is example from
https://www.puppet.com/docs/bolt/latest/writing_yaml_plans.html#resources-step
)
In which case you can just pass the title as an array variable as far as im aware and it will iterate over like it does in the Puppet language.