Skip to content

Commit

Permalink
website: add new way to set categories
Browse files Browse the repository at this point in the history
  • Loading branch information
marinsalinas committed Sep 4, 2019
1 parent fd1d7b6 commit 4049c3c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
33 changes: 24 additions & 9 deletions website/docs/r/network_security_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,14 @@ resource "nutanix_virtual_machine" "vm-app" {
}
}
categories = {
Environment = "Staging"
TIER-1 = nutanix_category_value.APP.id
categories {
name = "Environment"
value = "Staging"
}
categories {
name = "TIER-1"
value = nutanix_category_value.APP.id
}
}
Expand Down Expand Up @@ -152,9 +157,14 @@ resource "nutanix_virtual_machine" "vm-web" {
}
}
categories = {
Environment = "Staging"
TIER-1 = nutanix_category_value.WEB.id
categories {
name = "Environment"
value = "Staging"
}
categories {
name = "TIER-1"
value = nutanix_category_value.WEB.id
}
}
Expand Down Expand Up @@ -184,10 +194,15 @@ resource "nutanix_virtual_machine" "vm-db" {
device_type = "DISK"
}
}
categories {
name = "Environment"
value = "Staging"
}
categories = {
Environment = "Staging"
TIER-1 = nutanix_category_value.DB.id
categories {
name = "TIER-1"
value = nutanix_category_value.DB.id
}
}
Expand Down
5 changes: 3 additions & 2 deletions website/docs/r/virtual_machine.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ resource "nutanix_virtual_machine" "vm1" {
name = "test-dou"
cluster_uuid = data.nutanix_clusters.clusters.entities.0.metadata.uuid
categories = {
Environment = "Staging"
categories {
name = "Environment"
value = "Staging"
}
Expand Down

0 comments on commit 4049c3c

Please sign in to comment.