-
Notifications
You must be signed in to change notification settings - Fork 96
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
Improve "Foreman on AWS" guide #3485
base: master
Are you sure you want to change the base?
Conversation
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.
As mentioned on Matrix, some of my thoughts on what I'd like to see with this guide in the long term.
Once we drop the postgresql-evr package, we can use a plain PostgreSQL server. Right now we're aiming for Foreman 3.14 for that. For users it means they can use a managed database like Amazon RDS. It will probably be some special flavor of external database support where we point to https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html (or similar) to obtain the right values and reuse the existing modules.
I should check within Red Hat what the preference is, but it would make sense to me to default to it.
Of course, we first need to actually release the feature in 3.14.
@@ -1,12 +1,13 @@ | |||
= Use Cases that Do Not Work | |||
[id="unsupported-use-cases-for-{project-context}-on-aws"] | |||
= Unsupported use cases for {Project} on AWS | |||
|
|||
In AWS, you cannot manage the DHCP. |
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.
Note that if you add a Smart Proxy using a Smart Proxy in our on-premise data center (see Scenario 2: Connecting on-premises and AWS region) then you can use these methods.
This is a long standing issue I have with this guide.
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 consider this out of scope for now. I am not that deep into AWS to test this. I can create a follow-up issue to make this visible.
[id="use-case-considerations-for-{project-context}-on-aws"] | ||
= Use case considerations for {Project} on AWS | ||
|
||
Amazon Web Services (AWS) is an image-only compute resource which means that there are common {Project} use cases that do not work or require extra configuration in your Amazon Web Service environment. |
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.
Is this really relevant? You can simply take a bare OS image and then manage it as a normal OS in EC2.
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.
Right now, we only document image-based provisioning: https://docs.theforeman.org/nightly/Provisioning_Hosts/index-katello.html#Creating_Image_Based_Hosts_on_Amazon_EC2_ec2-provisioning
Do you have a suggestion on how to reword https://github.com/theforeman/foreman-documentation/pull/3485/files#diff-8a3e0dc7ad6426c1ecb5681fcd4d86592e0bb22dfbb58ed31128dfbb5c4279c8R4? Should I replace line 4+5 with something more generic?
e5e34a1
to
a72da79
Compare
3ec9aa8
to
6beeb99
Compare
TODO: After #3167 has been merged, mention the option to run external DBs on dedicated Amazon service: https://aws.amazon.com/rds/ -> done with second commit. |
b53a90a
to
727f4af
Compare
Can someone please do a style review? |
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
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 love the little cloud for Internet in the graphics. Very cute!
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 supported use cases section could use a bit more love but since you're just moving the content and the purpose of this PR is clear from the description, it's completely fine to leave it as it is.
Create a VPN connection between the on-premises location and the AWS region where your {SmartProxyServer} is located. | ||
It is also possible to use the external host name of {ProjectServer} when you register the instance that runs {SmartProxy}. |
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.
Nitpick (applies to Scenario 3 as well). You have one para with a description and then two images (option 1 and option 2). It takes some effort to connect each image to the corresponding part of the para. What if you split the description into two bullet points? Then it would be somewhat easier to connect the dots (= to connect an image with the corresponding part of the concept description).
include::common/modules/con_use-case-considerations-for-foreman-on-aws.adoc[leveloffset=+1] | ||
|
||
include::common/modules/con_foreman-on-aws-prerequisites.adoc[leveloffset=+1] | ||
include::common/modules/con_supported-use-cases-for-foreman-on-aws.adoc[leveloffset=+2] | ||
|
||
include::common/modules/con_foreman-on-aws-assumptions.adoc[leveloffset=+2] | ||
include::common/modules/con_unsupported-use-cases-for-foreman-on-aws.adoc[leveloffset=+2] |
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.
Have you considered making this a single module? I think it would be useful to document both support and unsupported functionality in a single file/section -- to make it easier to compare, skip from one to the other, make sure users are aware of both.
endif::[] | ||
|
||
.Multi-homed {Project} and {SmartProxy} | ||
Multi-homed {ProjectServer} is not supported. |
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.
But this is a module about what is supported! :) See my other note about perhaps documenting supported+unsupported in a single module. This is another reason why that might work better.
guides/common/modules/con_supported-use-cases-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_supported-use-cases-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
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.
Style review done! :)
guides/common/modules/con_unsupported-use-cases-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,8 @@ | |||
[id="registering-hosts-on-aws-to-{project-context}"] | |||
= Registering hosts on AWS to {Project} |
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 think it would be more user-friendly to include this as a step in the "Installing Foreman server on AWS" and "Installing Smart Proxy server on AWS" procedures. Users are unlikely to want to install a server/proxy server without continuing to register the hosts so in my mind, it's all one procedure.
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.
Added ".Next steps" to both procedures. Did you mean to refer to "Registering hosts" in Managing hosts" & dropp the this file?
$ cat guides/doc-Deploying_Project_on_AWS/master.adoc | rg "^include" | sed "s/include::/guides\//g" | sed "s/\[.*$//g" | rg modules | rg -v "proc_providing-feedback-on-red-hat-documentation" | sort -u * Fix/adjust anchors and xrefs to make them fit for all build flavours * Make images not executable $ chmod -x guides/common/images/aws-combined-direct-satellite.png $ chmod -x guides/common/images/aws-combined-vpn-satellite.png $ chmod -x guides/common/images/aws-multi-region-direct-satellite.png $ chmod -x guides/common/images/aws-multi-region-vpn-satellite.png $ chmod -x guides/common/images/aws-single-region-satellite.png
Foreman/Katello does no longer require custom packages to run external databases. This means that users can now use managed DBs as external DB, for example, "Amazon Relational Database Service". Refs PR 3167 in foreman-documentation Refs https://aws.amazon.com/rds/
727f4af
to
8fd57df
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.
Applied most feedback. Needs re-review.
Still TODO: think about combining supported use cases and unsupported use cases & think about splitting/reordering scenarios aka. images and text.
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/con_prerequisites-for-foreman-on-aws.adoc
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,8 @@ | |||
[id="registering-hosts-on-aws-to-{project-context}"] | |||
= Registering hosts on AWS to {Project} |
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.
Added ".Next steps" to both procedures. Did you mean to refer to "Registering hosts" in Managing hosts" & dropp the this file?
what
follow up to #3469
why
additional info
-> There will be a third PR after 3485 and 3456 to make this happen.
cherry-picks
to 3.13 and up only