Skip to content
Snippets Groups Projects
Commit fce339ac authored by Timo Furrer's avatar Timo Furrer
Browse files

Make use of some beautiful GitLab markdown alerts

parent e0a286e7
Branches
Tags
No related merge requests found
...@@ -4,21 +4,27 @@ This project is home to the **OpenTofu CI/CD component** and it's related assets ...@@ -4,21 +4,27 @@ This project is home to the **OpenTofu CI/CD component** and it's related assets
like the `gitlab-tofu` wrapper script and OCI images containing that script like the `gitlab-tofu` wrapper script and OCI images containing that script
together with an OpenTofu version. together with an OpenTofu version.
Read more: > [!note]
> Please make sure to use a released version of this CI/CD component.
- [CI/CD components](https://docs.gitlab.com/ee/ci/components) > You find all releases on the [Releases Overview Page](https://gitlab.com/components/opentofu/-/releases).
- [Development guide for GitLab CI/CD components](https://docs.gitlab.com/ee/development/cicd/components)
- [CI/CD Catalog](https://docs.gitlab.com/ee/ci/components/index.html#cicd-catalog) > [!tip]
> GitLab CI/CD components and the CI/CD catalog are fairly recent additions to GitLab.
**Note**: Please make sure to use a released version of this CI/CD component. > You can learn more about them here:
You find all releases on the [Releases Overview Page](https://gitlab.com/components/opentofu/-/releases). >
> - [CI/CD components](https://docs.gitlab.com/ee/ci/components)
♻️ **Migrating from the Terraform CI/CD templates?** Check **[this](#migrating-from-the-terraform-cicd-templates)** out. > - [Development guide for GitLab CI/CD components](https://docs.gitlab.com/ee/development/cicd/components)
> - [CI/CD Catalog](https://docs.gitlab.com/ee/ci/components/index.html#cicd-catalog)
>
>♻️ **Migrating from the Terraform CI/CD templates?** Check **[this](#migrating-from-the-terraform-cicd-templates)** out.
[[_TOC_]] [[_TOC_]]
## Usage ## Usage
> [!tip]
> The usage examples use `<...>` pattern for placeholders that you must replace with your desired values.
```yaml ```yaml
include: include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION> - component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION>
...@@ -124,6 +130,10 @@ The base image OS can be specified with the `base_os` input. ...@@ -124,6 +130,10 @@ The base image OS can be specified with the `base_os` input.
### GitLab-managed Terraform state backend ### GitLab-managed Terraform state backend
> [!tip]
> Consider using `auto_define_backend: true` to let the component automatically set up
> the OpenTofu HTTP backend configuration block.
This component - by leveraging the [`gitlab-tofu`](src/gitlab-tofu.sh) CLI internally - This component - by leveraging the [`gitlab-tofu`](src/gitlab-tofu.sh) CLI internally -
can automatically define and configure the can automatically define and configure the
[GitLab-managed Terraform state backend](https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html). [GitLab-managed Terraform state backend](https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html).
...@@ -142,6 +152,11 @@ However, you may simply enable the `auto_define_backend` so that the component t ...@@ -142,6 +152,11 @@ However, you may simply enable the `auto_define_backend` so that the component t
### State and Plan Encryption ### State and Plan Encryption
> [!tip]
> State and Plan encryption is not enabled by default which may impact security negatively
> for your use case. Please consider using it. The example below gives you a good sense
> of how easy it is to enable.
We recommend that you configure the OpenTofu We recommend that you configure the OpenTofu
[State and Plan Encryption](https://opentofu.org/docs/language/state/encryption). [State and Plan Encryption](https://opentofu.org/docs/language/state/encryption).
......
...@@ -6,21 +6,27 @@ This project is home to the **OpenTofu CI/CD component** and it's related assets ...@@ -6,21 +6,27 @@ This project is home to the **OpenTofu CI/CD component** and it's related assets
like the `gitlab-tofu` wrapper script and OCI images containing that script like the `gitlab-tofu` wrapper script and OCI images containing that script
together with an OpenTofu version. together with an OpenTofu version.
Read more: > [!note]
> Please make sure to use a released version of this CI/CD component.
- [CI/CD components](https://docs.gitlab.com/ee/ci/components) > You find all releases on the [Releases Overview Page](https://gitlab.com/components/opentofu/-/releases).
- [Development guide for GitLab CI/CD components](https://docs.gitlab.com/ee/development/cicd/components)
- [CI/CD Catalog](https://docs.gitlab.com/ee/ci/components/index.html#cicd-catalog) > [!tip]
> GitLab CI/CD components and the CI/CD catalog are fairly recent additions to GitLab.
**Note**: Please make sure to use a released version of this CI/CD component. > You can learn more about them here:
You find all releases on the [Releases Overview Page](https://gitlab.com/components/opentofu/-/releases). >
> - [CI/CD components](https://docs.gitlab.com/ee/ci/components)
♻️ **Migrating from the Terraform CI/CD templates?** Check **[this](#migrating-from-the-terraform-cicd-templates)** out. > - [Development guide for GitLab CI/CD components](https://docs.gitlab.com/ee/development/cicd/components)
> - [CI/CD Catalog](https://docs.gitlab.com/ee/ci/components/index.html#cicd-catalog)
>
>♻️ **Migrating from the Terraform CI/CD templates?** Check **[this](#migrating-from-the-terraform-cicd-templates)** out.
[[_TOC_]] [[_TOC_]]
## Usage ## Usage
> [!tip]
> The usage examples use `<...>` pattern for placeholders that you must replace with your desired values.
```yaml ```yaml
include: include:
- component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION> - component: $CI_SERVER_FQDN/components/opentofu/full-pipeline@<VERSION>
...@@ -126,6 +132,10 @@ The base image OS can be specified with the `base_os` input. ...@@ -126,6 +132,10 @@ The base image OS can be specified with the `base_os` input.
### GitLab-managed Terraform state backend ### GitLab-managed Terraform state backend
> [!tip]
> Consider using `auto_define_backend: true` to let the component automatically set up
> the OpenTofu HTTP backend configuration block.
This component - by leveraging the [`gitlab-tofu`](src/gitlab-tofu.sh) CLI internally - This component - by leveraging the [`gitlab-tofu`](src/gitlab-tofu.sh) CLI internally -
can automatically define and configure the can automatically define and configure the
[GitLab-managed Terraform state backend](https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html). [GitLab-managed Terraform state backend](https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html).
...@@ -144,6 +154,11 @@ However, you may simply enable the `auto_define_backend` so that the component t ...@@ -144,6 +154,11 @@ However, you may simply enable the `auto_define_backend` so that the component t
### State and Plan Encryption ### State and Plan Encryption
> [!tip]
> State and Plan encryption is not enabled by default which may impact security negatively
> for your use case. Please consider using it. The example below gives you a good sense
> of how easy it is to enable.
We recommend that you configure the OpenTofu We recommend that you configure the OpenTofu
[State and Plan Encryption](https://opentofu.org/docs/language/state/encryption). [State and Plan Encryption](https://opentofu.org/docs/language/state/encryption).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment