-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpouta-vm.yml
47 lines (42 loc) · 1.18 KB
/
pouta-vm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- name: Create virtual machine on cPouta
hosts: localhost
remote_user: almalinux
become: false
roles:
- role: kielipankki.common.create_instances
tags: create_instances
vars:
instance_name: 'korp'
pouta_instance_name: "{{ instance_name }}-{{ vm_name_postfix }}"
std_image: "AlmaLinux-9"
project_key: "kielipouta"
project_sg: "korp-dev-sg"
project_security_groups: "default,{{ project_sg }}" # don't add spaces here!
network: "project_2000680"
servers:
- name: "{{ pouta_instance_name }}"
image: "{{ std_image }}"
flavor: standard.medium
key_name: "{{ project_key }}"
security_groups: "{{ project_security_groups }}"
network: "{{ network }}"
meta:
hostname: "{{ pouta_instance_name }}"
group: "{{ instance_name }}"
security_group_rules:
- name: ping
protocol: icmp
port: -1
allowed_ips:
- "193.167.254.68/32" #opsview
- name: http
protocol: tcp
port: 80
allowed_ips:
- "192.168.1.0/24" # pouta local network
authorized_users:
- ktegel
- ajarven
- matthies
- shardwic