-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
playbooks/scenario47_cbr.yaml
Outdated
port_range_max: 22 | ||
remote_ip_prefix: 0.0.0.0/0 | ||
|
||
- name: Get Availability zones |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
playbooks/scenario47_cbr.yaml
Outdated
opentelekomcloud.cloud.cbr_restore_point: | ||
vault: "{{ test_vault_name }}" | ||
|
||
- name: Query backups vor CBR vault |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected
playbooks/scenario47_cbr.yaml
Outdated
server_id: "{{ server_id }}" | ||
power_on: false | ||
|
||
- name: Pause for 3 minutes to complete ECS restoration |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
playbooks/scenario47_cbr.yaml
Outdated
state: absent | ||
network_name: "{{ test_network_name }}" | ||
|
||
- name: Delete KP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete Keypair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
server_id: "{{ server.server.id }}" | ||
|
||
# Create CBR backup policy create / update | ||
- name: Create Backup Policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create CBR Backup Policy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
size: 40 | ||
register: vault | ||
|
||
- name: Associate resouces CBR vault |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
delay: 30 | ||
ignore_errors: false | ||
|
||
- name: Get backup ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get CBR backup ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
state: absent | ||
name: "{{ server_id }}" | ||
|
||
- name: Delete Backup Vault |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
action: "associate_resources" | ||
register: vault | ||
|
||
- name: Create restore point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create CBR restore point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
playbooks/scenario47_cbr.yaml
Outdated
set_fact: | ||
backup_id: "{{ backups.backups.0.id }}" | ||
|
||
- name: Restore ECS server from backup |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Build succeeded. ✔️ otc-tox-linters SUCCESS in 4m 12s |
created playbook for cbr