Commit Graph

244 Commits

Author SHA1 Message Date
adb89dc4e8 refactor ♻️: Improve file transfer from LXC container to host using pct pull
Updated the 'copy' block to use pct pull instead of pct exec and rsync, simplifying the process and reducing unnecessary commands. This change improves the efficiency and readability of the template.
2025-11-09 06:27:42 +01:00
a64aa8d848 style 💎: Update file copy commands in Proxmox Debian template
Updated the commands for copying files from the LXC container to the host, ensuring consistency and accuracy in the template. The changes also improve readability and maintainability of the template.
2025-11-08 23:23:58 +01:00
ce7291bf3c refactor ♻️: Simplify copy file from LXC container to host using pct exec
Replaced multiple commands with a single pct exec command for copying files between the LXC container and the host, improving code readability and maintainability.
2025-11-08 23:18:02 +01:00
77a5f6276a feat : Add Debian template to Proxmox VM creation task
Added a new variable to the create_proxmox_debian_template.yml file to include the Debian template, allowing for more customization in the Proxmox VM creation process.
2025-11-08 23:03:01 +01:00
cc203b3c0b style 💎: Simplify shell commands in create_proxmox_debian_template.yml
Updated shell commands to use double quotes for command arguments, improving readability and consistency.
2025-11-08 22:57:30 +01:00
4fdef98933 style 💎: Update template variables for Proxmox Debian setup
Updated the `create_proxmox_debian_template.yml` file to remove unnecessary variables and improve code readability. The changes include updating the `lxc_password` and `lxc_id` variables, making it easier to manage container IDs.
2025-11-08 22:50:56 +01:00
4cc4ad48dc refactor ♻️: Improve LXC container file management in Proxmox template
Refactored the Proxmox template to use pct commands for mounting and unmounting the LXC container filesystem, simplifying the process of copying files between containers and the host. This change improves the overall efficiency and reliability of the template.
2025-11-08 22:43:40 +01:00
aaf121cd37 style 💎: Update rsync command for LXC container to Proxmox host
Updated the rsync command to use lxc-attach -n instead of just --rsh. This change ensures that the correct SSH connection is established when copying files from the LXC container to the Proxmox host.
2025-11-08 22:27:04 +01:00
18926c0047 feat : Add new task to create Proxmox Debian template
A new task was added to the existing script to import a Debian Cloud image as a Proxmox VM template, allowing for easier deployment of Debian-based systems on Proxmox servers.
2025-11-08 22:17:59 +01:00
b4817e7706 refactor ♻️: Update LXC build container and Debian cloud image template
Refactored the tasks to improve readability, added comments for better understanding, and updated variables with new values.
2025-11-08 22:06:59 +01:00
0c60000812 refactor ♻️: Improve template copy process for better performance
Updated the Ansible task to use rsync for copying templates between LXC containers and Proxmox hosts, reducing the need for qemu-img commands. This change also includes a warning flag to prevent potential issues with lxc-attach command.
2025-11-08 21:45:54 +01:00
cb32af2ad4 style 💎: Update template synchronization mode to push
Updated the Ansible synchronize task to use a push mode instead of pull, which will ensure that the latest template is deployed on each node.
2025-11-08 21:34:16 +01:00
ffbcb2b04f style 💎: Update template to remove unnecessary delegate_to option
Updated the create_proxmox_debian_template.yml file to remove the delegate_to option, as it is no longer required. This change improves the template's simplicity and consistency.
2025-11-08 21:25:31 +01:00
c9bf893582 feat : Create Proxmox Debian template with QEMU directory
Added a new task to create the QEMU template directory on the Proxmox host, ensuring it exists and has the correct permissions. This change enables the use of the QEMU template for creating Proxmox VMs.
2025-11-08 21:20:53 +01:00
b391cd6df9 style 💎: Update rsync mode and delegate to node0
Changed the rsync mode from push to pull, and added a delegate_to parameter to specify the target node for the rsync operation.
2025-11-08 21:18:30 +01:00
2ccfc0feb2 style 💎: Update rsync opts for correct path
Updated rsync options to use the correct rsync path. This change ensures that the rsync command is executed correctly when synchronizing files.
2025-11-08 20:26:37 +01:00
1b669f701c style 💎: Update Proxmox template path
Updated the destination path for the Proxmox template to '/var/lib/vz/template/iso/' from '/var/lib/vz/template/qcow2/'. This change ensures consistency with the expected location of the ISO file.
2025-11-08 20:14:47 +01:00
c2328a22e0 style 💎: Update rsync opts for proxmox template
Updated rsync options to use the correct path for proxmox templates, ensuring proper synchronization of files.
2025-11-08 19:58:18 +01:00
c89e916351 feat : Add Proxmox Debian template with sudo installation
Added a new task to the create_proxmox_debian_template.yml file to ensure sudo is installed during the template creation process. This change allows for more secure access to the system.
2025-11-08 19:52:35 +01:00
3b512c558b style 💎: Update synchronize command to use posix module
Updated the synchronize command in the Proxmox template task to use the ansible.posix.synchronize module, which is more compatible with Proxmox's file system. This change ensures that the template can be successfully synchronized on the target host.
2025-11-08 19:24:47 +01:00
f3a2e0ad0a style 💎: Update template sync mode to pull
Updated the Ansible synchronize task in the Proxmox Debian template to use a pull mode instead of push, which is more idiomatic for synchronizing files from the host to the container.
2025-11-08 18:52:34 +01:00
3c4b4a749d style 💎: Update rsync opts for sudo rsync path
Updated rsync options to include the sudo rsync path, ensuring secure file transfer. This change aligns with best practices for secure file management in Proxmox environments.
2025-11-08 18:01:42 +01:00
9fea674cae style 💎: Update shell commands to use template variables
Updated shell commands in the create_proxmox_debian_template.yml file to use template variables for consistency and reusability. This change allows for easier management of different templates without modifying the underlying command structure.
2025-11-08 17:47:44 +01:00
01331e6c80 style 💎: Update rsync options for proxmox template sync
Updated the rsync options to use 'push' instead of 'pull', ensuring proper synchronization of the template with Proxmox. This change improves the consistency and reliability of the template deployment process.
2025-11-08 17:39:40 +01:00
a69fdb50b0 style 💎: Simplify compressed image replacement
Updated the compressed image replacement step to remove unnecessary comments and shell commands. This change improves code readability and maintainability.
2025-11-08 17:36:49 +01:00
710c76d72b style 💎: Improve template creation process by adding QCOW2 image info and details
Added shell commands to display QCOW2 image information and details, making the template creation process more informative and user-friendly. This change improves the overall experience for users creating Proxmox Debian templates.
2025-11-08 17:34:23 +01:00
b87dca99bd style 💎: Improve template formatting and remove unused parameter
Updated the create_proxmox_debian_template.yml file to improve its readability by removing an unused parameter and adjusting indentation. This change enhances the overall code style without affecting its functionality.
2025-11-08 17:04:50 +01:00
7788d25612 style 💎: Update storage settings in proxmox template
Updated the `lxc_storage` variable from `hdd8t` to `local-lvm`, and added additional storage options (`--swap` and `--rootfs-size`) for more efficient resource allocation.
2025-11-08 16:59:29 +01:00
e42875a45d style 💎: Update image compression and shrinking steps
Updated the Ansible playbook to use virt-sparsify for compressing and shrinking images, replacing a previous qemu-img command. This change improves efficiency and reduces storage requirements.
2025-11-08 09:38:28 +01:00
06a73174e0 feat : Added container ID to Proxmox Debian template
Updated the create_proxmox_debian_template.yml file to include a new key for storing the container ID, which will be used in conjunction with the lxc_id variable.
2025-11-08 09:18:24 +01:00
1c6e71ccc3 feat : Add proxmox Debian template to create a new LXC build container
Updated the tasks/create_proxmox_debian_template.yml file to include a new parameter for combining SSH public keys into one file, allowing for easier management of multiple keys. This change enables more flexibility when creating LXC containers with Proxmox and Debian.
2025-11-08 09:14:57 +01:00
93b886c634 style 💎: Update template with new password field
Added a new parameter to the create_proxmox_debian_template.yml file to allow for a custom password when creating a Proxmox LXC instance. This change improves flexibility and security when deploying Debian-based images.
2025-11-08 09:10:28 +01:00
b0318b073a refactor ♻️: Improve wait for LXC container boot and IP assignment
Enhanced the wait logic for LXC container boot and IP assignment by adding a check for container status and handling different scenarios. This change improves the reliability of the script.
2025-11-08 09:05:36 +01:00
d855be2c80 feat : Add Proxmox LXC IP parsing with Ansible utils
Updated the 'wait for LXC to boot and get IP' task to use Ansible's ipaddr module for more accurate IP parsing, ensuring consistent results across different environments.
2025-11-08 09:02:30 +01:00
4561a64edb style 💎: Improve storage configuration in proxmox template
Updated the `--rootfs` option to use only `--storage` for more flexibility and readability. This change simplifies the configuration and makes it easier to manage different storage options.
2025-11-08 08:59:41 +01:00
2941c5fc31 style 💎: Update template for creating Proxmox Debian LXC instance
Updated the create_proxmox_debian_template.yml to reflect changes in the lxc_create condition and added a new task to customize the Debian cloud image inside LXC. This change ensures consistency with the latest best practices for LXC configuration.
2025-11-08 08:56:30 +01:00
099fce9672 feat : Added new Debian Cloud Template directly from Proxmox
Created a new playbook to build and customize a Debian cloud image inside an LXC container, which is then imported as a Proxmox VM template.
2025-11-08 08:46:23 +01:00
1f9158d404 chore 📦: Update setupacdc.yml to remove deprecated lxc option
Removed the 'lxc.cap.keep=sys_time' option from the setupacdc.yml file as it is no longer supported, ensuring compatibility with newer LXC versions.
2025-11-07 18:29:12 +01:00
5ed3c8fdac chore 📦: Update setupacdc.yml to include lxc capability
Added a new LXC capability to the setupacdc.yml file, enabling sys_time keep for improved security
2025-11-07 18:06:10 +01:00
f6b28b5d0c chore 📦: Update setupacdc.yml to use pip and apk for package installation
Updated the setupacdc.yml file to utilize pip and apk for installing dependencies, ensuring consistency in package management across different environments.
2025-11-07 05:45:04 +01:00
ced7303db5 chore 📦: Update setupacdc.yml to use apk for py3-pexpect installation
Switched from pip to apk for installing py3-pexpect, as apk is the recommended package manager on the target system.
2025-11-06 21:24:57 +01:00
b6469d162f chore 📦: Update setupacdc.yml to install pexpect via pip instead of apk
Switched from using apk to pip for installing pexpect, simplifying the dependency management process.
2025-11-06 21:22:13 +01:00
31a1d1ce46 chore 📦: Update setupacdc.yml to include pexpect installation for Ansible controller
Added a new task to install pexpect on the Ansible controller, ensuring it's installed via apk. This change is part of the setup process and will enable the use of pexpect in future tasks.
2025-11-06 21:19:31 +01:00
1d779c29f9 chore 📦: Update dependencies in requirements.yml
Added a new dependency to the project, specifically the Proxmox collection. This change will enable the use of Proxmox as a collection in our project.
2025-11-06 20:43:10 +01:00
992df9b010 chore 📦: Update dependencies in requirements.yml
Added new dependency to the project, updating the requirements.yml file with the latest version.
2025-11-06 20:41:39 +01:00
a95251745e style 💎: Update collection names and remove unnecessary newline characters
Updated the requirements.yml files to reflect the correct collection naming convention, removing unnecessary newlines and updating the src attribute for one of the collections.
2025-11-06 20:40:19 +01:00
11def78ede chore 📦: Update timezone setup in setupacdc.yml
Updated the timezone setup to use a named timezone instead of a community.general.timezone, which is no longer available. This change simplifies the configuration and makes it easier to manage different timezones.
2025-11-06 20:36:37 +01:00
04adf0dcde style 💎: Update requirements.yml with new collection
Updated the list of required collections in the project's configuration file to include the latest version of Proxmox. This change ensures that the project can be properly installed and configured on a Proxmox server.
2025-11-06 20:31:12 +01:00
b959a7beb1 chore 📦: Update requirements.yml
Updated the list of dependencies in requirements.yml to ensure compatibility with the latest version of the Proxmox community collection.
2025-11-06 20:27:07 +01:00
1384be1251 style 💎: Update requirements.yml
Updated the list of required dependencies for the project, removing the community.proxmox collection and adding community.general.
2025-11-06 19:42:02 +01:00