Skip to content

Hiera can't interpolate facts #777

@russellshackleford

Description

@russellshackleford

This is a duplicate of #427 which was closed 2 years ago. There are valid use cases for interpolating facter values in hiera to keep a separation of code and data while using the real hiera data as that can test not just code, but data.

My particular use is:

# This assumes the DHCP server is also the PXE server
dhcpd::pxeserver: "%{::networking.ip}"

The fact that right now it is just an assumption is exactly why it is in hiera as opposed to just doing a fact lookup in the manifest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions