mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 03:38:51 +00:00
Add rules to security group and adapt server creation
This commit is contained in:
parent
bf9a14081d
commit
f80e693d8b
2 changed files with 12 additions and 2 deletions
|
@ -17,6 +17,17 @@
|
|||
name: sg-tpot-any
|
||||
description: tpot any-any
|
||||
|
||||
- name: Add rules to security group
|
||||
os_security_group_rule:
|
||||
auth:
|
||||
auth_url: "{{ auth_url }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
project_name: "{{ project_name }}"
|
||||
os_user_domain_name: "{{ os_user_domain_name }}"
|
||||
security_group: sg-tpot-any
|
||||
remote_ip_prefix: 0.0.0.0/0
|
||||
|
||||
- name: Launch an instance
|
||||
os_server:
|
||||
auth:
|
||||
|
@ -34,7 +45,7 @@
|
|||
key_name: "{{ key_name }}"
|
||||
timeout: 200
|
||||
flavor: "{{ flavor }}"
|
||||
security_groups: "{{ security_groups }}"
|
||||
security_groups: sg-tpot-any
|
||||
network: "{{ network }}"
|
||||
register: tpot
|
||||
|
||||
|
|
|
@ -4,5 +4,4 @@ image: Standard_Debian_9_latest
|
|||
volume_size: 128
|
||||
key_name: your-KeyPair
|
||||
flavor: s2.medium.8
|
||||
security_groups: your-sg
|
||||
network: your-network-id
|
||||
|
|
Loading…
Reference in a new issue