geofffranks / spruce

A BOSH template merge tool
MIT License
433 stars 78 forks source link

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

Closed jhunt closed 4 years ago

jhunt commented 4 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.