-
Notifications
You must be signed in to change notification settings - Fork 115
Add foremanctl commands for IoP #5096
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,7 @@ For more information, see the following resources: | |
| .Procedure | ||
| * Increase the logging levels to `DEBUG`: | ||
| + | ||
| ifndef::containerized[] | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # {foreman-installer} \ | ||
|
|
@@ -49,6 +50,36 @@ For more information, see the following resources: | |
| --iop-core-engine-log-level-insights-messaging DEBUG \ | ||
| --iop-core-engine-log-level-root DEBUG | ||
| ---- | ||
| endif::[] | ||
| ifdef::containerized[] | ||
| .. Create a `config.yml` file that includes the following logging levels together with the required IOP core engine configuration: | ||
| + | ||
| [source,yaml,options="nowrap",subs="+quotes,attributes"] | ||
| ---- | ||
| loggers: | ||
| insights.core.dr: | ||
| level: "DEBUG" | ||
| insights_messaging: | ||
| level: "DEBUG" | ||
| insights_kafka_service: | ||
| level: "DEBUG" | ||
| "": | ||
| level: "DEBUG" | ||
| ---- | ||
| .. Replace the `iop-core-engine-config-yml` Podman secret: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't love this as a procedure that we are telling users to do. @vkrizan Do you think we should add this as a logging option in |
||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # podman secret rm iop-core-engine-config-yml | ||
| # podman secret create iop-core-engine-config-yml config.yml | ||
| ---- | ||
| .. Restart the IOP core engine service: | ||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # systemctl restart iop-core-engine | ||
| ---- | ||
| endif::[] | ||
|
|
||
| .Verification | ||
| * Check the logging levels of {insights-iop}: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,15 @@ This command creates the `/etc/foreman/registry-auth.json` file. | |
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # {foreman-installer} --iop-ensure present | ||
| ifndef::containerized[# {foreman-installer} --iop-ensure present] | ||
| ifdef::containerized[# {foremanctl} deploy --add-feature iop] | ||
| ---- | ||
| ** If {insights-iop} was not previously enabled: | ||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # {foreman-installer} --enable-iop | ||
| ifndef::containerized[# {foreman-installer} --enable-iop] | ||
| ifdef::containerized[# {foremanctl} deploy --add-feature iop] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if it's the same like line 24, then maybe a different structure is better because users do not need to know if they used IoP before. |
||
| ---- | ||
| . On your hosts, re-register the Insights client: | ||
| + | ||
|
|
||
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.
I would either say "IoP" or use the attribute https://github.com/theforeman/foreman-documentation/blob/master/guides/common/attributes-base.adoc#L174
same applies to line 76.