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

    bastelfreak

    06/10/2022, 1:22 PM
    it's the latest PE 2019/PE2021, so almost modern
  • a

    Alex Fisher

    06/10/2022, 1:23 PM
    I think that means you can use
    --certless
  • a

    Alex Fisher

    06/10/2022, 1:24 PM
    ie this stuff https://github.com/voxpupuli/puppet-catalog-diff/pull/3
  • a

    Alex Fisher

    06/10/2022, 1:24 PM
    ie this stuff https://github.com/voxpupuli/puppet-catalog-diff/pull/3
  • b

    bastelfreak

    06/10/2022, 1:24 PM
    I already use that for the new catalog
  • b

    bastelfreak

    06/10/2022, 1:25 PM
    but does that make a difference?
  • a

    Alex Fisher

    06/10/2022, 1:25 PM
    ah. So you've read https://dev.to/camptocamp-ops/diffing-puppet-environments-1fno
  • a

    Alex Fisher

    06/10/2022, 1:25 PM
    "Trusted Facts and Certless Requests" section
  • b

    bastelfreak

    06/10/2022, 1:28 PM
    but that doesn't help? The server doesn't have the trusted facts. we could patch catalog-diff to provide those to the server
  • a

    Alex Fisher

    06/10/2022, 1:28 PM
    you pass them in the API call
  • a

    Alex Fisher

    06/10/2022, 1:28 PM
    or catalog diff does
  • b

    bastelfreak

    06/10/2022, 1:29 PM
    I don't think it does. catalog-diff doesn't have them
  • a

    Alex Fisher

    06/10/2022, 1:29 PM
    pretty sure that's how it works. It gets them from puppetdb
  • b

    bastelfreak

    06/10/2022, 1:29 PM
    https://github.com/voxpupuli/puppet-catalog-diff/blob/master/lib/puppet/catalog-diff/compilecatalog.rb#L86-L96 we do not pass additional facts/trusted facts here
  • b

    bastelfreak

    06/10/2022, 1:29 PM
    https://github.com/voxpupuli/puppet-catalog-diff/blob/master/lib/puppet/catalog-diff/compilecatalog.rb#L86-L96 we do not pass additional facts/trusted facts here
  • a

    Alex Fisher

    06/10/2022, 1:30 PM
    or maybe not. Let me reread!
  • b

    bastelfreak

    06/10/2022, 1:30 PM
    😄
  • b

    bastelfreak

    06/10/2022, 1:30 PM
    are trusted facts stored in puppetdb? I don't think so
  • a

    Alex Fisher

    06/10/2022, 1:31 PM
    Puppet will attempt to fetch the trusted facts for the node from PuppetDB or from the provided facts hash.
  • a

    Alex Fisher

    06/10/2022, 1:31 PM
    https://puppet.com/docs/puppet/7/server/puppet-api/v4/catalog.html#trusted-facts
  • b

    bastelfreak

    06/10/2022, 1:32 PM
    brb call, back in a few minutes
  • a

    Alex Fisher

    06/10/2022, 1:41 PM
    @ewoud gist updated. That's definitely not want we want! 😉
  • a

    Alex Fisher

    06/10/2022, 1:43 PM
    --graph
    to generate the dot files btw.
  • a

    Alex Fisher

    06/10/2022, 1:43 PM
    Then
    dot -Tpng .puppetlabs/opt/puppet/cache/state/graphs/expanded_relationships.dot -o ewoud.png
  • a

    Alex Fisher

    06/10/2022, 1:44 PM
    (and did you know a gist is actually just a git repo and that's how you can commit images to it?)
  • b

    bastelfreak

    06/10/2022, 1:44 PM
    on linux I use graphviz, that can directly open the dot files. I think it renders them onthefly to svg
  • b

    bastelfreak

    06/10/2022, 1:45 PM
    so, back to my facts
  • b

    bastelfreak

    06/10/2022, 1:45 PM
    I dump facts from one puppetdb and submit them to the new PE 2021 environment. they contain the trusted subhash
  • b

    bastelfreak

    06/10/2022, 1:46 PM
    I there could be trusted facts in my new setup
  • b

    bastelfreak

    06/10/2022, 1:46 PM
    let me check how I submit the facts
1...676869...648Latest