-
Notifications
You must be signed in to change notification settings - Fork 95
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
Update client repository to satellite-6-client-2 #3247
Update client repository to satellite-6-client-2 #3247
Conversation
The PR preview for a5a2375 is available at theforeman-foreman-documentation-preview-pr-3247.surge.sh The following output files are affected by this PR: |
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.
Please revert this change. Instead, you can either adjust the attribute in guides/common/modules/snip_prerequisite-project-client-repository-enabled.adoc
, or, if necessary, change the attribute value in https://github.com/theforeman/foreman-documentation/blob/master/guides/common/attributes-satellite.adoc#L164.
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.
@AkshayGadhaveRH Maybe reverting is not an option if you explicitely only want version 2 in this procedure. But I still wonder if it makes sense to reference different client versions in different procedures.
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.
sorry for the confusing comments!
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.
@AkshayGadhaveRH Maybe reverting is not an option if you explicitely only want version 2 in this procedure. But I still wonder if it makes sense to reference different client versions in different procedures.
7e39124
to
9c1ff80
Compare
Aren't we supposed to support both repos at this time? So instead of replacing it, we should add it? |
Good question. I think we want users to use the latest version. I think there's one edge case: if you have n-1 Capsules then they may run Puppetserver 7. You're only supposed to use agents that are at most as new as the server, so having Puppet 8 on clients with a Capsule 6.15 should be unsupported. Not all Capsules will run Puppetserver, but out of simplicity I'd say that you need to have upgraded the server (Satellite or Capsule, depending on how the host is configured) to 6.16 to use It's possible to have a mixed environment where some hosts are connected to Satellite 6.16 using Should that be covered in the upgrading guide as well? Probably also a release note, though I know we don't capture Satellite release notes here. |
From our d/s perspective, we should not try to document every possible scenario. We should stick to the most user-friendly (and, I suppose, least error-prone) solutions. Without understanding all the details of this particular situation, I just wanted to chime in with my 2 cents: If there is a recommended scenario among many other different scenarios that could go badly if users aren't careful, we should document the recommended one to steer users towards those user stories that we actually want to support. TL;DR: We shouldn't document everything that's possible. We should document the things that we want users to do. |
I agree, which is why I emphasized on the simple solutions. But we must think about the edge cases because customers will come up with them. If we don't clearly document that users of n-1 first need to upgrade, it's likely that some customer will attempt to do so. More concrete, we have this line in our Satellite upgrade guide:
And this line:
That will now have an asterisk that there are some limitations if you do. |
I rather meant that in Sat 6.16 we support Puppet agent 7 in the Client 1 repo alongside Puppet agent 8 in the Client 2 repo. So we need to add a new attribute instead of replacing the existing value. |
@Lennonka I'll retain the old attribute as well. |
fa2dba7
to
1fe2db9
Compare
We need to update the following:
|
1fe2db9
to
ae2bf31
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.
The build is failing because you have renamed this snippet, but it has other occurences and now it cannot be found there. But it's unnecessary to rename this snippet because it is not limited to Puppet. Please, undo the renaming.
FYI With recent updates from the RH engineering, the Client 2 repo will not be provided in 6.16.0 GA. It will be provided later. So we need to monitor it and merge this PR later. |
- The newer versions support puppet-agent 8. - The client repo is versionless and older versions use puppet-agent 7. - To work around this, `satellite-6-client-2` is created for the later versions with puppet-agent 8. - Removed the snippet linked in `Installing and configuring Puppet agent manually` as this snippet is used in multiple modules. JIRA: https://issues.redhat.com/browse/SAT-27092
Introduced the project-client-2-name attribute for Satellite and set it to satellite-6-client-2.
ae2bf31
to
5730948
Compare
Hey @Lennonka fixed it. I had preserved the old snippet as well, but I think the build was failing because the |
@AkshayGadhaveRH That's good spotting, but I would prefer that we just edit the original snippet instead of adding a new one. It isn't necessary to add the new one because the old one can be reused with edits. |
@Lennonka would it be better to manipulate the attribute for puppet related modules so that it renders to Client-2 in that case? |
@AkshayGadhaveRH I think we should clarify first, whether we want to tell users that they can use either Client 1 or Client 2 repo, or we tell them only about Client 2, in 6.16. @ehelms Can you please clarify? |
There is no client 2 right now, this change is not needed for the moment. So we can just close it till we are ready. |
Closing this as the changes have only been made to the puppeterver and the installer making these doc changes unnecessary. |
satellite-6-client-2
is created for the later versions with puppet-agent 8.Installing and configuring Puppet agent manually
as this snippet is used in multiple modules.JIRA: https://issues.redhat.com/browse/SAT-27092
What changes are you introducing?
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
Checklists
Please cherry-pick my commits into: