Skip to content

Commit

Permalink
update addon_profile variable to be optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
melvinlee committed Sep 22, 2019
1 parent 658d7bb commit 27a10a2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
32 changes: 12 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ variable "agent_pools" {

```sh
variable "linux_admin_username" {
description = "(Required) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
description = "(Optional) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
type = "string"
default = "azureuser"
}
Expand Down Expand Up @@ -124,25 +124,17 @@ tags = {

```sh
variable "addon_profile" {
description = "(Required) AddOn Profile block."
}
```

Example

```sh
addon_profile = {
# Enable Container Monitoring
oms_agent = {
enabled = true
}
# Disable HTTP Application Routing
http_application_routing = {
enabled = false
}
# Disable Kubernetes Dashboard
kube_dashboard = {
enabled = false
description = "(Optional) AddOn Profile block."
default = {
oms_agent = {
enabled = true # Enable Container Monitoring
}
http_application_routing = {
enabled = false # Disable HTTP Application Routing
}
kube_dashboard = {
enabled = false # Disable Kubernetes Dashboard
}
}
}
```
Expand Down
15 changes: 13 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ variable "agent_pools" {
}

variable "linux_admin_username" {
description = "(Required) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
description = "(Optional) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
type = "string"
default = "azureuser"
}
Expand All @@ -47,7 +47,18 @@ variable "tags" {
}

variable "addon_profile" {
description = "(Required) AddOn Profile block."
description = "(Optional) AddOn Profile block."
default = {
oms_agent = {
enabled = true # Enable Container Monitoring
}
http_application_routing = {
enabled = false # Disable HTTP Application Routing
}
kube_dashboard = {
enabled = false # Disable Kubernetes Dashboard
}
}
}

variable "log_analytics_workspace" {
Expand Down

0 comments on commit 27a10a2

Please sign in to comment.