Changed to finding template by id instead of name
This commit is contained in:
14
README.md
14
README.md
@@ -37,9 +37,9 @@ proxmox-template-clone/
|
||||
|
||||
- **Proxmox cluster** with token-based API authentication
|
||||
- **Jenkins server** with Ansible installed
|
||||
- **Pre-built templates:**
|
||||
- `ubuntu24vm` - Ubuntu 24 VM template
|
||||
- `ubuntu24lxc` - Ubuntu 24 LXC template
|
||||
- **Pre-built templates** (referenced by VMID):
|
||||
- VM template (VMID: 133)
|
||||
- LXC template (VMID: 109)
|
||||
- **Storage:** `local-lvm` backend for VM/LXC disks
|
||||
|
||||
### Jenkins Configuration
|
||||
@@ -123,9 +123,11 @@ Modify available nodes in the `Jenkinsfile` parameters section.
|
||||
|
||||
### Templates
|
||||
|
||||
Update template names in the respective role task files:
|
||||
- [roles/proxmox_vm/tasks/main.yml](roles/proxmox_vm/tasks/main.yml)
|
||||
- [roles/proxmox_lxc/tasks/main.yml](roles/proxmox_lxc/tasks/main.yml)
|
||||
Template VMIDs are configured in the Jenkinsfile environment section:
|
||||
- `VM_TEMPLATE_ID` - VMID of the VM template (currently: 133)
|
||||
- `LXC_TEMPLATE_ID` - VMID of the LXC template (currently: 109)
|
||||
|
||||
Update the values in the `environment` block of the Jenkinsfile to use different templates.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user