Automate GitLab + Terraform (state file, and more)
Wazuh, the open-source security platform:
In this video, I’ll be diving into my self-hosted GitLab platform and how I use it to manage all my HomeLab projects. I’ll show you how I’ve automated my project management with GitLab and Terraform, making it easier to handle everything without the hassle of manual UI management. We’ll explore two key integrations: using the Terraform Provider for configuring GitLab resources and leveraging GitLab as a backend for Terraform state files. Join me as I walk you through the setup and functionality of this powerful combination!
References
– WATCH THIS ON PATREON:
– Terraform Tutorial:
– Terraform + Kubernetes:
– Terraform + Proxmox:
– Terraform + DNS:
________________
💜 Support me and become a Fan!
→
💬 Join our Community!
→
👉 Follow me everywhere
→
________________
Read my Tech Documentation
My Gear and Equipment
________________
Timestamps
00:00 Introduction
02:29 Terraform Overview
03:37 Manage GitLab Resources
10:10 Change Values, GitLab Groups
15:10 Import GitLab Resources
17:22 State File challenges and problems
21:09 Manage State File in GitLab
27:27 Final thoughts
________________
Links can include affiliate links.
[ad_2]
source
Have you tried OpenTofu instead of Terraform? When Terraform stopped being open-source OpenTofu was created and is now part of the Linux Foundation.
Great video, I exiceted to try on my labs.
I curious about wazuh, I have a device with Wazuh installed, will all activities be recorded, including logging into several VPNs?
Thank You
Great exercise for building skills in this particular tool, but for this use-case overkill. It's also important to judge whats overkill in a work environment. There are more ways to Rome. Awesome tutorial and demo though.
Schaut interessant aus, aber es ist mir einfach zu hoch. Wo anfangen ? stellt sich mir die Frage
20:09 – in the past you've been using Terraform Cloud for this, but thought it would be much more amazing to use GitLab ?
Actually 2 months ago in the comments under video about Semaphore UI, I've suggested you to use GitLab for storing tfstate. And you said you'll check it out.
But apparently it's a whole new idea of yours 😀 What a coincidence.
Another idea to borrow: setting up a GitLab instance through Terraform from scratch, but Terraform is executed on GitLab CI runners (self-hosted or cloud).
Classical chicken-egg problem, similar to setting up ArgoCD on a cluster managed by ArgoCD.
That's going to be fun one :p
Are you no longer using GitHub? Or is it specifically for internal use?
Great video again Christian! Will you be replacing kestra with gitlab runners?
No way . Just in time for my new homeland server . Thank you !
That makes sense idea, btw The content is better discussed more deeply on-premise k8s setup
Very cool! I need to do this.
I would love to see how you do proxmox provisioning. i hate the telmate/proxmox provider because it feels so limiting as the values you provide arent the same ones you get out.
Gitea is superior 😀
What is the tool you are using to display diagrams on 17:59 ? Great video ! Thx
hmm now I want to switch from gitea lol
wazuh is good ive deployed it, but its very very manual.
this is it
thanks christian
Hast du vor, von Terraform zu OpenTofu zu migrieren? Ein Video über die jeweiligen Vor- und Nachteile wäre, glaube ich, interessant.🤔
Erster 😂