Use Case
I have specific network tuning for my 25G and 40G network cards. Currently the link speed is a simple integer. However in my hiera I can't say things like "if link speed greater than 10_000 M, load this yaml".
Describe the solution you would like
Some sort of hiera syntax that permits numeric comparisons of fact values against a defined constant.
Describe alternatives you've considered
A puppet wrapper class that imports different tuning based on comparisons within the puppet dsl.
Additional context
This is probably also handy for systems with a large number of hard drives.
I tend to think of hiera as "if fact is X do Y" and encode things in yaml to make my layout more obvious to my ansible counterparts or new staff members.
Use Case
I have specific network tuning for my 25G and 40G network cards. Currently the link speed is a simple integer. However in my hiera I can't say things like "if link speed greater than 10_000 M, load this yaml".
Describe the solution you would like
Some sort of hiera syntax that permits numeric comparisons of fact values against a defined constant.
Describe alternatives you've considered
A puppet wrapper class that imports different tuning based on comparisons within the puppet dsl.
Additional context
This is probably also handy for systems with a large number of hard drives.
I tend to think of hiera as "if fact is X do Y" and encode things in yaml to make my layout more obvious to my ansible counterparts or new staff members.