Compare commits
1 Commits
main
...
opentofu-w
Author | SHA1 | Date | |
---|---|---|---|
|
fb6940a0c7 |
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
.terraform*
|
.env
|
||||||
terraform*
|
tofu/.terraform*
|
||||||
*/.envrc
|
tofu/terraform.tfstate*
|
||||||
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
version: '3.6'
|
||||||
|
services:
|
||||||
|
gitlab:
|
||||||
|
image: gitlab/gitlab-ce:latest
|
||||||
|
container_name: gitlab
|
||||||
|
restart: always
|
||||||
|
hostname: 'gitlab.equilibrateit.com'
|
||||||
|
env_file: '.env'
|
||||||
|
environment:
|
||||||
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
# Add any other gitlab.rb configuration here, each on its own line
|
||||||
|
external_url 'https://gitlab.equilibrateit.com'
|
||||||
|
ports:
|
||||||
|
- '8080:80'
|
||||||
|
- '4443:443'
|
||||||
|
- '2222:22'
|
||||||
|
volumes:
|
||||||
|
- '$GITLAB_HOME/config:/etc/gitlab'
|
||||||
|
- '$GITLAB_HOME/logs:/var/log/gitlab'
|
||||||
|
- '$GITLAB_HOME/data:/var/opt/gitlab'
|
||||||
|
shm_size: '256m'
|
16
tofu/main.tf
16
tofu/main.tf
@ -9,14 +9,14 @@ terraform {
|
|||||||
|
|
||||||
provider linode {
|
provider linode {
|
||||||
# Configuration options
|
# Configuration options
|
||||||
token = var.token
|
token = "b31ef21bb1649e7f580918305192733e84ba14aa5c4936723c89b26f5aae6012"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource linode_instance "instance" {
|
resource linode_instance "ci-cd" {
|
||||||
label = var.label
|
label = "ci-cd"
|
||||||
image = var.image
|
image = "linode/almalinux9"
|
||||||
region = var.region
|
region = "ca-central"
|
||||||
type = var.type
|
type = "g6-standard-2"
|
||||||
authorized_keys = var.authorized_keys
|
authorized_keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeRI1w3uNny7KjK2UdlAnyoGdGgtOx4isSD52u5dr4QkkdLRMj42dLjgT0MK+QehlgaH2XzFPMDz+hZQ+66YeBSm+F4km/8F9XVyUzGl0scUA1p0pqeL3FiyM3Art4Bo71zuE3PvMjyI3pGMKQ3VDWVA0XdAjjSw4G+czJTxZLLBPGvzDT07WuWM4Evl6H21Gn7PB6CKNV0vuUZwGiCsjRbghml1L2kDtTXV1B6wQsniuhQigIVo6YXhMgge/2UCcmiyeEizdfaSstrQHEyxFMvlPUJyw4a3plAuPORDyZdAFF6OA7/wP5fVWoCu/CkbMIDjPifXGQOuhQU1qUVy7r m00t@miserver.lan"]
|
||||||
root_pass = var.root_pass
|
root_pass = "Entomb-Unce>tain-Garnish"
|
||||||
}
|
}
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
## Required Variables
|
|
||||||
##
|
|
||||||
|
|
||||||
variable "token" {
|
|
||||||
description = "The linode API Token"
|
|
||||||
type = string
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "label" {
|
|
||||||
description = "The label for the linode."
|
|
||||||
type = string
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "root_pass" {
|
|
||||||
description = "The root password of the linode."
|
|
||||||
type = string
|
|
||||||
}
|
|
||||||
|
|
||||||
## Optional Variables
|
|
||||||
##
|
|
||||||
|
|
||||||
variable "image" {
|
|
||||||
description = "The OS image for the linode."
|
|
||||||
type = string
|
|
||||||
default = "linode/almalinux9"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "region" {
|
|
||||||
description = "The region where the linode will run."
|
|
||||||
type = string
|
|
||||||
default = "ca-central"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "type" {
|
|
||||||
description = "The linode host type."
|
|
||||||
type = string
|
|
||||||
default = "g6-nanode-1"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "authorized_keys" {
|
|
||||||
description = "The list of public keys to be authorized for ssh login."
|
|
||||||
type = list
|
|
||||||
default = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeRI1w3uNny7KjK2UdlAnyoGdGgtOx4isSD52u5dr4QkkdLRMj42dLjgT0MK+QehlgaH2XzFPMDz+hZQ+66YeBSm+F4km/8F9XVyUzGl0scUA1p0pqeL3FiyM3Art4Bo71zuE3PvMjyI3pGMKQ3VDWVA0XdAjjSw4G+czJTxZLLBPGvzDT07WuWM4Evl6H21Gn7PB6CKNV0vuUZwGiCsjRbghml1L2kDtTXV1B6wQsniuhQigIVo6YXhMgge/2UCcmiyeEizdfaSstrQHEyxFMvlPUJyw4a3plAuPORDyZdAFF6OA7/wP5fVWoCu/CkbMIDjPifXGQOuhQU1qUVy7r m00t@miserver.lan"]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user