-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1add94
commit 4a83c3f
Showing
5 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
terraform { | ||
required_providers { | ||
intersight = { | ||
source = "CiscoDevNet/intersight" | ||
version = "0.1.2" | ||
} | ||
} | ||
} | ||
|
||
provider "intersight" { | ||
apikey = var.api_key | ||
secretkeyfile = "changeMe" | ||
endpoint = "changeMe" | ||
apikey = var.api_key | ||
secretkeyfile = var.secretkey_file | ||
endpoint = var.endpoint | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
terraform { | ||
required_providers { | ||
intersight = { | ||
source = "CiscoDevNet/intersight" | ||
version = "0.1.2" | ||
} | ||
} | ||
} | ||
|
||
provider "intersight" { | ||
apikey = var.api_key | ||
secretkeyfile = var.secretkey_file | ||
endpoint = var.endpoint | ||
} | ||
|
||
//terraform import intersight_server_profile.server1 <moid> | ||
|
||
resource "intersight_server_profile" "server1" { | ||
name="server1" | ||
action="Deploy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
variable "api_key" { | ||
type = string | ||
description = "API Key Id from Intersight" | ||
} | ||
|
||
variable "secretkey_file" { | ||
type = string | ||
description = "Secret Key File Path" | ||
} | ||
|
||
variable "endpoint" { | ||
type = string | ||
description = "Endpoint URL" | ||
} | ||
|
||
variable "encryption_key" { | ||
type = string | ||
description = "Encryption key for IPMIOverLan Policy" | ||
} | ||
|
||
variable "auth_password" { | ||
type = string | ||
description = "Auth Password for SNMP Policy" | ||
} | ||
|
||
variable "privacy_password" { | ||
type = string | ||
description = "Privacy Password for SNMP Policy" | ||
} | ||
|
||
variable "base_properties_password_1" { | ||
type = string | ||
description = "Password field in Base properties in LDAP policy" | ||
} | ||
|
||
variable "organization" { | ||
type = string | ||
description = "Organization moid" | ||
} |