This commit is contained in:
Zeeshaun
2026-03-13 12:58:13 -05:00
parent 4e6099ff5c
commit 64856c640e
203 changed files with 106084 additions and 0 deletions
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/dealer_reserve
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/incentive_log
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/letters_and_notices_integration
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/lmcu
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/platform
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/repo
@@ -0,0 +1,16 @@
trigger:
- none
schedules:
- cron: '30 15 * * WED'
displayName: Weekly Wednesday Build
always: true
branches:
include:
- main
extends:
template: azure-tf-pipeline.yaml
parameters:
tf_operation: apply
target_azdo_project: lcu/pipelines/unified_opt_in
@@ -0,0 +1,55 @@
trigger:
- none
parameters:
- name: tf_operation
displayName: Terraform operation to perform
type: string
values:
- plan
- apply
- destroy
default: plan
- name: tf_additional_command_options
displayName: Options to pass to the Terraform Operation
type: string
default: ' '
- name: target_azdo_project
displayName: Target AZDO Project (Business Unit / AZDO Functionality / Azdo Project)
type: string
values:
- lcu/pipelines/platform
- lcu/pipelines/letters_and_notices_integration
- lcu/pipelines/repo
- lcu/pipelines/unified_opt_in
- lcu/pipelines/incentive_log
- lcu/pipelines/lmcu
- lcu/pipelines/dealer_reserve
default: lcu/pipelines/platform
variables:
- template: ./azure-tf-pvars.yaml
resources:
repositories:
- repository: azdo_pipeline_templates
type: git
name: Infrastructure Platform/azdo-pipeline-templates
ref: main
- repository: shared_terraform_configurations
type: git
name: Infrastructure Platform/shared-terraform-configurations
ref: main
- repository: shared_platform_terraform_modules
type: git
name: Infrastructure Platform/shared-platform-terraform-modules
ref: main
stages:
- template: terraform-base.yaml@azdo_pipeline_templates
parameters:
tf_operation: ${{ parameters.tf_operation }}
tf_additional_command_options: ${{ parameters.tf_additional_command_options }}
tf_workspace: azdo-${{ replace(parameters.target_azdo_project, '/', '-') }}
@@ -0,0 +1,15 @@
variables:
# AZDO
pvar_azdo_agent_pool_name: vmss-sub-df-lcu-apps-qa-lz-uscz
pvar_azdo_service_connection_name: sub-df-lcu-apps-qa-contributor-svcon
# TERRAFORM
pvar_tf_version: 1.9.8
pvar_tf_backend_azdo_service_connection_name: sub-df-lcu-apps-qa-contributor-svcon
pvar_tf_backend_resource_group: rg-sub-df-lcu-apps-qa-apps-uscz
pvar_tf_backend_storage_account: sasubdflcuappsqaappsuscz
pvar_tf_backend_storage_container: tfstate
pvar_tf_backend_rm_key: $(Build.Repository.Name).tfstate
# TERRAFORM APPLY/DESTORY APPROVERS
pvar_tf_approval_emails: ''
@@ -0,0 +1,72 @@
---
trigger:
- none
parameters:
- name: target_azdo_project
displayName: Target AZDO Project (Business Unit / AZDO Functionality / Azdo Project)
type: string
values:
- lcu/pipelines/platform
- lcu/pipelines/letters_and_notices_integration
- lcu/pipelines/repo
- lcu/pipelines/unified_opt_in
- lcu/pipelines/incentive_log
default: lcu/pipelines/platform
- name: tf_operation
displayName: Terraform operation to perform
type: string
default: state list
values:
- state list
- state import
- state rm
- name: tf_additional_command_options
displayName: Options to pass to the Terraform Operation
type: string
default: ' '
- name: resource_address
displayName: (Optional) the Terraform resource name we are importing to state (state import, state mv, state rm)
type: string
default: ' '
- name: resource_destination_address
displayName: (Optional) Resource Destination Address (state mv)
type: string
default: ' '
- name: resource_id
displayName: (Optional) the Azure resource ID to import to (state import)
type: string
default: ' '
variables:
- template: ./azure-tf-pvars.yaml
resources:
repositories:
- repository: azdo_pipeline_templates
type: git
name: Infrastructure Platform/azdo-pipeline-templates
ref: main
- repository: shared_terraform_configurations
type: git
name: Infrastructure Platform/shared-terraform-configurations
ref: main
- repository: shared_platform_terraform_modules
type: git
name: Infrastructure Platform/shared-platform-terraform-modules
ref: main
stages:
- template: terraform-utility.yaml@azdo_pipeline_templates
parameters:
tf_operation: ${{ parameters.tf_operation }}
tf_additional_command_options: ${{ parameters.tf_additional_command_options }}
resource_address: ${{ parameters.resource_address }}
resource_destination_address: ${{ parameters.resource_destination_address }}
resource_id: ${{ parameters.resource_id }}
tf_workspace: azdo-${{ replace(parameters.target_azdo_project, '/', '-') }}