Giter Club home page Giter Club logo

Comments (6)

sboyd-m avatar sboyd-m commented on June 28, 2024

We use this fact internally as hiera like so:

nat_gateway::public_interface: "%{::network_primary_interface}"

I confirmed by viewing puppet logs that this fact stopped working exactly when this commit happened, and I also verified the hashes of the file before and after based on the puppet logs:
content changed '{md5}9164ece59c43998af1efb392c0023ff6' to '{md5}6d9bca1d4813ea164f4a46b654fa0f66'

Curiously, I patched our hiera to use the networking.primary fact, and now the module fact shows up, albeit under a different name:

root@box:~$ facter -j -p ':network_primary_interface'
{
  ":network_primary_interface": "eth0"
}

root@box:~$ facter -j -p 'network_primary_interface'
{
  "network_primary_interface": ""
}

I do not know what the root cause issue is.

from puppet-network.

sboyd-m avatar sboyd-m commented on June 28, 2024

Ahh, I didn't notice at first, but that commit added colons to the beginnings of all the facts that used to exist...

Why? Why break things?

EDIT: Were you trying to use ruby symbols instead of strings?

from puppet-network.

kenyon avatar kenyon commented on June 28, 2024

61b10ea was in #268.

from puppet-network.

yakatz avatar yakatz commented on June 28, 2024

Right, facts are being generated with names with leading colons:

image

from puppet-network.

alexjfisher avatar alexjfisher commented on June 28, 2024

EDIT: Were you trying to use ruby symbols instead of strings?

This seems very likely.

from puppet-network.

alexjfisher avatar alexjfisher commented on June 28, 2024

Fixed in #278

from puppet-network.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.