Skip to content

Conversation

@MickLesk
Copy link
Member

@MickLesk MickLesk commented Dec 1, 2025

✍️ Description

New library that simplifies Cloud-Init configuration for Proxmox VMs.

What it does

  • Automatically configures user accounts and secure passwords for new VMs
  • Sets up network (DHCP or static IP) with input validation
  • Imports SSH keys for passwordless access
  • Provides interactive dialogs for easy configuration
  • Saves credentials securely with cleanup reminder

Use case

When creating VMs, Cloud-Init handles first-boot configuration automatically - no manual login required. This library integrates that functionality into our VM scripts with a consistent user experience.

🔗 Related PR / Issue

Link: #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.
Introduces misc/cloud-init.func, a Bash library for configuring and managing Cloud-Init on Proxmox VMs. Provides functions for setup, interactive configuration, credential export, network settings, and status checks, supporting both automated and interactive workflows.
Adds IP/CIDR validation functions, improves credential file security, and refactors message handling for better script integration. Interactive configuration now validates user input for static IP and gateway. New utility functions for credential cleanup and improved documentation/examples are included.
@MickLesk MickLesk requested a review from a team as a code owner December 1, 2025 11:51
@github-actions github-actions bot added core new script A change that adds a new script labels Dec 1, 2025
@tremor021 tremor021 merged commit b0586e3 into main Dec 1, 2025
1 check passed
@tremor021 tremor021 deleted the cloud_init_helper branch December 1, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core new script A change that adds a new script

4 participants