***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSSDIP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weise, Martin
OSSDIP
Commits
891bda6c
Verified
Commit
891bda6c
authored
3 years ago
by
Weise, Martin
Browse files
Options
Downloads
Patches
Plain Diff
Removal works
parent
5490ace1
Branches
Branches containing commit
Tags
hub-2.3.0
Tags containing commit
1 merge request
!11
Allow for the sysadmin to access the provider network, added the ui support...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/teardown_node/tasks/main.yml
+22
-2
22 additions, 2 deletions
roles/teardown_node/tasks/main.yml
teardown.yml
+0
-13
0 additions, 13 deletions
teardown.yml
with
22 additions
and
15 deletions
roles/teardown_node/tasks/main.yml
+
22
−
2
View file @
891bda6c
...
@@ -3,18 +3,38 @@
...
@@ -3,18 +3,38 @@
### DO NOT CHANGE BELOW THIS LINE ######################################################################################
### DO NOT CHANGE BELOW THIS LINE ######################################################################################
########################################################################################################################
########################################################################################################################
-
name
:
Retrieve node lock
openstack.cloud.server_info
:
server
:
"
OSSDIP
{{
instance
}}"
filters
:
locked
:
true
register
:
vm_locked
-
name
:
Unlock node
openstack.cloud.server_action
:
server
:
"
OSSDIP
{{
instance
}}"
action
:
unlock
when
:
vm_locked.openstack_servers | length >
0
-
name
:
Get ports
-
name
:
Get ports
openstack.cloud.port_info
:
openstack.cloud.port_info
:
port
:
"
ossdip-analyst-{{
node
}}*"
port
:
"
ossdip-analyst-{{
node
}}*"
register
:
port_result
register
:
port_result
when
:
node is defined
-
debug
:
var=port_result
-
name
:
Delete port
-
name
:
Delete port
openstack.cloud.port
:
openstack.cloud.port
:
state
:
absent
state
:
absent
name
:
"
{{
item.name
}}"
name
:
"
{{
item.name
}}"
with_items
:
"
{{
port_result.openstack_ports
}}"
with_items
:
"
{{
port_result.openstack_ports
}}"
when
:
node is defined
-
name
:
Delete port
openstack.cloud.port
:
state
:
absent
name
:
"
ossdip-{{
id
}}-{{
item.name
}}"
with_items
:
"
{{
vms[id].networks
}}"
when
:
node is undefined
-
name
:
Delete floating ip
-
name
:
Delete floating ip
openstack.cloud.floating_ip
:
openstack.cloud.floating_ip
:
...
...
This diff is collapsed.
Click to expand it.
teardown.yml
+
0
−
13
View file @
891bda6c
...
@@ -48,19 +48,6 @@
...
@@ -48,19 +48,6 @@
instance
:
VPN Node
instance
:
VPN Node
tags
:
node
tags
:
node
#- hosts: controlnode
# become: yes
# roles:
# - role: unlock_node
# vars:
# instance: Key Node
#
# - role: teardown_node
# vars:
# id: key
# instance: Key Node
# tags: node
-
hosts
:
controlnode
-
hosts
:
controlnode
become
:
yes
become
:
yes
roles
:
roles
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment