https://github.com/osbuild/gitlab-ci-terraform
Terraform definitions for gitlab-based osbuild CI.
https://github.com/osbuild/gitlab-ci-terraform
terraform
Last synced: over 1 year ago
JSON representation
Terraform definitions for gitlab-based osbuild CI.
- Host: GitHub
- URL: https://github.com/osbuild/gitlab-ci-terraform
- Owner: osbuild
- Created: 2021-03-24T14:10:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T11:00:29.000Z (over 1 year ago)
- Last Synced: 2025-03-29T16:18:11.013Z (over 1 year ago)
- Topics: terraform
- Language: HCL
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 12
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform configs for the osbuild's GitLab-based CI
This repository contains Terraform config's for the osbuild's GitLab-based
CI. These configs are used by a custom Terraform executor hosted
[here][gitlab-ci-terraform-executor].
## Inputs and outputs
AWS configs take an `internal_network` input. If set to `true`, the instance
is placed inside a VPC connected to the Red Hat's internal network.
Each config must output an `ip_address`. It's an array of strings
that contains IP addresses that can be used to connect to the instance.
## `config.json`
Each config must have `config.json` file providing some extra information
to the executor:
| Field | Type | Required | Comment |
| ------------------ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| user | string | yes | A username to be used to log into the instance. |
| runnerArch | "amd64" or "aarch64" | yes | Instance architecture |
| prepareScript | string | no | A script that is run before installing `git-core` and `gitlab-runner` into the instance. Useful for adding custom repositories. |
| subscriptionNeeded | bool | no | If set to true, the executor subscribes the instance before installing `git-core` and `gitlab-runner` into the instance. The subscription script is taken from the `RHN_REGISTRATION_SCRIPT` environment variable. |
[gitlab-ci-terraform-executor]: https://github.com/osbuild/gitlab-ci-terraform-executor