Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
e1d5b7c5
Unverified
Commit
e1d5b7c5
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Add section to README for how to install additional tools
parent
9c0dfbf3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/README.md.template
+21
-0
21 additions, 0 deletions
.gitlab/README.md.template
README.md
+21
-0
21 additions, 0 deletions
README.md
with
42 additions
and
0 deletions
.gitlab/README.md.template
+
21
−
0
View file @
e1d5b7c5
...
@@ -181,6 +181,27 @@ Have a look at the individual template spec to learn about the available inputs.
...
@@ -181,6 +181,27 @@ Have a look at the individual template spec to learn about the available inputs.
Have a look at the [`src/gitlab-tofu.sh`](src/gitlab-tofu.sh) script and how the `TF_`-prefixed
Have a look at the [`src/gitlab-tofu.sh`](src/gitlab-tofu.sh) script and how the `TF_`-prefixed
variables are being used. You may set them according to your needs.
variables are being used. You may set them according to your needs.
### Install additional tools
The `gitlab-opentofu` container image deliberately comes with minimal tooling
to keep the image size small and be the least common denominator for our users.
However, it is sometimes necessary to install additional tools. To do that you
can overwrite the included jobs with a `before_script` entry. The `gitlab-opentofu`
image uses `alpine` as its base image and therefore `apk` can be used to install
the tools. For example to install `jq`:
```yaml
include:
- component: gitlab.com/components/opentofu/validate-plan@<VERSION>
inputs:
version: <VERSION>
opentofu_version: 1.6.1
plan:
before_script:
- apk add jq
```
## Releases & Versioning
## Releases & Versioning
...
...
This diff is collapsed.
Click to expand it.
README.md
+
21
−
0
View file @
e1d5b7c5
...
@@ -202,6 +202,27 @@ The following OpenTofu versions are available with this component via the `opent
...
@@ -202,6 +202,27 @@ The following OpenTofu versions are available with this component via the `opent
Have a look at the
[
`src/gitlab-tofu.sh`
](
src/gitlab-tofu.sh
)
script and how the
`TF_`
-prefixed
Have a look at the
[
`src/gitlab-tofu.sh`
](
src/gitlab-tofu.sh
)
script and how the
`TF_`
-prefixed
variables are being used. You may set them according to your needs.
variables are being used. You may set them according to your needs.
### Install additional tools
The
`gitlab-opentofu`
container image deliberately comes with minimal tooling
to keep the image size small and be the least common denominator for our users.
However, it is sometimes necessary to install additional tools. To do that you
can overwrite the included jobs with a
`before_script`
entry. The
`gitlab-opentofu`
image uses
`alpine`
as its base image and therefore
`apk`
can be used to install
the tools. For example to install
`jq`
:
```
yaml
include
:
-
component
:
gitlab.com/components/opentofu/validate-plan@<VERSION>
inputs
:
version
:
<VERSION>
opentofu_version
:
1.6.1
plan
:
before_script
:
-
apk add jq
```
## Releases & Versioning
## Releases & Versioning
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment