Create instances for kubernets nodes

This commit is contained in:
Magnus Andersson 2024-01-15 16:22:37 +01:00
parent 4113181fff
commit ca9f31c201
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -33,3 +33,13 @@
{% set secgroupssh=secgroups.security_groups|selectattr('name', 'equalto', 'ssh-from-jumphost')| first -%}
{{ secgroupallegress['id'] }},{{secgroupkubenode['id']}},{{secgroupssh['id'] -}}
loop: "{{ range(1,4)|list }}"
- name: Launch kubernetes instances
openstack.cloud.server:
name: "kube{{ item }}.matrix-test.sunet.se"
state: present
flavor: b2.c4r16
volumes:
- kube{{ item }}-matrix-test-sunet-se-osvol
nics: "port-name=kube{{ item }}-matrix-test-sunet-se-port"
loop: "{{ range(1,4)|list }}"