geofffranks / spruce

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

Add (( base64 )) operator #297

Closed daviddob closed 5 years ago

daviddob commented 5 years ago

Looking to add a (( base64 )) operator to spruce to assist with maintaining lots of configs that require base64 encoding. This allows for translating from plain-text for readability and ease of config management at merge time.

Basic usage looks like:

meta:
  plain: "Here is a string to be encoded by referencing meta.plain"

encoded: (( base64 meta.plain ))
encoded_direcctly: (( base64 "This is text that will be encoded directly" ))
geofffranks commented 5 years ago

Thanks! looks great