-
Notifications
You must be signed in to change notification settings - Fork 998
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 #38192 - Separate the Satellite Inventory Plugin from "host_registration_insights" parameter #10433
Conversation
@stejskalleos here is the pr |
727492a
to
c8d9e2d
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.
@chris1984 I don't see any changes in the host_init_config template. Currently, the parameter can be set in UI, but the registered host won't be affected.
@@ -13,6 +13,7 @@ class RegistrationCommandsController < V2::BaseController | |||
param :operatingsystem_id, :number, desc: N_("ID of the Operating System to register the host in. Operating system must have a `host_init_config` template assigned") | |||
param :smart_proxy_id, :number, desc: N_("ID of the Smart Proxy. This Proxy must have enabled both the 'Templates' and 'Registration' features") | |||
param :setup_insights, :bool, desc: N_("Set 'host_registration_insights' parameter for the host. If it is set to true, insights client will be installed and registered on Red Hat family operating systems") | |||
param :setup_insights_inventory, :bool, desc: N_("Set 'host_registration_insights_inventory' parameter for the host. If it is set to true, insights data about the host will be uploaded to console.redhat.com during report generation") |
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.
@Lennonka text review please
@@ -24,6 +24,7 @@ class RegistrationController < V2::BaseController | |||
param :operatingsystem_id, :number, desc: N_("ID of the Operating System to register the host in. Takes precedence over the `operatingsystem` parameter") | |||
param :operatingsystem, String, desc: N_("Title of the Operating System to register the host in") | |||
param :setup_insights, :bool, desc: N_("Set 'host_registration_insights' parameter for the host. If it is set to true, insights client will be installed and registered on Red Hat family operating systems") | |||
param :setup_insights_inventory, :bool, desc: N_("Set 'host_registration_insights_inventory' parameter for the host. If it is set to true, insights data about the host will be uploaded to console.redhat.com during report generation") |
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.
@Lennonka text review please
@stejskalleos do I need any logic in the |
So we are adding the whole logic just to be able to search the host? Can it be done in an easier way? |
Added some logic to create a fact in the [root@ip-10-0-168-159 ~]# ll /etc/rhsm/facts/
total 8
-rw-r--r--. 1 root root 278 Feb 11 15:07 insights-client.facts
-rw-r--r--. 1 root root 39 Feb 11 15:25 insights-inventory.facts
|
…istration_insights" parameter * Adding a new parameter called host_registration_inventory_plugin to allow the host to be included/excluded from inventory upload * Added some unit tests
c8d9e2d
to
1374f4d
Compare
After talking with Leos, this should live in the rh_cloud plugin and is also a feature. Closing this out |
What are the changes introduced in this pull request?
What are the testing steps for this pull request?