You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please search the existing issues for relevant feature requests, and use the reaction feature to add upvotes to preexisting requests.
Description
I'm missing some numerical functions, such as round() and sum(). If you can come up with more functions, please add those to my list! The more the merrier, at least when it comes to functions.
A map function would also be extremely useful.
Use Case(s)
I think there are plenty of use-cases for sum(). In my particular case right now, I have a number of predefined partitions and I want to create a disk that is slightly larger than the sum of all the partitions (and I'll let the / partition grow to consume any remaining space). Thus I need to sum over an array of numbers and round up.
On this topic: I find it pretty confusing that Terraform and Packer both use HCL but have different functions available to them. Are there any plans to consolidate the two?
The text was updated successfully, but these errors were encountered:
Community Note
Please search the existing issues for relevant feature requests, and use the reaction feature to add upvotes to preexisting requests.
Description
I'm missing some numerical functions, such as
round()
andsum()
. If you can come up with more functions, please add those to my list! The more the merrier, at least when it comes to functions.A map function would also be extremely useful.
Use Case(s)
I think there are plenty of use-cases for
sum()
. In my particular case right now, I have a number of predefined partitions and I want to create a disk that is slightly larger than the sum of all the partitions (and I'll let the/
partition grow to consume any remaining space). Thus I need to sum over an array of numbers and round up.Potential configuration
Potential References
Terraform already have a
sum()
function: https://developer.hashicorp.com/terraform/language/functions/sumOn this topic: I find it pretty confusing that Terraform and Packer both use HCL but have different functions available to them. Are there any plans to consolidate the two?
The text was updated successfully, but these errors were encountered: