-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trusted server facts are not taken into account #181
Comments
@tuxmea we don't currently have this fully enabled in our setup, so I would need to see what the facts look like when they come out of puppetdb in order to add support for this (or figure out why it is not working now). Here is a small script - could you adjust the variables and run it, remove any sensitive or unneeded information, and post the result either here or in a gist? #!/usr/bin/env ruby
require 'octocatalog-diff'
node = 'some-host-name.example.net'
puppetdb_url = 'https://puppetdb.example.net:8081'
fact_obj = OctocatalogDiff::Facts.new(
node: node.strip,
backend: :puppetdb,
puppetdb_url: puppetdb_url,
)
facts = fact_obj.facts(node)
puts fact_obj.facts_to_yaml(node) |
@kpaulisse https://puppet.com/docs/puppet/latest/lang_facts_and_builtin_vars.html#serverfacts-variable |
@kpaulisse and the setting is deprecated and always true: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/defaults.rb#L654 what puppet apply does with server_facts seems to be this: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/application/apply.rb#L238 |
A possibility with the current code might be to do a Example:
I realize this isn't ideal, and that another command line option would be handy. @tuxmea and anyone else who may use this -- What would be the easiest way for you to have this data conveyed to octocatalog-diff? A JSON file? Something else? |
I thought that |
I think that |
Using the latest version from rubygems (1.5.2) with trusted_server_facts set (in master section of puppet.conf) results in lookup error on $::server_facts variable.
Is there a way to pass server_facts as an option to octocatalog-diff?
The text was updated successfully, but these errors were encountered: