terraform-provider-libvirt/libvirt
Egbert Eich d41792ab15
if no machine is set, use default types depending on the arch (#1014)
* Improve 'machine' type selection

If no machine is set, use default types depending on the arch.
The selection is taken from https://github.com/virt-manager/virt-manager
file virtinst/guest.py function get_recommended_machine().

Signed-off-by: Egbert Eich <eich@suse.com>

* Test for getMachineTypeForArch()

Signed-off-by: Egbert Eich <eich@suse.com>

---------

Signed-off-by: Egbert Eich <eich@suse.com>
2024-03-22 00:23:42 +01:00
..
helper gofmt 2022-12-29 02:22:52 +01:00
testdata Implement functions to recognize qcow2 images 2018-08-28 09:39:57 +02:00
uri use %w for error formatting 2023-11-20 00:29:12 +01:00
util gofmt 2022-12-29 02:22:52 +01:00
cloudinit_def.go gomnd lint 2023-01-02 12:43:46 +01:00
cloudinit_def_test.go Rename tests in more clear way 2018-09-18 09:29:17 +02:00
config.go port to the new libvirt-go dialer constructor 2023-01-02 11:07:47 +01:00
coreos_ignition_def.go gomnd lint 2023-01-02 12:43:46 +01:00
data_source_libvirt_network.go make 'option_value' for dnsmasq optional (#960) 2023-01-02 14:10:38 +01:00
data_source_libvirt_network_test.go make 'option_value' for dnsmasq optional (#960) 2023-01-02 14:10:38 +01:00
data_source_libvirt_node_device_info.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
data_source_libvirt_node_device_info_test.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
data_source_libvirt_node_devices.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
data_source_libvirt_node_devices_test.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
data_source_libvirt_node_info.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
data_source_libvirt_node_info_test.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
disk_def.go lint cleanups 2023-01-02 02:27:19 +01:00
disk_def_test.go support local cdroms 2017-12-01 15:23:31 +01:00
domain.go Mark disk wwn and nvram arguments as computed 2024-03-19 22:40:47 +01:00
domain_def.go if no machine is set, use default types depending on the arch (#1014) 2024-03-22 00:23:42 +01:00
domain_def_test.go Dont print debug info it tests are ok 2017-11-14 13:15:13 +01:00
helpers_test.go lint cleanups 2023-01-02 02:27:19 +01:00
libvirt_network_mock_test.go port - some missing libvirtc uses 2021-06-28 18:32:13 +02:00
network.go make 'option_value' for dnsmasq optional (#960) 2023-01-02 14:10:38 +01:00
network_def.go lint cleanups 2023-01-02 02:27:19 +01:00
network_def_test.go Rework NetworkUpdate workaround (#950) 2022-07-30 16:01:49 +02:00
network_dns.go Fix DNS enabled behavior (#993) 2023-10-11 23:59:10 +02:00
network_routes.go lint cleanups 2023-01-02 02:27:19 +01:00
pool.go lint cleanups 2023-01-02 02:27:19 +01:00
provider.go feat: added or data sources to extract node and device information (#1042) 2023-12-28 14:14:05 +01:00
resource_libvirt_cloud_init.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_cloud_init_test.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_coreos_ignition.go refactor code to start getting rid of resource exist functions 2023-01-01 13:30:14 +01:00
resource_libvirt_coreos_ignition_test.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_domain.go if no machine is set, use default types depending on the arch (#1014) 2024-03-22 00:23:42 +01:00
resource_libvirt_domain_test.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_linux_test.go port to v2 sdk (#969) 2022-10-08 13:13:28 +02:00
resource_libvirt_network.go lint clean: deactivate new-from-rev in golangci-lint config 2023-01-02 12:53:26 +01:00
resource_libvirt_network_test.go make 'option_value' for dnsmasq optional (#960) 2023-01-02 14:10:38 +01:00
resource_libvirt_pool.go refactor code to start getting rid of resource exist functions 2023-01-01 13:30:14 +01:00
resource_libvirt_pool_test.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_volume.go lint cleanups 2023-01-02 02:27:19 +01:00
resource_libvirt_volume_test.go lint cleanups 2023-01-02 02:27:19 +01:00
timeout.go lint cleanups 2023-01-02 02:27:19 +01:00
utils.go lint cleanups 2023-01-02 02:27:19 +01:00
utils_domain_def.go if no machine is set, use default types depending on the arch (#1014) 2024-03-22 00:23:42 +01:00
utils_domain_def_test.go if no machine is set, use default types depending on the arch (#1014) 2024-03-22 00:23:42 +01:00
utils_libvirt.go port - volumes 2021-06-28 18:32:13 +02:00
utils_libvirt_test.go use short if where possible 2021-11-28 12:45:17 +01:00
utils_net.go gomnd lint 2023-01-02 12:43:46 +01:00
utils_net_test.go lint cleanups 2023-01-02 02:27:19 +01:00
utils_test.go Adjust generated dhcp to match libvirt limitation of max 65535 addresses 2020-07-05 17:21:33 +02:00
utils_volume.go reintroduce buffer in image copier 2023-01-02 13:07:15 +01:00
utils_volume_test.go simplify colume uploader code 2023-01-02 12:28:45 +01:00
utils_xslt.go lint cleanups 2023-01-02 02:27:19 +01:00
utils_xslt_test.go port to v2 sdk (#969) 2022-10-08 13:13:28 +02:00
volume.go lint cleanups 2023-01-02 02:27:19 +01:00
volume_def.go lint cleanups 2023-01-02 02:27:19 +01:00
volume_def_test.go Dont print debug info it tests are ok 2017-11-14 13:15:13 +01:00
volume_image.go lint clean: deactivate new-from-rev in golangci-lint config 2023-01-02 12:53:26 +01:00
volume_image_test.go simplify colume uploader code 2023-01-02 12:28:45 +01:00