Skip to content

Commit

Permalink
Use auto allocated topology in openstack test
Browse files Browse the repository at this point in the history
Signed-off-by: Dr. Jens Harbott <[email protected]>
  • Loading branch information
osfrickler committed Sep 26, 2024
1 parent f32bc7a commit fd120d9
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions environments/openstack/playbook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,6 @@
- creator
ignore_errors: true # NOTE: necessary when we have not deployed Barbican

- name: Create test network
openstack.cloud.network:
cloud: test
state: present
name: test
mtu: 1342 # NOTE: necessary because VxLAN in Geneve/VxLAN

- name: Create test subnet
openstack.cloud.subnet:
cloud: test
state: present
name: subnet-test
network_name: test
cidr: 192.168.200.0/24

- name: Create test router
openstack.cloud.router:
cloud: test
state: present
name: router-test
network: public
interfaces:
- subnet-test

- name: Create ssh security group
openstack.cloud.security_group:
cloud: test
Expand Down Expand Up @@ -124,16 +100,20 @@
name: test
public_key_file: /opt/configuration/environments/openstack/id_rsa.test.pub

- name: Create test network topology
ansible.builtin.command: openstack --os-cloud test network auto allocated topology create
changed_when: true

- name: Create test instance
openstack.cloud.server:
cloud: test
state: present
name: test
image: "Cirros 0.6.0"
image: "Cirros 0.6.2"
flavor: "SCS-1L-1-5"
delete_fip: true
key_name: test
network: test
network: auto_allocated_network
security_groups:
- icmp
- ssh
Expand Down

0 comments on commit fd120d9

Please sign in to comment.