Skip to content

Commit

Permalink
[Patch/packer-template] Add default ansible_become_pass (#211)
Browse files Browse the repository at this point in the history
* patch: updated config

* patch(packer-template): set ansible_become_pass
  • Loading branch information
piyoki authored Oct 3, 2022
1 parent 098a565 commit 28c427c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packer-templates/minio-custom-proxmox-packer-template.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ build {
clean_staging_directory = true
extra_arguments = [
# "--vault-password-file=/tmp/.vault_pass",
"--extra-vars \"ansible_user=packer\""
"--extra-vars", "\"ansible_user=packer ansible_become_password=packer\""
]
}

Expand All @@ -131,7 +131,7 @@ build {
role_paths = ["../ansible-playbooks/roles/"]
clean_staging_directory = true
extra_arguments = [
"--extra-vars \"ansible_user=packer\""
"--extra-vars", "\"ansible_user=packer ansible_become_password=packer\""
]
}

Expand Down
2 changes: 1 addition & 1 deletion packer-templates/proxmox-packer-template.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ build {
role_paths = ["../ansible-playbooks/roles/"]
clean_staging_directory = true
extra_arguments = [
"--extra-vars \"ansible_user=packer\""
"--extra-vars", "\"ansible_user=packer ansible_become_password=packer\""
]
}

Expand Down
44 changes: 44 additions & 0 deletions packer-templates/vars/kevin-pve-02-ubuntu-2204.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"os": "l26",
"cores": "32",
"sockets": "1",
"memory": "4096",
"bridge": "vmbr2",
"disk_type": "scsi",
"disk_size": "10G",
"disk_format": "raw",
"disk_cache_mode": "writeback",
"datastore": "nvme-pool-02",
"datastore_type": "directory",
"cloud_init_storage_pool": "nvme-pool-02",

"iso": "nvme-pool-02: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>"
]
}

0 comments on commit 28c427c

Please sign in to comment.