Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Externalizing the disk configuration for OM as default is 30 GB and n… (
Browse files Browse the repository at this point in the history
#187)

* Externalizing the disk configuration for OM as default is 30 GB and now from params you can specify the OM disk size. We were running into issues with upgrades, where the disk was full on OM

* Adding the om_disk_size_in_gb to the variables.tf file

* Fixing the bug where it ops director public/private key was using the wrong variables

* Fixing the IAAS_TYPE for azure stemcell download
  • Loading branch information
rahulkj authored and christianang committed Oct 31, 2017
1 parent bcad374 commit 4da878c
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions install-pcf/azure/params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ azure_terraform_subnet_services1_dns: "168.63.129.16,8.8.8.8"
azure_terraform_subnet_services1_gateway: "192.168.8.1"
azure_terraform_subnet_services1_reserved: "192.168.8.1-192.168.8.9"
azure_terraform_vnet_cidr: "192.168.0.0/20"
pcf_opsman_disk_size_in_gb: 120

container_networking_nw_cidr: 10.255.0.0/16 # c2c networking network cidr

Expand Down
1 change: 1 addition & 0 deletions install-pcf/azure/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ jobs:
AZURE_TERRAFORM_SUBNET_ERT_CIDR: {{azure_terraform_subnet_ert_cidr}}
AZURE_TERRAFORM_SUBNET_SERVICES1_CIDR: {{azure_terraform_subnet_services1_cidr}}
AZURE_TERRAFORM_SUBNET_DYNAMIC_SERVICES_CIDR: {{azure_terraform_subnet_dynamic_services_cidr}}
PCF_OPSMAN_DISK_SIZE_IN_GB: {{pcf_opsman_disk_size_in_gb}}

##############################
## Job - Config OpsMan Auth ##
Expand Down
1 change: 1 addition & 0 deletions install-pcf/azure/tasks/create-infrastructure/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ terraform plan \
-var "azure_droplets_container=${AZURE_DROPLETS_CONTAINER}" \
-var "azure_packages_container=${AZURE_PACKAGES_CONTAINER}" \
-var "azure_resources_container=${AZURE_RESOURCES_CONTAINER}" \
-var "om_disk_size_in_gb=${PCF_OPSMAN_DISK_SIZE_IN_GB}" \
-out terraform.tfplan \
-state terraform-state/terraform.tfstate \
"pcf-pipelines/install-pcf/azure/terraform/${AZURE_PCF_TERRAFORM_TEMPLATE}"
Expand Down
1 change: 1 addition & 0 deletions install-pcf/azure/tasks/create-infrastructure/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ params:
AZURE_TERRAFORM_SUBNET_ERT_CIDR:
AZURE_TERRAFORM_SUBNET_SERVICES1_CIDR:
AZURE_TERRAFORM_SUBNET_DYNAMIC_SERVICES_CIDR:
PCF_OPSMAN_DISK_SIZE_IN_GB:
2 changes: 1 addition & 1 deletion install-pcf/azure/tasks/iaas/config-director.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ iaas_configuration=$(
--arg bosh_storage_account_name "${ENV_SHORT_NAME}root" \
--arg deployments_storage_account_name "*boshvms*" \
--arg default_security_group "pcf-default-security-group" \
--arg ssh_private_key "${PCF_SSH_KEY_PRIV}" \
--arg ssh_public_key "${PCF_SSH_KEY_PUB}" \
--arg ssh_private_key "${PCF_SSH_KEY_PRIV}" \
--arg cloud_storage_type "managed_disks" \
--arg storage_account_type "Premium_LRS" \
--arg environment "AzureCloud" \
Expand Down
1 change: 1 addition & 0 deletions install-pcf/azure/terraform/c0-azure-base/ops_manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "azurerm_virtual_machine" "ops_manager_vm" {
caching = "ReadWrite"
os_type = "linux"
create_option = "FromImage"
disk_size_gb = "${var.om_disk_size_in_gb}"
}

os_profile {
Expand Down
1 change: 1 addition & 0 deletions install-pcf/azure/terraform/c0-azure-base/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ variable "azure_buildpacks_container" {}
variable "azure_droplets_container" {}
variable "azure_packages_container" {}
variable "azure_resources_container" {}
variable "om_disk_size_in_gb" {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "azurerm_virtual_machine" "ops_manager_vm" {
caching = "ReadWrite"
os_type = "linux"
create_option = "FromImage"
disk_size_gb = "${var.om_disk_size_in_gb}"
}

os_profile {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ variable "vm_admin_public_key" {}
variable "ert_subnet_id" {}
variable "azure_multi_resgroup_network" {}
variable "azure_multi_resgroup_pcf" {}
variable "om_disk_size_in_gb" {}
6 changes: 3 additions & 3 deletions upgrade-ops-manager/azure/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ jobs:
file: pcf-pipelines/upgrade-ops-manager/azure/tasks/create-cliaas-config/task.yml
params:
AZURE_REGION: {{azure_region}}
AZURE_SUBSCRIPTION_ID: {{azure_subscription_id}}
AZURE_SUBSCRIPTION_ID: {{azure_subscription_id}}
AZURE_CLIENT_ID: {{azure_client_id}}
AZURE_CLIENT_SECRET: {{azure_client_secret}}
AZURE_TENANT_ID: {{azure_tenant_id}}
AZURE_RESOURCE_GROUP_NAME: {{azure_resource_group_name}}
AZURE_TENANT_ID: {{azure_tenant_id}}
AZURE_RESOURCE_GROUP_NAME: {{azure_resource_group_name}}
AZURE_STORAGE_ACCOUNT_NAME: {{azure_storage_account_name}}
AZURE_STORAGE_ACCOUNT_KEY: {{azure_storage_account_key}}
AZURE_STORAGE_CONTAINER_NAME: {{azure_storage_container_name}}
Expand Down

0 comments on commit 4da878c

Please sign in to comment.