https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • n

    nigel

    01/09/2023, 10:34 AM
    @nigel has left the channel
    😮 1
  • v

    vchepkov

    01/09/2023, 1:38 PM
    Wow
  • c

    CVQuesty

    01/09/2023, 1:40 PM
    mmhmm
  • s

    Slackbot

    01/09/2023, 1:41 PM
    This message was deleted.
    sadluke 1
    nigel 2
    n
    • 2
    • 1
  • c

    csharpsteen

    01/09/2023, 1:52 PM
    API requests are handled concurrently. As of Puppet Server 6.7.0, a mutex is traded around disk updates to serialize edits to shared state like the CRL, serial, and inventory files: https://tickets.puppetlabs.com/browse/SERVER-115
  • s

    Slackbot

    01/09/2023, 1:55 PM
    This message was deleted.
    c
    n
    +2
    • 5
    • 65
  • n

    n3snah

    01/09/2023, 1:56 PM
    Is there any official documentation from Puppet about splitting PuppetDB onto separate SCSI controllers for performance benefits? Typically DBs would be on at least 1 separate SCSI controller to the OS as a standard convention. I am asking because I can't seem to find one but believe that there should be something and that I shouldn't be alone in asking this question.
  • b

    bastelfreak

    01/09/2023, 2:38 PM
    why do you think this is related to puppetdb?
  • b

    bastelfreak

    01/09/2023, 2:42 PM
    check
    /var/log/puppetlabs/*/*.log
    for errors while opening the console
  • a

    Alonso Muñoz

    01/09/2023, 3:15 PM
    hello, a query, when creating a smart-proxy to connect with foreman it gives me the following error "ERROR: Unrecognised option '--foreman-proxy-content-puppet' does anyone know how to fix it?
  • n

    nigel

    01/09/2023, 3:15 PM
    woops - i was cleaning out old channels 🙂
  • b

    bastelfreak

    01/09/2023, 3:15 PM
    welcome back!
  • n

    nigel

    01/09/2023, 3:15 PM
    took out one more than I meant to 🙂
  • d

    David Sandilands

    01/09/2023, 3:26 PM
    reappear
    lol 1
  • a

    April Murphy

    01/09/2023, 3:47 PM
    @April Murphy has left the channel
  • j

    Joel Wilson

    01/09/2023, 9:51 PM
    Is there a way with PQL to get a list of nodes where a specific resource was failing?
  • j

    Joel Wilson

    01/09/2023, 9:51 PM
    Or do you have to pull back all the failing reports and do some JQ magick?
  • j

    Joel Wilson

    01/09/2023, 9:52 PM
    I think the only DB that has that info is reports, and it's buried in resource_events.data
  • n

    natemccurdy

    01/09/2023, 9:52 PM
    The
    events
    API should get you most of the way: https://www.puppet.com/docs/puppetdb/7/api/query/v4/events.html#query-fields
  • j

    Joel Wilson

    01/09/2023, 9:56 PM
    I think that is very helpful. Thanks.
  • n

    natemccurdy

    01/09/2023, 9:57 PM
    Copy code
    events[certname] { status = "failed" and resource_type="Foo" and resource_title="bar" }
    You'll want some way to time box that query... I'm sure there's a way to get that in there... haven't looked too deeply myself.
  • b

    bastelfreak

    01/09/2023, 9:57 PM
    https://voxpupuli.org/docs/pql_queries/#get-all-nodes-where-one-specific-resource-changed
    👌 1
  • n

    natemccurdy

    01/09/2023, 9:58 PM
    Ah right,
    latest_report? = true
    to search through only the latest reports.
  • j

    Joel Wilson

    01/09/2023, 9:58 PM
    I got it.
  • b

    bastelfreak

    01/09/2023, 9:58 PM
    if you write a new awesone query, please send us a PR :)
  • b

    bastelfreak

    01/09/2023, 9:59 PM
    https://github.com/voxpupuli/voxpupuli.github.io/blob/master/_docs/pql_queries.md
  • b

    bastelfreak

    01/09/2023, 9:59 PM
    https://github.com/voxpupuli/voxpupuli.github.io/blob/master/_docs/pql_queries.md
  • j

    Joel Wilson

    01/09/2023, 9:59 PM
    events [count(certname)] { resource_type = "Package" and resource_title = "<packagename>" and latest_report? = true and status = "failure" }
    count?
  • n

    natemccurdy

    01/09/2023, 10:01 PM
    events[count()] {<the query>}
    if you want just a count of results. More examples are scattered throughout https://www.puppet.com/docs/puppetdb/7/api/query/v4/pql.html#count
  • j

    Joel Wilson

    01/09/2023, 10:02 PM
    I mean does that count as "awesome". Heh.
1...262263264...428Latest