Skip to content

Commit

Permalink
Examples (#12)
Browse files Browse the repository at this point in the history
* bumping examples version
  • Loading branch information
tonyskidmore authored Sep 10, 2023
1 parent 78481e3 commit 878c5d0
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ data "azurerm_subnet" "agents" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/001-admin_password/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To use this example update the `terraform.tfvars` file to match your Azure requi

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -100,7 +100,7 @@ data "azurerm_subnet" "agents" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/001-admin_password/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ data "azurerm_subnet" "agents" {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/002-certificate_chain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It demonstrates how to add a custom certificate chain to VMSS instances. This m

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "tls_private_key" "vmss_ssh" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/002-certificate_chain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "tls_private_key" "vmss_ssh" {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/003-multi_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ terraform plan -var ado_project_visibility=public -out tfplan

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -105,7 +105,7 @@ locals {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/003-multi_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/004-docker_data_disk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If using the `demo_environment` pipeline it will deploy 2 instances to begin wit

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -88,7 +88,7 @@ data "azurerm_subnet" "agents" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/004-docker_data_disk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data "azurerm_subnet" "agents" {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/005-additional_packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If using the `demo_environment`, to keep costs down ensure that after running an

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -84,7 +84,7 @@ data "azurerm_subnet" "agents" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/005-additional_packages/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data "azurerm_subnet" "agents" {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
4 changes: 2 additions & 2 deletions examples/006-managed_identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To keep costs down ensure that after running and testing that you run `006-manag

| Name | Source | Version |
|------|--------|---------|
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.5 |
| terraform-azurerm-vmss-devops-agent | tonyskidmore/vmss-devops-agent/azurerm | 0.2.6 |
## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -104,7 +104,7 @@ data "azurerm_subnet" "agents" {
module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/006-managed_identity/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data "azurerm_subnet" "agents" {

module "terraform-azurerm-vmss-devops-agent" {
source = "tonyskidmore/vmss-devops-agent/azurerm"
version = "0.2.5"
version = "0.2.6"
ado_org = var.ado_org
ado_pool_name = var.ado_pool_name
ado_project = var.ado_project
Expand Down
2 changes: 1 addition & 1 deletion examples/007-aks-agents/.terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ content: |-
Example
```hcl
{{ include "aks/main.tf" }}
{{ include "aks-agents/main.tf" }}
```
output:
file: "README.md"
Expand Down
28 changes: 8 additions & 20 deletions examples/007-aks-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,20 @@ No outputs.
Example

```hcl
provider "azurerm" {
features {}
}
resource "random_id" "prefix" {
byte_length = 8
}
data "azurerm_subnet" "agents" {
name = var.aks_subnet_name
resource_group_name = var.resource_group_name
virtual_network_name = var.vmss_vnet_name
data "azurerm_kubernetes_cluster" "default" {
name = var.cluster_name
resource_group_name = var.resource_group_name
}
module "aks" {
source = "Azure/aks/azurerm"
version = "6.8.0"
prefix = "prefix-${random_id.prefix.hex}"
resource_group_name = var.resource_group_name
cluster_name = var.cluster_name
node_resource_group = var.node_resource_group
vnet_subnet_id = data.azurerm_subnet.agents.id
rbac_aad = var.rbac_aad
log_analytics_workspace_enabled = var.log_analytics_workspace_enabled
private_cluster_enabled = var.private_cluster_enabled
module "terraform-kubernetes-azure-devops-agent" {
source = "tonyskidmore/azure-devops-agent/kubernetes"
version = "0.0.4"
ado_ext_pat = var.ado_ext_pat
ado_org = var.ado_org
}
```
<!-- END_TF_DOCS -->

0 comments on commit 878c5d0

Please sign in to comment.