geofffranks / spruce

A BOSH template merge tool
MIT License
426 stars 77 forks source link

New `(( shuffle ... ))` operator #335

Closed jhunt closed 3 years ago

jhunt commented 3 years ago

This PR introduces a new (( shuffle ... )) operator, for randomizing the ordering of managed lists. This is not a great idea for workflows that regularly re-evaluate the input YAML, but for other tools that use Spruce in purely generative applications, it works great!

We are planning to use this to randomize AZ placement of single-node service instances.