Skip to content

Commit

Permalink
fix pipeline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RavinderReddyF5 committed Oct 25, 2024
1 parent 14f32d0 commit 6f967d6
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
49 changes: 49 additions & 0 deletions examples/resources/bigipnext_cm_backup_restore/resource.tf
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"
}
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"
}
21 changes: 21 additions & 0 deletions examples/resources/bigipnext_cm_next_upgrade/resource.tf
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"
}

0 comments on commit 6f967d6

Please sign in to comment.