Skip to content

[Feature request]: hiera fact value greater than/equal to #416

Description

@jcpunk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions