-
Notifications
You must be signed in to change notification settings - Fork 1
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
14f32d0
commit 6f967d6
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
examples/resources/bigipnext_cm_backup_restore/resource.tf
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,49 @@ | ||
# Resource to do CM Backup | ||
resource "bigipnext_cm_backup_restore" "test" { | ||
name = "Test" | ||
encryption_password = "F5site02@1234" | ||
backup = true | ||
} | ||
# Resource to do CM Restore | ||
resource "bigipnext_cm_backup_restore" "test" { | ||
name = "Backup-20241007-075720_L_20.3.1-0.5.0_8.tgz" | ||
encryption_password = "F5site02@123" | ||
backup = false | ||
} | ||
|
||
# Resource to do CM Backup with Schedule weekly | ||
resource "bigipnext_cm_backup_restore" "test" { | ||
name = "Test" | ||
encryption_password = "F5site02@1234" | ||
backup = true | ||
schedule = { | ||
start_at = "2025-08-25T18:30:00Z" | ||
end_at = "2025-09-25T18:30:00Z" | ||
} | ||
frequency = "Weekly" | ||
days_of_the_week_to_run = [1, 2, 3, 4] | ||
} | ||
|
||
# Resource to do CM Backup with Schedule Monthly | ||
resource "bigipnext_cm_backup_restore" "test" { | ||
name = "Test" | ||
encryption_password = "F5site02@1234" | ||
backup = true | ||
schedule = { | ||
start_at = "2025-08-25T18:30:00Z" | ||
end_at = "2025-09-25T18:30:00Z" | ||
} | ||
frequency = "Monthly" | ||
day_of_the_month_to_run = 10 | ||
} | ||
|
||
# Resource to do CM Backup with Schedule Daily | ||
resource "bigipnext_cm_backup_restore" "test" { | ||
name = "Test" | ||
encryption_password = "F5site02@1234" | ||
backup = true | ||
schedule = { | ||
start_at = "2025-08-25T18:30:00Z" | ||
} | ||
frequency = "Daily" | ||
} |
6 changes: 6 additions & 0 deletions
6
examples/resources/bigipnext_cm_device_backup_restore/resource.tf
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,6 @@ | ||
resource "bigipnext_cm_device_backup_restore" "sample" { | ||
backup_password = "F5site02@123" | ||
operation = "backup" | ||
file_name = "test.tar.gz" | ||
device_hostname = "big-ip-next" | ||
} |
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 @@ | ||
# Upgrade BIG-IP Next VE or appliance to a new version | ||
resource "bigipnext_cm_next_upgrade" "upgrade_ve" { | ||
upgrade_type = "ve" | ||
next_instance_ip = "1.2.3.4" | ||
image_name = "BIG-IP-Next-20.3.0-2.713.1.tgz" | ||
signature_filename = "BIG-IP-Next-20.3.0-2.713.1.tgz.512.sig" | ||
timeout = 3600 | ||
} | ||
|
||
# Upgrade BIG-IP Next appliance to a new version | ||
|
||
resource "bigipnext_cm_next_upgrade" "upgrade_appliance" { | ||
upgrade_type = "appliance" | ||
tenant_name = "testtenantx" | ||
next_instance_ip = "12.34.56.78" | ||
image_name = "BIG-IP-Next-20.3.1-2.538.0" | ||
partition_address = "10.217.30.40" | ||
partition_port = 8888 | ||
partition_username = "admin" | ||
partition_password = "admin" | ||
} |