Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Protection rule and Recovery plan(DR Runbook) resources and datasources #125

Closed
wants to merge 10 commits into from

Conversation

coderGo93
Copy link
Contributor

@coderGo93 coderGo93 commented May 15, 2020

Fix for issue #22

Added resources

  • Protection rule
  • Recovery Plan

Added datasource

  • Protection rule
  • Protection rules
  • Recovery plan
  • Recovery plans

Example usage of a resource protection rule

resource "nutanix_protection_rule" "protection_rule_test" {
    name        = "test"
    description = "test"
    ordered_availability_zone_list{
        availability_zone_url = "ab788130-0820-4d07-a1b5-b0ba4d3a42asd"
    }

    availability_zone_connectivity_list{
        snapshot_schedule_list{
            recovery_point_objective_secs = 3600
            snapshot_type= "CRASH_CONSISTENT"
            local_snapshot_retention_policy {
                num_snapshots = 1
            }
        }
    }
    category_filter {
        params {
            name = "Environment"
            values = ["Dev"]
        }
    }
}

Example usage of a resource recovery plan

resource "nutanix_recovery_plan" "recovery_plan_test" {
    name        = "%s"
    description = "%s"
    stage_list {
        stage_work{
            recover_entities{
                entity_info_list{
                    categories {
                        name = "Environment"
                        value = "Dev"
                    }
                }
            }
        }
        stage_uuid = "ab788130-0820-4d07-a1b5-b0ba4d3a42asd"
        delay_time_secs = 0
    }
    parameters{}
}

Copy link
Contributor

@marinsalinas marinsalinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please fix the conflicts?

@ghost ghost added the dependencies label May 20, 2020
@coderGo93 coderGo93 requested a review from marinsalinas May 20, 2020 19:55
@coderGo93 coderGo93 removed the request for review from PacoDw November 23, 2020 23:57
@coderGo93 coderGo93 changed the title Protection rule and Recovery plan(DR Runbook) resources and datasources WIP:Protection rule and Recovery plan(DR Runbook) resources and datasources Nov 24, 2020
@coderGo93 coderGo93 changed the title WIP:Protection rule and Recovery plan(DR Runbook) resources and datasources WIP: Protection rule and Recovery plan(DR Runbook) resources and datasources Nov 24, 2020
@coderGo93 coderGo93 closed this Dec 4, 2020
@siddharth-nutanix siddharth-nutanix deleted the dr-runbook branch February 16, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants