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

    Les Shiner

    08/18/2022, 7:13 PM
    does that answer your question?
  • y

    Yorokobi

    08/18/2022, 7:14 PM
    No, I should have been more clear. Is there a firewall blocking connections to that port despite your db listening? (
    <https://your-puppet-db-url:8081/>
    for example)
  • n

    natemccurdy

    08/18/2022, 7:15 PM
    Is
    test1001
    the certname of the node? Or its hostname?
  • y

    Yorokobi

    08/18/2022, 7:15 PM
    No, I should have been more clear. Is there a firewall blocking connections to that port despite your db listening? (
    <https://your-puppet-db-url:8081/>
    for example)
  • n

    natemccurdy

    08/18/2022, 7:15 PM
    Is
    test1001
    the certname of the node? Or its hostname?
  • s

    Slackbot

    08/18/2022, 7:15 PM
    This message was deleted.
    y
    • 2
    • 1
  • l

    Les Shiner

    08/18/2022, 7:15 PM
    @natemccurdy let me check
  • n

    natemccurdy

    08/18/2022, 7:16 PM
    Nodes are always referenced by their full certnames (which is their FQDN by default)
  • n

    natemccurdy

    08/18/2022, 7:16 PM
    Nodes are always referenced by their full certnames (which is their FQDN by default)
  • l

    Les Shiner

    08/18/2022, 7:16 PM
    @natemccurdy looks like for me they are one in the same
  • l

    Les Shiner

    08/18/2022, 7:17 PM
    facter -p on the agent shows FQDN/Hostname as the same, puppetserver ca list --all shows certname matching FQDN/Hostname
    ack 1
  • l

    Les Shiner

    08/18/2022, 7:17 PM
    lol is that bad!??
  • y

    Yorokobi

    08/18/2022, 7:17 PM
    ACKnowledged 😄
  • l

    Les Shiner

    08/18/2022, 7:17 PM
    hahahhaha
  • b

    B S

    08/18/2022, 8:15 PM
    https://github.com/puppetlabs/puppetserver-helm-chart/pull/129 ready to be reviewed 😄
  • s

    Slackbot

    08/18/2022, 8:32 PM
    This message was deleted.
    b
    j
    • 3
    • 5
  • s

    Slackbot

    08/18/2022, 10:49 PM
    This message was deleted.
    r
    y
    +2
    • 5
    • 13
  • s

    Slackbot

    08/18/2022, 10:53 PM
    This message was deleted.
    s
    y
    +2
    • 5
    • 5
  • j

    jms1

    08/19/2022, 11:38 AM
    i also had an idea to create files in a work on the target system containing the counts, then a script which ran on the target system that counted the total (similar to how
    concat
    works), however there was no way to pass that value back to the compiler so it could be used in the
    postgresql.conf
    file where it was needed
  • s

    Slackbot

    08/19/2022, 2:00 PM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    08/19/2022, 2:05 PM
    This message was deleted.
    c
    b
    • 3
    • 2
  • s

    Slackbot

    08/19/2022, 4:55 PM
    This message was deleted.
    v
    j
    +2
    • 5
    • 10
  • s

    Slackbot

    08/19/2022, 4:56 PM
    This message was deleted.
    n
    • 2
    • 1
  • s

    Slackbot

    08/19/2022, 5:06 PM
    This message was deleted.
    n
    l
    +2
    • 5
    • 51
  • v

    vchepkov

    08/19/2022, 5:08 PM
    puppet query on the server
    👍 2
  • l

    Les Shiner

    08/19/2022, 5:09 PM
    as always, thanks @vchepkov
  • n

    natemccurdy

    08/19/2022, 5:10 PM
    Then from the CLI on a Puppetserver, or really any host that has the PuppetDB tools installed and configured to talk to your PuppetDB instance, run something like:
    Copy code
    puppet query 'nodes {}'
  • n

    natemccurdy

    08/19/2022, 5:11 PM
    https://puppet.com/docs/puppetdb/7/api/query/tutorial-pql.html https://puppet.com/docs/puppetdb/7/api/query/v4/pql.html#executing-pql-queries-using-the-puppetdb-cli
  • n

    natemccurdy

    08/19/2022, 5:15 PM
    Note, you could also do that query with
    curl
    or any generic HTTP client, but the PDB client tools are much easier to use (for humans) in the long term: https://puppet.com/docs/puppetdb/7/api/query/tutorial-pql.html#querying-with-curl
  • v

    vchepkov

    08/19/2022, 6:47 PM
    https://github.com/vchepkov/puppet-bootstrap/blob/production/site/bootstrap/manifests/server.pp
1...137138139...428Latest