Giter Site home page Giter Site logo

csv export about puppetboard HOT 7 OPEN

voxpupuli avatar voxpupuli commented on July 16, 2024
csv export

from puppetboard.

Comments (7)

daenney avatar daenney commented on July 16, 2024

You're going to have to be a bit more specific here. I never used the CSV export so I have no idea what data it exported and how that was structured.

from puppetboard.

KlavsKlavsen avatar KlavsKlavsen commented on July 16, 2024

the idea was to merely get the resultset in a csv export format.
f.ex. a fact search on physicalprocessorcount - which shows a list of nodenames and a number, would simply have a ilnk to "csv export", which would return a list with:
name, physicalprocessorcount
node1.example.net,2
node2.example.net,1

from puppetboard.

dominiquearpin avatar dominiquearpin commented on July 16, 2024

Hi,
i'm maybe little late, but here a simple way to do it:
#!/usr/bin/python
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from pypuppetdb import connect
db = connect()

facts = db.facts()
for fact in facts:
print fact.node + ';', fact.name + ';', fact.value

And you can parse it to create your final csv file.

regards

from puppetboard.

larsnaesbye avatar larsnaesbye commented on July 16, 2024

Are there any plans to add this as a feature? I too could use it in my organisation.

from puppetboard.

larsnaesbye avatar larsnaesbye commented on July 16, 2024

@KlavsKlavsen Did you find a usable workaround that we can add as pull request, or should we work on it?

from puppetboard.

KlavsKlavsen avatar KlavsKlavsen commented on July 16, 2024

@larsnaesbye I'm sorry I really have forgotten how I resolved this.. I think I just wrote some python - using pypuppetdb plugin - which can easily get a list hosts who has a certain fact and the facts contents. Thats what I'd do today anyways :)

from puppetboard.

larsnaesbye avatar larsnaesbye commented on July 16, 2024

@KlavsKlavsen : okay, that sounds reasonable. I just think it would be better if we implemented a simple button/link that dumped the table to CSV or similar.

from puppetboard.

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.