-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/packer/template] Add Ubuntu 2204-1 VM Template Support (#170)
* patch(roles/minio.ops): refine logics for setup.ops * feat(backery/template): added ubuntu-2204-1 vm template support * patch(custom.packer.hcl): unset key encryption for minio role patch(packer/template/custom): comment out encryption key upload - optional feature
- Loading branch information
Showing
12 changed files
with
162 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
# Bake cn-ubuntu-2204-server | ||
|
||
- name: "Bake proxmox cn ubuntu 22.04.1 server" | ||
hosts: localhost | ||
become: yes | ||
|
||
vars_files: | ||
- ./vars/apt.yml | ||
- ./vars/maintenance.yml | ||
|
||
roles: | ||
- role: ./roles/apt.ops/set-sources.ops/ | ||
vars: | ||
release: "jammy" | ||
- role: ./roles/apt.ops/install-packages.ops/ | ||
vars: | ||
extra_packages: | ||
- neofetch | ||
|
||
- role: ./roles/maintenance.ops/key.ops/ | ||
|
||
- role: ./roles/proxmox.bootstrap/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packer-templates/playbooks/roles/minio.ops/templates/config.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "10", | ||
"aliases": { | ||
"minio": { | ||
"url": "{{ minio_remote_url }}", | ||
"accessKey": "{{ minio_access_key }}", | ||
"secretKey": "{{ minio_secret_key }}", | ||
"api": "s3v4", | ||
"path": "auto" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Bake ubuntu-2204-server | ||
|
||
- name: "Bake proxmox ubuntu 22.04.1 server" | ||
hosts: localhost | ||
become: yes | ||
|
||
vars_files: | ||
- ./vars/apt.yml | ||
- ./vars/maintenance.yml | ||
|
||
roles: | ||
- role: ./roles/apt.ops/update.ops/ | ||
- role: ./roles/apt.ops/install-packages.ops/ | ||
vars: | ||
extra_packages: | ||
- neofetch | ||
|
||
- role: ./roles/maintenance.ops/key.ops/ | ||
|
||
- role: ./roles/proxmox.bootstrap/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
# ../../roles/minio.ops/ | ||
remote_server: "http://10.178.0.9:9000" | ||
minio_remote_url: "http://10.178.0.9:9000" | ||
minio_access_key: "{{ lookup('env','MINIO_ACCESS_KEY')}}" | ||
minio_secret_key: "{{ lookup('env','MINIO_SECRET_KEY')}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"os": "l26", | ||
"cores": "20", | ||
"sockets": "1", | ||
"memory": "2048", | ||
"bridge": "vmbr2", | ||
"disk_type": "scsi", | ||
"disk_size": "10G", | ||
"disk_format": "raw", | ||
"disk_cache_mode": "writeback", | ||
"datastore": "sata-pool", | ||
"datastore_type": "directory", | ||
"cloud_init_storage_pool": "sata-pool", | ||
|
||
"iso": "sata-pool:iso/ubuntu-22.04.1-live-server-amd64.iso", | ||
|
||
"ssh_password": "packer", | ||
"ssh_username": "packer", | ||
"ssh_timeout": "60m", | ||
|
||
"http_directory": "http", | ||
|
||
"boot_command": [ | ||
"<esc><esc><esc><esc>e<wait>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"<del><del><del><del><del><del><del><del>", | ||
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/\"<enter><wait>", | ||
"initrd /casper/initrd<enter><wait>", | ||
"boot<enter>", | ||
"<enter><f10><wait>" | ||
] | ||
} |