Commit 33e698e4 authored by FabiusE's avatar FabiusE

Added Jenkins Agent with Docker

parent a5dd8688
locals {
values_yaml_rendered = templatefile("${path.module}/values.yaml.tpl",{
agent = var.agent
})
}
resource "kubernetes_namespace" "jenkins_namespace" {
metadata {
annotations = {
......@@ -13,4 +19,6 @@ resource "helm_release" "jenkins"{
chart = "stable/jenkins"
version = "1.9.19"
timeout = 600
values = [locals.values_yaml_rendered]
}
\ No newline at end of file
agent:
enabled: ${agent.enabled}
image: ${agent.image}
tag: ${agent.tag}
variable "agent" {
type = any
default = {
"enabled": "true",
"image": "getintodevops/jenkins-withdocker",
"tag": "lts-docker19.03.5"
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment