forked from openstack-k8s-operators/ci-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
91 lines (79 loc) · 3.99 KB
/
main.yml
File metadata and controls
91 lines (79 loc) · 3.99 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
# Copyright Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# All variables intended for modification should be placed in this file.
# All variables within this role should have a prefix of "cifmw_libvirt_manager"
cifmw_libvirt_manager_basedir: "{{ cifmw_basedir | default( ansible_user_dir ~ '/ci-framework-data') }}"
cifmw_libvirt_manager_enable_virtualization_module: false
cifmw_libvirt_manager_user: "{{ ansible_user_id | default(lookup('env', 'USER')) }}"
cifmw_libvirt_manager_images_url: https://cloud.centos.org/centos/9-stream/x86_64/images
cifmw_libvirt_manager_vm_template: "domain.xml.j2"
cifmw_libvirt_manager_compute_amount: 1
cifmw_libvirt_manager_compute_disksize: 20
cifmw_libvirt_manager_compute_memory: 4
cifmw_libvirt_manager_compute_cpus: 1
cifmw_libvirt_manager_configuration:
networks:
- default
vms:
compute:
start: true
manage: true
amount: "{{ cifmw_libvirt_manager_compute_amount }}"
image_url: "{{ cifmw_discovered_image_url | default('{{ cifmw_libvirt_manager_images_url }}/CentOS-Stream-GenericCloud-9-20230410.0.x86_64.qcow2') }}"
sha256_image_name: "{{ cifmw_discovered_hash | default('8a5abbf8b0dda3e4e49b5112ffae3fff022bf97a5f53b868adbfb80c75c313fe') }}"
image_local_dir: "{{ cifmw_libvirt_manager_basedir }}/images/"
disk_file_name: "centos-9-stream.qcow2"
# GB
disksize: "{{ cifmw_libvirt_manager_compute_disksize }}"
# GB
memory: "{{ cifmw_libvirt_manager_compute_memory }}"
cpus: "{{ cifmw_libvirt_manager_compute_cpus }}"
cifmw_libvirt_manager_crc_pool: "{{ cifmw_crc_pool | default(lookup('env', 'HOME')) ~ '/.crc/machines/crc' }}"
cifmw_libvirt_manager_vol_prefix: ''
cifmw_libvirt_manager_pool:
cifmw_libvirt_manager_pool_dir: "{{ cifmw_libvirt_manager_basedir }}/volumes"
cifmw_libvirt_manager_ocp_pool: "ocp_volumes"
cifmw_libvirt_manager_ocp_pool_dir: "{{ cifmw_libvirt_manager_basedir }}/ocp_volumes"
cifmw_libvirt_manager_installyamls: "{{ cifmw_installyamls_repos | default('../..') }}"
cifmw_libvirt_manager_dryrun: false
cifmw_libvirt_manager_daemon: libvirtd.service
cifmw_libvirt_manager_apply_virtproxy_patch: true
cifmw_libvirt_manager_net_prefix_add: true
cifmw_libvirt_manager_pub_net: public
# Those parameters are usually set via the reproducer role.
# We will therefore use them, and default to the same value set in the role.
cifmw_libvirt_manager_dns_servers: "{{ cifmw_reproducer_dns_servers | default(['1.1.1.1', '8.8.8.8']) }}"
cifmw_libvirt_manager_crc_private_nic: "{{ cifmw_reproducer_crc_private_nic | default('enp2s0') }}"
# Allow to inject custom node family
cifmw_libvirt_manager_vm_net_ip_set: {}
cifmw_libvirt_manager_fixed_networks: []
cifmw_libvirt_manager_no_dnsmasq_nets: []
cifmw_libvirt_manager_reproducer_key_type: "{{ cifmw_ssh_keytype | default('ecdsa') }}"
cifmw_libvirt_manager_reproducer_key_size: "{{ cifmw_ssh_keysize | default(521) }}"
# VM sysprep IP configuration script
cifmw_libvirt_manager_ip_script_basedir: >-
{{
(cifmw_libvirt_manager_basedir, 'artifacts') | ansible.builtin.path_join
}}
cifmw_libvirt_manager_network_interface_types: {}
cifmw_libvirt_manager_spineleaf_setup: false
cifmw_libvirt_manager_firewalld_zone_libvirt_forward: true
cifmw_libvirt_manager_firewalld_default_zone: public
cifmw_libvirt_manager_firewalld_default_zone_masquerade: true
cifmw_libvirt_manager_attach_dummy_interface_on_bridges: true
cifmw_libvirt_manager_extra_network_configuration: {}
cifmw_libvirt_manager_vm_users: []
cifmw_libvirt_manager_radvd_networks: []