-
Notifications
You must be signed in to change notification settings - Fork 114
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
3b223e0
commit be38487
Showing
3 changed files
with
46 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
terraform{ | ||
required_providers { | ||
nutanix = { | ||
source = "nutanix/nutanix" | ||
version = "1.8.0" | ||
} | ||
} | ||
} | ||
|
||
#definig nutanix configuration | ||
provider "nutanix"{ | ||
ndb_username = var.ndb_username | ||
ndb_password = var.ndb_password | ||
ndb_endpoint = var.ndb_endpoint | ||
insecure = true | ||
} | ||
|
||
// resource to create snapshot with time machine id | ||
|
||
resource "nutanix_ndb_database_snapshot" "name" { | ||
time_machine_id = "{{ tms_ID }}" | ||
name = "test-snap" | ||
remove_schedule_in_days = 1 | ||
} | ||
|
||
// resource to craete snapshot with time machine name | ||
|
||
resource "nutanix_ndb_database_snapshot" "name" { | ||
time_machine_name = "{{ tms_name }}" | ||
name = "test-snap" | ||
remove_schedule_in_days = 1 | ||
} |
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,4 @@ | ||
#define values to the variables to be used in terraform file_username = "admin" | ||
ndb_password = "password" | ||
ndb_endpoint = "10.xx.xx.xx" | ||
ndb_username = "username" |
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,10 @@ | ||
#define the type of variables to be used in terraform file | ||
variable "ndb_username" { | ||
type = string | ||
} | ||
variable "ndb_password" { | ||
type = string | ||
} | ||
variable "ndb_endpoint" { | ||
type = string | ||
} |