@@ -398,24 +398,50 @@ sequenceDiagram
398398| ` TURINGPI_USERNAME ` | BMC username | - |
399399| ` TURINGPI_PASSWORD ` | BMC password | - |
400400| ` TURINGPI_ENDPOINT ` | BMC URL | ` https://turingpi.local ` |
401+ | ` TURINGPI_INSECURE ` | Skip TLS verification | ` false ` |
401402
402403---
403404
404405## File Structure
405406
406407```
407408terraform-provider-turingpi/
408- ├── main.go # Plugin entry point
409+ ├── main.go # Plugin entry point
409410├── provider/
410- │ ├── provider.go # Provider schema and config
411- │ ├── auth.go # Authentication logic
412- │ ├── helpers.go # Shared API helpers
413- │ ├── resource_power.go # Power control resource
414- │ ├── resource_flash.go # Firmware flash resource
415- │ └── resource_node.go # Combined provisioning resource
411+ │ ├── provider.go # Provider schema and config
412+ │ ├── auth.go # Authentication logic
413+ │ ├── helpers.go # Shared API helpers
414+ │ ├── cluster_helpers.go # Cluster provisioning utilities
415+ │ ├── ssh_client.go # SSH connection management
416+ │ ├── helm_client.go # Helm chart deployment
417+ │ ├── k8s_client.go # Kubernetes manifest client
418+ │ ├── kubeconfig.go # Kubeconfig utilities
419+ │ ├── k3s_provisioner.go # K3s installation logic
420+ │ ├── talos_provisioner.go # Talos provisioning via talosctl
421+ │ ├── data_source_about.go # BMC version info
422+ │ ├── data_source_info.go # BMC info (version, network, storage)
423+ │ ├── data_source_power.go # Node power status
424+ │ ├── data_source_sdcard.go # SD card storage info
425+ │ ├── data_source_uart.go # UART serial output
426+ │ ├── data_source_usb.go # USB routing config
427+ │ ├── resource_bmc_firmware.go # BMC firmware upgrade
428+ │ ├── resource_bmc_reboot.go # BMC reboot
429+ │ ├── resource_bmc_reload.go # BMC daemon reload
430+ │ ├── resource_clear_usb_boot.go # Clear USB boot status
431+ │ ├── resource_flash.go # Firmware flash
432+ │ ├── resource_k3s_cluster.go # K3s cluster (deprecated)
433+ │ ├── resource_network_reset.go # Network switch reset
434+ │ ├── resource_node.go # Combined node management
435+ │ ├── resource_node_to_msd.go # USB Mass Storage mode
436+ │ ├── resource_power.go # Node power control
437+ │ ├── resource_talos_cluster.go # Talos cluster (deprecated)
438+ │ ├── resource_uart.go # UART write
439+ │ ├── resource_usb.go # USB routing
440+ │ └── resource_usb_boot.go # USB boot mode
416441├── docs/
417- │ ├── index.md # Registry documentation
418- │ └── resources/ # Resource documentation
419- ├── examples/ # Usage examples
420- └── testing/ # Test configurations
442+ │ ├── index.md # Registry documentation
443+ │ ├── data-sources/ # Data source documentation
444+ │ └── resources/ # Resource documentation
445+ ├── examples/ # Usage examples
446+ └── .goreleaser.yml # Release configuration
421447```
0 commit comments