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

Apimon playbook for cbr #102

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Conversation

jmiskani
Copy link
Contributor

@jmiskani jmiskani commented Oct 2, 2024

created playbook for cbr

port_range_max: 22
remote_ip_prefix: 0.0.0.0/0

- name: Get Availability zones
Copy link
Member

Choose a reason for hiding this comment

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

you don't use it anywhere, so why you have it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted

opentelekomcloud.cloud.cbr_restore_point:
vault: "{{ test_vault_name }}"

- name: Query backups vor CBR vault
Copy link
Member

Choose a reason for hiding this comment

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

for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected

server_id: "{{ server_id }}"
power_on: false

- name: Pause for 3 minutes to complete ECS restoration
Copy link
Member

Choose a reason for hiding this comment

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

please create in otc ansible collection and in python-otcextensions issue requesting wait for restore completion method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

state: absent
network_name: "{{ test_network_name }}"

- name: Delete KP
Copy link
Member

Choose a reason for hiding this comment

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

Delete Keypair

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

server_id: "{{ server.server.id }}"

# Create CBR backup policy create / update
- name: Create Backup Policy
Copy link
Member

Choose a reason for hiding this comment

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

Create CBR Backup Policy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

size: 40
register: vault

- name: Associate resouces CBR vault
Copy link
Member

Choose a reason for hiding this comment

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

Associate resources to CBR vault

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

delay: 30
ignore_errors: false

- name: Get backup ID
Copy link
Member

Choose a reason for hiding this comment

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

Get CBR backup ID

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

state: absent
name: "{{ server_id }}"

- name: Delete Backup Vault
Copy link
Member

Choose a reason for hiding this comment

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

Delete CBR server Backup Vault

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

action: "associate_resources"
register: vault

- name: Create restore point
Copy link
Member

Choose a reason for hiding this comment

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

Create CBR restore point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

set_fact:
backup_id: "{{ backups.backups.0.id }}"

- name: Restore ECS server from backup
Copy link
Member

Choose a reason for hiding this comment

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

Restore ECS server from CBR backup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link

otc-zuul bot commented Nov 19, 2024

@otc-zuul otc-zuul bot merged commit 569ace2 into opentelekomcloud-infra:master Nov 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants