[Packer] Fix anka packer template (#5778)

* Fix anka packer template

Fix indentation

Use sources

* Update boostrap path
This commit is contained in:
Aleksandr Chebotov
2022-06-20 18:40:42 +02:00
committed by GitHub
parent 2f3323ba68
commit ceb7831e50
2 changed files with 15 additions and 10 deletions

View File

@@ -70,11 +70,11 @@ build {
} }
provisioner "file" { provisioner "file" {
destination = "image-generation/" destination = "image-generation/"
sources = [ sources = [
"./provision/assets", "./provision/assets",
"./tests", "./tests",
"./software-report", "./software-report",
"./helpers" "./helpers"
] ]
} }
provisioner "file" { provisioner "file" {
@@ -213,7 +213,10 @@ build {
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
} }
provisioner "shell" { provisioner "shell" {
script = "./provision/core/toolset.ps1" scripts = [
"./provision/core/toolset.ps1",
"./provision/core/configure-toolset.ps1"
]
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}" execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
} }
provisioner "shell" { provisioner "shell" {

View File

@@ -64,15 +64,17 @@ build {
"source.veertu-anka-vm-clone.template" "source.veertu-anka-vm-clone.template"
] ]
provisioner "shell" { provisioner "shell" {
inline = "mkdir ~/image-generation" inline = [
"mkdir ~/image-generation"
]
} }
provisioner "file" { provisioner "file" {
destination = "~/image-generation/" destination = "image-generation/"
source = [ sources = [
"./provision/assets", "./provision/assets",
"./tests", "./tests",
"./software-report", "./software-report",
"./helpers" "./helpers"
] ]
} }
provisioner "file" { provisioner "file" {
@@ -98,7 +100,7 @@ build {
} }
provisioner "file" { provisioner "file" {
destination = "bootstrap" destination = "bootstrap"
source = "./provision/bootstrap-provisioner" source = "./provision/bootstrap-provisioner/"
} }
provisioner "file" { provisioner "file" {
destination = "image-generation/toolset.json" destination = "image-generation/toolset.json"
@@ -135,7 +137,7 @@ build {
} }
provisioner "shell" { provisioner "shell" {
script = "./provision/core/reboot.sh" script = "./provision/core/reboot.sh"
execute_command = execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}" execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
expect_disconnect = true expect_disconnect = true
} }
provisioner "shell" { provisioner "shell" {
@@ -218,7 +220,7 @@ build {
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}" execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
} }
provisioner "shell" { provisioner "shell" {
scripts = "./provision/core/delete-duplicate-sims.rb" script = "./provision/core/delete-duplicate-sims.rb"
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}" execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
} }
provisioner "shell" { provisioner "shell" {