Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.7.x] -debug argument does not pause between provisioners #11457

Closed
lmayorga1980 opened this issue Dec 17, 2021 · 2 comments · Fixed by #11537
Closed

[1.7.x] -debug argument does not pause between provisioners #11457

lmayorga1980 opened this issue Dec 17, 2021 · 2 comments · Fixed by #11537
Assignees
Labels
bug core Core components of Packer regression

Comments

@lmayorga1980
Copy link
Contributor

Overview of the Issue

In the past, the -debug used to pause between provisioners and now it executes all the provisioners without any pause.

Reproduction Steps

Add multiple provisioners and run packer in debug mode packer build -debug template.hcl

Packer version

packer 1.78

@nywilken nywilken added the core Core components of Packer label Dec 17, 2021
@nywilken
Copy link
Member

Thanks for reporting this issue we will take a look. As a temporary workaround you can use the breakpoint provisioner to pause provisioners. You can find an example below:

source "null" "example" {
  communicator = "none"
}

build {
  sources = ["source.null.example"]

  provisioner "shell-local" {
    inline = ["echo hi"]
  }
  provisioner "breakpoint" {
    disable = false
    note    = "this is a breakpoint"
  }
  provisioner "shell-local" {
    inline = ["echo hi 2"]
  }
}

@github-actions
Copy link

github-actions bot commented Mar 6, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug core Core components of Packer regression
Projects
None yet
2 participants