Skip to content

Commit

Permalink
adding server_assignment_mode attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Nov 5, 2021
1 parent 6dc65ed commit b18945e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions modules/ucs_server_profiles/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
#____________________________________________________________

resource "intersight_server_profile" "server_profile" {
action = var.action
description = var.description
name = var.name
action = var.action
description = var.description
name = var.name
server_assignment_mode = length(
var.assigned_server
) > 0 ? "Static" : length(
var.associated_server_pool
) > 0 ? "Pool" : "None"
static_uuid_address = var.static_uuid_address
target_platform = var.target_platform
type = var.type
uuid_address_type = length(var.uuid_pool) > 0 ? "POOL" : var.static_uuid_address != "" ? "STATIC" : "NONE"
uuid_address_type = length(
var.uuid_pool
) > 0 ? "POOL" : var.static_uuid_address != "" ? "STATIC" : "NONE"
wait_for_completion = var.wait_for_completion
organization {
object_type = "organization.Organization"
Expand Down

0 comments on commit b18945e

Please sign in to comment.