Coder Social home page Coder Social logo

facter3 results in 502 on checkin about sal HOT 3 CLOSED

arubdesu avatar arubdesu commented on August 24, 2024
facter3 results in 502 on checkin

from sal.

Comments (3)

grahamgilbert avatar grahamgilbert commented on August 24, 2024

So this is due to the structured facts. Currently they're stored as a flat table with just fact name and fact data fields. The question is, do we try to replicate this (hard, but not impossible), or do we flatten the structure? There is --show-legacy which will get all the 'old' facts out, but this is a sticking plaster so we might as well fix it now.

With flattening, I was thinking something like:

$ sudo /opt/puppetlabs/bin/facter --puppet --yaml system_uptime
system_uptime:
  days: 0
  hours: 0
  seconds: 1242
  uptime: 0:20 hours

Would be stored as:

system_uptime->days = 0
system_uptime->hours = 0
system_uptime->seconds = 1242
system_uptime->uptime = 0:20 hours

That delimiter was chosen arbitrarily, but it needs to be something odd enough to not likely be in a fact name. Flattening would make it easier to be backwards compatible with 3.8, since we can use the same table and just handle this in python. If we do something else, we'd need to re-wire the tables (which also makes all the existing plugins that use that info out of date).

from sal.

arubdesu avatar arubdesu commented on August 24, 2024

It was odd to learn I couldn't classify based on structured facts in the PE console, so all I have in the way of custom facts right now are flat, anyway. Especially with the rise/integration of osquery I don't think it's worth reinventing the wheel over, table-wise.
As for a delimiter, how about the hash rocket? =>

from sal.

grahamgilbert avatar grahamgilbert commented on August 24, 2024

This is fixed in the client side scripts

from sal.

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.