Skip to content
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

Enable compile-time default facts file #301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

subpop
Copy link
Collaborator

@subpop subpop commented Feb 7, 2025

By way of a new build option, default_facts_file, enable a compile-time default value for the facts-file flag. The RPMs built out of dist/srpm are updated to build with this value set to /var/lib/yggdrasil/canonical-facts.json.

To verify this behavior, make sure that the line defining facts-file is removed or commented out from your config file (/etc/yggdrasil/config.toml). Running yggdrasil.service from this branch on a fully registered system should still find the file /var/lib/yggdrasil/canonical-facts.json.

If you connect your yggdrasil to a local broker, you can subscribe to its topics and confirm that facts are still published in the "connection-status" message. Otherwise, connecting your yggdrasil to connect.cloud.stage.redhat.com means you'll have to either scour Kibana logs for your messages being received by cloud-connector or assume that facts got there.

The local yggdrasil logs should not report any errors about a missing facts file.

Card ID: CCT-1164

By way of a new build option, default_facts_file, enable a compile-time default value for the facts-file flag.

The RPMs built out of `dist/srpm` are updated to build with this value set to /var/lib/yggdrasil/canonical-facts.json.
@subpop subpop force-pushed the compile-time-default-facts-file branch from 521e103 to 8e0646a Compare February 7, 2025 17:53
@jirihnidek jirihnidek self-assigned this Feb 11, 2025
Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rehana-raj
Copy link

Tagging @Archana-PandeyM for QE review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants