Pratyush singhal
92af5847a7
refactor: replace *packer.MultiError from type signature of createInstanceMetadata with generic error interface
...
Signed-off-by: Pratyush singhal <[email protected] >
2019-06-11 21:01:26 +05:30
Pratyush singhal
6ce6bd8ad3
refactor: add multiError in createInstanceMetadata method to capture multiple errors
...
Signed-off-by: Pratyush singhal <[email protected] >
2019-06-11 20:09:14 +05:30
Pratyush singhal
529dff0abb
refactor: add error handling in createInstanceMetadata method
...
Signed-off-by: Pratyush singhal <[email protected] >
2019-06-11 16:36:16 +05:30
Pratyush singhal
1e1af35341
refactor: replace userdata_files with generic metadata_files map
...
Signed-off-by: Pratyush singhal <[email protected] >
2019-06-06 16:14:57 +05:30
Pratyush singhal
3845186c4c
feat: add feature to import user-data from a file
...
Signed-off-by: Pratyush singhal <[email protected] >
2019-06-06 11:28:59 +05:30
Adrien Delorme
c4f3dccc14
rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
2019-04-03 15:56:15 +02:00
Adrien Delorme
663c8134ef
GCP: put ssh public/private key in config
2018-08-29 14:40:32 +02:00
Adrien Delorme
b038cd10f5
GCP: Allow to set MinCpuPlatform
2018-08-21 10:09:30 +02:00
Evan Brown
4a2c124ea2
builder/googlecompute: Optionally disable service account
...
The ability to use a service account other than the default was
introduced in #5928 . This change adds to that by introducing the
'disable_default_service_account' config option. If true - and
'service_account_email' is not set - Packer will create a GCE VM
with no service account.
2018-03-07 20:53:26 -08:00
Christophe Courtaut
16882c1252
builder/googlecompute: Go code formatting
2018-02-22 17:19:13 +01:00
Christophe Courtaut
4befdce47e
builder/googlecompute: Adds ability to specify service account
...
This commit allows user to specify the service account they want
to associate with the virtual machine provisionned by setting
the service_account_email field in the config.
It allows to manage permissions of the instantiated VM properly,
using a service account that can be tied up to IAM roles and
permissions.
2018-02-22 17:19:13 +01:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Patrick Decat
a7283f2281
Add support for setting labels on GCE instance
2017-09-06 10:58:08 +02:00
Saulius Grusnys
200113b8c1
Switch googlecompute builder to use compute/v0.beta and add support for accelerator api
2017-07-17 15:39:41 +01:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
bce03492d9
remove references to ServiceAccountEmail
2017-04-03 11:22:00 -07:00
Matthew Hooker
2381bfa8ad
Merge pull request #4518 from AlexLov/bugfix_image_family
...
[googlecompute] fix bug of creating image from custom image_family
2017-02-21 10:58:23 -08:00
Dimitri Rudnev
bab590c177
Adding OnHostMaintenance option for googlecompue builder
2017-02-10 10:58:57 -08:00
Alex Lov
cfa8f8c215
fix bug of creating image from custom image_family
2017-02-08 22:50:19 +03:00
Troy Toman
12f279fa79
add ability to set a different project-id for a network in the googlecloud builder
2016-12-02 15:22:36 -06:00
Rickard von Essen
d18da5e679
Added printout of select source_image
2016-11-26 15:06:43 +01:00
Peter Schultz
bcb319640e
builder/googlecompute: support source image family
...
Closes #4100
2016-11-13 16:54:04 +01:00
Lars Wander
583e341ae7
builder/googlecompute: Store empty public_key
2016-11-03 12:49:09 -04:00
Lars Wander
d70e783455
builder/googlecompute: Use ssh_private_key_file if provided
...
This seemed to be missing from the googlecompute provider. Now if the
ssh_private_key_file is provided, that will be used in place of a temporary
key. I didn't update the googlecompute specific docs under `./website/`, since
this parameter is already documented under the communicators templates page.
2016-11-02 17:04:34 -04:00
YAMADA Tsuyoshi
da7d317e46
googlecompute: Run instance with custom scopes
2016-10-22 15:46:14 +09:00
Rickard von Essen
924c0bc461
Merge pull request #3932 from pieter-lazzaro/googlecompute-createpassword
...
GCE Windows instance password creation
2016-09-30 22:01:56 +02:00
Matthew Hooker
a8e57d83d2
gofmt project.
...
noticed many unrelated changes being added to patches because of gofmt.
ran `find . -not -path "./vendor/*" -name "*.go" -exec gofmt -w {} \;`
2016-09-29 14:13:06 -07:00
Pieter Lazzaro
5db1c1f503
Create a password for windows instances when using WinRM communicator and no password is provided.
2016-09-27 18:42:34 -04:00