Skip to content

Conversation

@EricPonvelle
Copy link
Contributor

@EricPonvelle EricPonvelle commented Jun 20, 2024

Version:
Enterprise-4.16+

Issue:
OSDOCS-10177

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:
This PR builds on my Terraform updates in #77311 and creates Terraform tutorials. This content should cover guides for the following topics, for both ROSA classic and ROSA with HCP:

  1. Creating environmental variables for OpenShift resources - Setting environmental variables for your OpenShift resources
  2. Overview of Terraform similar to Kubernetes overview and OpenShift Container Platform overview
  3. OSDOCS-9241: Cluster admin role created Classic only
  4. OSDOCS-9243: Node labels
  5. OSDOCS-9245: VPC Covered with the HCP updates
  6. OSDOCS-9246: Control plane node, infrastructure node, and compute node type and count Not supported on ROSA with HCP clusters since there are no infrastructure and control plane nodes.
  7. OSDOCS-9248: Cluster privacy - public vs. private? Created this guide section to create a private ROSA with HCP cluster. I also updated the overview table for both Classic and HCP to add a default to private_cluster as false. Now, the default clusters are public clusters.
    image
  8. OSDOCS-9249: Autoscaling enabled
  9. OSDOCS-9250: Cluster-wide proxy
  10. OSDOCS-9252: Availability zones: multi-zone, single zone, local zones
  11. OSDOCS-9253: Additional etcd encryption is enabled?
  12. OSDOCS-9254: AWS key management key?

@EricPonvelle EricPonvelle added do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. branch/enterprise-4.15 branch/enterprise-4.16 labels Jun 20, 2024
@EricPonvelle EricPonvelle requested a review from jneczypor June 20, 2024 13:24
@openshift-ci openshift-ci bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 20, 2024
@EricPonvelle
Copy link
Contributor Author

/re-test

@EricPonvelle
Copy link
Contributor Author

/test validate-asciidoc

@EricPonvelle
Copy link
Contributor Author

/re-test

1 similar comment
@EricPonvelle
Copy link
Contributor Author

/re-test

@EricPonvelle EricPonvelle reopened this Jun 20, 2024
@EricPonvelle EricPonvelle removed the request for review from jneczypor June 20, 2024 17:32
@EricPonvelle EricPonvelle force-pushed the ROSA-TF_Tutorials branch 4 times, most recently from 45a2de1 to e048d0e Compare June 20, 2024 18:47
@EricPonvelle EricPonvelle force-pushed the ROSA-TF_Tutorials branch 7 times, most recently from ccf31bd to cd13e48 Compare June 20, 2024 20:18
@EricPonvelle EricPonvelle force-pushed the ROSA-TF_Tutorials branch 7 times, most recently from 805ace8 to cd679a2 Compare August 5, 2024 20:44
In your `variables.tf` file, set the default value to `true`:

[source,terminal]
----

Choose a reason for hiding this comment

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

Should this be empty?

[source,terminal]
----
Success! The configuration is valid.
----

Choose a reason for hiding this comment

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

Could also be worth at least mentioning that you can use terraform plan to see what terraform will do without worrying about it doing anything

count = var.create_vpc ? 1 : 0
depends_on = [module.vpc]
create_duration = "60s"
}

Choose a reason for hiding this comment

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

This curly brace is required for this to be a valid terraform file

depends_on = [time_sleep.wait_60_seconds]
}
EOF

Choose a reason for hiding this comment

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

The curly brace here is also required. Also, seems strange to remove the depends_on for the wait_60_seconds, especially if you're going to leave that resource

+
[source,terminal]
----
$ cat<<-EOF>variables.tf

Choose a reason for hiding this comment

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

This part of the command is required for it to work

cluster_name = local.cluster_name
openshift_version = var.openshift_version

Choose a reason for hiding this comment

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

These two options are required for the module to work. Seems a bit weird to get rid of the other options as well

source = "terraform-redhat/rosa-hcp/rhcs"
version = "1.6.2"
cluster_name = local.cluster_name
openshift_version = var.openshift_version

Choose a reason for hiding this comment

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

This option is required for the module to work

+
[source,terminal]
----
$ export <1> = <2>

Choose a reason for hiding this comment

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

Suggested change
$ export <1> = <2>
$ export <1>=<2>

Spaces between the variable name and value are not supported in bash, so probably better to not include the spaces here

@bergerhoffer
Copy link
Contributor

The branch/enterprise-4.18 label has been added to this PR.

This is because your PR targets the main branch and is labeled for enterprise-4.17. And any PR going into main must also target the latest version branch (enterprise-4.18).

If the update in your PR does NOT apply to version 4.18 onward, please re-target this PR to go directly into the appropriate version branch or branches (enterprise-4.x) instead of main.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 14, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 24, 2024
@@ -0,0 +1,13 @@
// Module included in the following assemblies:
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤖 [error] OpenShiftAsciiDoc.ModuleContainsContentType: Module is missing the '_mod-docs-content-type' variable.

@openshift-ci
Copy link

openshift-ci bot commented Oct 24, 2024

@EricPonvelle: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 23, 2025
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 23, 2025
@openshift-merge-robot
Copy link

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 22, 2025
@bergerhoffer
Copy link
Contributor

The branch/enterprise-4.19 label has been added to this PR.

This is because your PR targets the main branch and is labeled for enterprise-4.18. And any PR going into main must also target the latest version branch (enterprise-4.19).

If the update in your PR does NOT apply to version 4.19 onward, please re-target this PR to go directly into the appropriate version branch or branches (enterprise-4.x) instead of main.

@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this Mar 27, 2025
@openshift-ci
Copy link

openshift-ci bot commented Mar 27, 2025

@openshift-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@EricPonvelle EricPonvelle deleted the ROSA-TF_Tutorials branch June 13, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-4.17 branch/enterprise-4.18 branch/enterprise-4.19 do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants