Skip to content

Commit

Permalink
change ip to static and disk to ssd
Browse files Browse the repository at this point in the history
  • Loading branch information
smerleCB committed Apr 28, 2023
1 parent da7a49c commit c27ff44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions trusted.ci.jenkins.io.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ resource "azurerm_network_interface" "trusted_controller" {
ip_configuration {
name = "internal"
subnet_id = data.azurerm_subnet.trusted_controller.id
private_ip_address_allocation = "Dynamic"
private_ip_address_allocation = "Static"
# TODO add a dns record to point on this private ip
private_ip_address = "10.252.0.1" # Manually chosen first IP of the controller subnet
}
}

Expand All @@ -159,7 +161,7 @@ resource "azurerm_linux_virtual_machine" "trusted_controller" {

os_disk {
caching = "ReadWrite"
storage_account_type = "Standard_LRS"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 32 # Minimal size for ubuntu 22.04 image
}

Expand All @@ -175,7 +177,7 @@ resource "azurerm_managed_disk" "trusted_controller_data_disk" {
name = "trusted-controller-data-disk"
location = azurerm_resource_group.trusted_ci_jenkins_io_controller.location
resource_group_name = azurerm_resource_group.trusted_ci_jenkins_io_controller.name
storage_account_type = "Standard_LRS"
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = "100"

Expand Down

0 comments on commit c27ff44

Please sign in to comment.