-
Notifications
You must be signed in to change notification settings - Fork 991
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
Fixes #37877 - Make the config file compatible with 0.2.z and 0.4.z #10340
Conversation
d0bbd59
to
e093bce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack from the functional side, tested together with theforeman/katello-pull-transport-migrate#8
e093bce
to
b1cfc1c
Compare
if which yggdrasil >/dev/null 2>/dev/null; then | ||
yggdrasil status | ||
else | ||
systemctl status $YGGDRASIL_SERVICE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the registration process will stop on this line as the systemctl status will occupy the shell, I think something like systemctl status $YGGDRASIL_SERVICE --no-pager
should do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could just not do it at all? I'd say it is just eyecandy, we still check if the service is active a couple of lines lower
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine with me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped
The service name changed between the package we shipped and official 0.4.z builds, these changes account for this discrepancy. Config file changes: - broker is an array of mqtt servers used by 0.2 - server is an array of mqtt servers used by 0.4 - data-host needs to be set to an empty string to override certain compile-time defaults set in RHEL and CentOS Stream - path-prefix needs to be set to the value we expect to override certain compile-time defaults set in RHEL and CentOS Stream broker and server can be set at both once, each will be honored by their respective versions data-host and path-prefix can be set both at once on our build of yggdrasil they'll just duplicate the defaults, on RHEL/CentOS Stream they'll act as overrides
b1cfc1c
to
ca9f6e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @adamruzicka and @pondrejk !
broker
is an array of mqtt servers used by 0.2server
is an array of mqtt servers used by 0.4data-host
needs to be set to an empty string to override certain compile-time defaults set in RHEL and CentOS Streamprefix
needs to be set to the value we expect to override certain compile-time defaults set in RHEL and CentOS Streambroker
andserver
can be set at both once, each will be honored by their respective versionsdata-host
andprefix
can be set both at once on our build of yggdrasil they'll just duplicate the defaults, on RHEL/CentOS Stream they'll act as overridesTODOs: