LoginSignup
0
0

More than 3 years have passed since last update.

Packerでitamae(HCL2)

Posted at
build {
  sources = ...

  provisioner "shell-local" {
    inline = [
      "echo '${build.SSHPrivateKey}' > /tmp/packer-session.pem",
      "bundle",
      "bundle exec itamae ssh -u ${build.User} -h ${build.Host} -i /tmp/packer-session.pem recipe.rb"
    ]
  }
}

bundle installしないといけないっぽい

その他: Port, User, Password, SSHPrivateKeyもbuildから取得できる
https://www.packer.io/docs/templates/engine

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0