Comments (6)
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.
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.
from puppet-network.
Right, facts are being generated with names with leading colons:
from puppet-network.
EDIT: Were you trying to use ruby symbols instead of strings?
This seems very likely.
from puppet-network.
Fixed in #278
from puppet-network.
Related Issues (20)
- spec fixture files contain illegal path character ':' on Windows HOT 1
- fix current rubocop issues
- Option to set DNS? HOT 4
- update version dependencies for boolean and filemappper HOT 2
- Are there any plans to support `netplan` with Ubuntu 18? HOT 2
- Get rid of type *property* defaults and use of Puppet::Property::Boolean HOT 6
- Question: persistent network rules HOT 1
- add puppet 6 support
- Double initialisation of "interfaces" provider causes exception (aka can't purge unmanaged config) HOT 1
- Unable to set correct netmask for IPv6 HOT 1
- Drop Puppet 4/5 support
- unable to set /32 route HOT 2
- Question: VLAN in RedHat
- Ubuntu 20.04 bonded interfaces don't work -- explicitly disables slave/member interfaces in manifests/bond/debian.pp
- How to enable multicast on multiple ethernets without using udp range in ubuntu?? HOT 1
- The 'options' property of the network_route type doesn't do anything
- Support for SLES
- Dual Stack Support HOT 3
- installation of ifenslave during configuring bond fails on Debian >=11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-network.