-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins.tf
More file actions
35 lines (29 loc) · 909 Bytes
/
Copy pathjenkins.tf
File metadata and controls
35 lines (29 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
resource "azurerm_container_group" "jenkins" {
name = "${var.resource_group}-jenkins-server"
location = var.location
resource_group_name = var.resource_group
ip_address_type = "Public"
dns_name_label = var.dns_name_label
os_type = "Linux"
container {
name = var.container_name
image = var.container_image
cpu = var.container_cpu
memory = var.container_ram
ports {
port = 8080
protocol = "TCP"
}
volume {
name = "jenkins-home"
mount_path = "/var/jenkins_home"
read_only = false
share_name = azurerm_storage_share.fsa_share.name
storage_account_name = azurerm_storage_account.fsa_sa.name
storage_account_key = azurerm_storage_account.fsa_sa.primary_access_key
}
}
tags = {
environment = var.environment
}
}