Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins_terraform_module
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fabius
jenkins_terraform_module
Commits
33e698e4
Commit
33e698e4
authored
Feb 27, 2020
by
FabiusE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Jenkins Agent with Docker
parent
a5dd8688
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
main.tf
main.tf
+8
-0
values.yaml.tpl
values.yaml.tpl
+4
-0
variables.tf
variables.tf
+8
-0
No files found.
main.tf
View file @
33e698e4
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
values.yaml.tpl
0 → 100644
View file @
33e698e4
agent:
enabled: $
{
agent
.
enabled
}
image: $
{
agent
.
image
}
tag: $
{
agent
.
tag
}
variables.tf
View file @
33e698e4
variable
"agent"
{
type
=
any
default
=
{
"enabled"
:
"true"
,
"image"
:
"getintodevops/jenkins-withdocker"
,
"tag"
:
"lts-docker19.03.5"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment