Skip to content
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

BZ1292961 Documenting Ansible options in Install Guide #2350

Merged
merged 1 commit into from
Aug 19, 2016

Conversation

tpoitras
Copy link

@tpoitras tpoitras commented Jun 24, 2016

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1292961

This bug became something different from its original intent. It ended up covering a number of topics in the install guide, and detailed how certain things can be done with ansible, and providing example config.

@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from aacb6fa to 4b05f70 Compare June 24, 2016 03:51
@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from 4b05f70 to 76648fe Compare July 15, 2016 03:06
@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch 4 times, most recently from 6685862 to 08c2ea2 Compare July 27, 2016 08:31
@tpoitras tpoitras changed the title [WIP] BZ1292961 Ansible flag in hosts BZ1292961 Ansible flag in hosts Jul 27, 2016
@tpoitras tpoitras changed the title BZ1292961 Ansible flag in hosts BZ1292961 Documenting Ansible options in Install Guide Jul 27, 2016
@tpoitras tpoitras added this to the Next Release milestone Jul 27, 2016
@tpoitras tpoitras self-assigned this Jul 27, 2016
@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from 08c2ea2 to c0cb9fc Compare July 27, 2016 08:45
@tpoitras
Copy link
Author

tpoitras commented Jul 27, 2016

Have put @sferich888 on NeedInfo in the BZ for assistance with technical review, since he had the most input on the BZ.

Here are the topics I've touched/added sections to:

Custom Certificates:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/certificate_customization.html

Configure Authentication:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/configuring_authentication.html#identity-providers-ansible

Configure Networking (SDN):
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/configuring_sdn.html#configuring-the-pod-network-with-ansible

Proxy Configurations:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/http_proxies.html#configuring-hosts-for-proxies

Defaults and Overrides:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/build_defaults_overrides.html#setting-global-build-defaults

Web Console Modifications:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/web_console_customization.html

AWS:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/configuring_aws.html#aws-configuring-masters

OpenStack:
http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/configuring_openstack.html#openstack-configuring-masters

@@ -16,8 +16,7 @@ Administrators can configure custom serving certificates for the public host
names of the {product-title} API and
xref:../architecture/infrastructure_components/web_console.adoc#architecture-infrastructure-components-web-console[web console].
This can be done during an
xref:../install_config/install/advanced_install.adoc#advanced-install-custom-certificates[advanced
installation] or configured after installation.
xref:../install_config/install/advanced_install.adoc#advanced-install-custom-certificates[advanced installation] or configured after installation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, however don't feel it call's out "loudly" enough that we should be using Ansible to configure these directives, when possible. I wonder if duplicating content (as a new section) on this document, from the link provided helps to make this point?

  • Note: I am not a fan of duplicating content.

I like what was done in https://github.com/openshift/openshift-docs/pull/2350/files#diff-2286e6c0ed74dfb182205830dcec2932R29 as it summarizes an example using the links.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like duplicating content either unless absolutely necessary (and if I did, I'd use "include" statements so the text wouldn't be in there redundantly). I've made this a new section which is closer to what I did for other topics, let me know if you feel this satisfies what you were looking for.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new section does exactly what I was hoping we could do. Looks good.

@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from c0cb9fc to 85f856b Compare August 11, 2016 06:32
@tpoitras
Copy link
Author

Updates made, PR updated, nice rendered docs here if you like: http://file.bne.redhat.com/tpoitras/2016/ansiblehosts/openshift-enterprise/ansibleflaginhosts-BZ1292961/install_config/index.html

What do you reckon, @sferich888 ? Ack?

@@ -13,8 +13,7 @@ toc::[]
== Overview
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In talking this over with @TheDiemer he pointed out that the titles / section headers should read:

Configuring OpenShift Enterprise [COMPONENT] for PROVIDER/PLATFORM

As its more accurate to what we are trying to configure.

though it can be
xref:../install_config/install/advanced_install.adoc#configuring-ansible[overridden
during installation] using the `*os_sdn_network_plugin_name*` parameter.
== Configuring the Pod Network with Ansible
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs ID

@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from 85f856b to d1cc3c1 Compare August 18, 2016 12:39
@tpoitras
Copy link
Author

tpoitras commented Aug 18, 2016

Thank you @sferich888 and @adellape
I believe I've adressed everything, but as @sferich888 pointed out above, GCE is pending. I think that'll have to be addressed in a different BZ and PR though. This one needs to be put to bed. Moving this to peer review. I know @adellape has reviewed already but I wanted to leave this on peer review for today in case @sferich888 has anything else or maybe @bfallonf or @ahardin-rh want to have a look.

@tpoitras tpoitras added peer-review-in-progress Signifies that the peer review team is reviewing this PR and removed tech_review labels Aug 18, 2016
@sferich888
Copy link
Contributor

LGTM

== Configuring Masters
== Configuring {product-title} Masters for AWS

You can set AWS configuration on your {product-title} masters two ways:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"You can set the AWS configuration on your {product-title} master hosts in two ways:"

@bfallonf
Copy link

@tpoitras Some comments from me above. Overall, looks good.

@tpoitras
Copy link
Author

@bfallonf Thanks so much! 🎉 ☀️ 🔧

@tpoitras tpoitras force-pushed the ansibleflaginhosts-BZ1292961 branch from d1cc3c1 to ca4fd6d Compare August 19, 2016 03:41
@tpoitras
Copy link
Author

[rev_history]
|xref:../install_config/build_defaults_overrides.adoc#setting-global-build-defaults[Installation and Configuration -> Configuring Global Build Defaults and Overrides]
|Added details about configuring global build defaults and overrides with Ansible.
%
|xref:../install_config/certificate_customization.adoc#ansible-configuring-custom-certificates[Installation and Configuration -> Configuring Custom Certificates]
|Added details about configuring custom certificates with Ansible.
%
|xref:../install_config/configuring_authentication.adoc#identity-providers-ansible[Installation and Configuration -> Configuring Authentication and User Agent]
|Added details about configuring authentication with Ansible.
%
|xref:../install_config/configuring_aws.adoc#aws-configuring-masters[Installation and Configuration -> Configuring for AWS]
|Added details about configuring for AWS with Ansible.
%
|xref:../install_config/configuring_openstack.adoc#openstack-configuring-masters-ansible[Installation and Configuration -> Configuring for OpenStack]
|Added details about configuring for OpenStack with Ansible.
%
|xref:../install_config/configuring_sdn.adoc#configuring-sdn-config-pod-network-ansible[Installation and Configuration -> Configuring the SDN]
|Added details about configuring the SDN with Ansible.
%
|xref:../install_config/http_proxies.adoc#configuring-hosts-for-proxies[Installation and Configuration -> Working with HTTP Proxies]
|Added details about configuring HTTP proxies with Ansible.
%
|xref:../install_config/web_console_customization.adoc#ansible-config-web-console-customizations[Installation and Configuration -> Customizing the Web Console]
|Added details about configuring the web console with Ansible.
%

@tpoitras tpoitras merged commit c2aa6e0 into openshift:master Aug 19, 2016
@tpoitras tpoitras deleted the ansibleflaginhosts-BZ1292961 branch August 21, 2016 23:57
@vikram-redhat
Copy link
Contributor

@tpoitras - this shouldn't still be on peer review.

@bfallonf bfallonf removed the peer-review-in-progress Signifies that the peer review team is reviewing this PR label Aug 23, 2016
@bfallonf bfallonf modified the milestones: Next Release, Staging Aug 23, 2016
@tpoitras
Copy link
Author

Thanks @vikram-redhat

@bfallonf bfallonf modified the milestones: Staging, Published - 23/08/2016 Aug 23, 2016
@adellape
Copy link
Contributor

adellape commented Aug 23, 2016

@tpoitras This PR makes changes to dev_guide/builds.adoc, so I'd think we'd want to label it for dedicated-3.2 and online branches as well. But that gets into your recent question about including directories into branches that don't need them (like the install_config directory into dedicated-3.2, causing a bunch of conflicts).

We might be able to use something like this to avoid these sorts of issues:

https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Merge-Strategies

But in the meantime, should this get re-labeled? I.e., drop enterprise-3.2 since it already got picked there, add dedicated-3.2 and online, and re-queue into Next Release with an adjusted revhistory comment? Just in the interest of keeping dev_guide/builds.adoc in sync.

If we do do that, we should similarly re-queue this one as well, which fixed a few minor things in follow-up:

#2712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants