Commit Graph

330 Commits (774a168957f14cedc2dd67b9bb2ea329fcd5d294)

Author SHA1 Message Date
Megan Marsh 0dfb3cc56f replace some bespoke google auth code with code from golang's oauth2 library
7 years ago
Megan Marsh c03c3f4410 replace duplicate commHost functions with a single communicator helper that checks for ssh_host and does a statebag lookup for a given key
7 years ago
Megan Marsh eb8c74bf85 allow ssh_host config option to override host logic for all builders
7 years ago
Megan Marsh ad8a88e366 allow ssh_host to override the host ip gathered from the instance for GCP builder
7 years ago
Adrien Delorme a3e3c313a9 docs: use partials in googlecompute after master merge
7 years ago
Adrien Delorme 6e3dc1aa9a Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Pratyush singhal 92af5847a7 refactor: replace *packer.MultiError from type signature of createInstanceMetadata with generic error interface
7 years ago
Pratyush singhal 6ce6bd8ad3 refactor: add multiError in createInstanceMetadata method to capture multiple errors
7 years ago
Pratyush singhal 4a369b4ef1 chore: add test for MetadataFiles option
7 years ago
Pratyush singhal 99a3e9cf0a chore: update tests for createInstaceMetadata
7 years ago
Pratyush singhal 529dff0abb refactor: add error handling in createInstanceMetadata method
7 years ago
Adrien Delorme 4399684372 make fmt autogenerated docs
7 years ago
Pratyush singhal 1e1af35341 refactor: replace userdata_files with generic metadata_files map
7 years ago
Pratyush singhal 3845186c4c feat: add feature to import user-data from a file
7 years ago
Adrien Delorme e6cbb013ba add // go:generate struct-markdown to all previously edited files
7 years ago
Adrien Delorme f1917edd34 generate the comments for config struct of builders scraping doc website
7 years ago
krisko e96bda6466
Remove config interface. Make CreateImage function to accept config as list of config fields
7 years ago
krisko f1e9664012
Googlebuilder: Add image key encryption
7 years ago
krisko 9b39e3f928
GCP builder add image encryption support
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme a4bf94dd3c change Builder to be passed a context for cancellation
7 years ago
Adrien Delorme 9836dad0c9 introduce the clean_resource_name to clean image names and deprecate the old ones
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Murcurio 60c7d22ffb
Change metadata url to FQDN
7 years ago
Arnaud Dezandee 91d2cb8c83
googlecompute-import: add service accounts
7 years ago
Mikhail Ushanov 536252683e builders: reuse private key file reading function
8 years ago
Matthew Aynalem 28eff7303e builder/googlecompute: validate startup_script_file exists
8 years ago
Adrien Delorme b2e2d3b008 removed unused processPrivateKeyFile func & tests
8 years ago
Adrien Delorme 146db5667a fix intermitent TestProcessPrivateKeyFile_encrypted failure
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Megan Marsh a0edaf6c46 Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
8 years ago
Megan Marsh d00b815c06 Update public google cloud image projects
8 years ago
Adrien Delorme 157691c710 remove unecessary get/pug config in tests; those are being referenced
8 years ago
Adrien Delorme 94d5bb7a3b revert test changes of builder/googlecompute/step_create_ssh_key_test.go
8 years ago
Adrien Delorme 050a98e8bb googlecompute builder: use config from statebag
8 years ago
Adrien Delorme 4982627dd2 builder.gcp: use c.Comm for ssh
8 years ago
Adrien Delorme d49ad12895 update gcp ssh tests
8 years ago
Adrien Delorme 663c8134ef GCP: put ssh public/private key in config
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Megan Marsh 1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Adrien Delorme b038cd10f5 GCP: Allow to set MinCpuPlatform
8 years ago
Adrien Delorme e37f126cf1 update gcp google.golang.org/api/compute/v1/
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
deepuashokan85 10f118b14c
Update driver_gce.go
8 years ago
M. Marsh e90c87f885
Merge pull request #6210 from hashicorp/add_windows_sql_cloud_to_defaults
8 years ago
DanHam 5642f8cb01
Remove tmp files created by builder/googlecompute tests
8 years ago
Megan Marsh ed6d999b1f add windows-sql-cloud to the list of projects to check for an image name
8 years ago
Richard Nienaber db65c99bf4 update code based on master and update docs
8 years ago
Richard Nienaber ec6f8264bf fix winrm password access in google compute
8 years ago
Seth Vargo b17b333e29
Add a common package for specifying useragent and adopt that everywhere
8 years ago
Megan Marsh 414dd80e61
Merge pull request #6013 from jsoref/spelling
8 years ago
Josh Soref b81672c906 spelling: valid
8 years ago
Josh Soref c563ef0797 spelling: structure
8 years ago
Evan Brown 7eda44d28c builder/googlecompute: disambiguate disable_default_service_account
8 years ago
Evan Brown 4a2c124ea2 builder/googlecompute: Optionally disable service account
8 years ago
Christophe Courtaut 16882c1252 builder/googlecompute: Go code formatting
8 years ago
Christophe Courtaut 4befdce47e builder/googlecompute: Adds ability to specify service account
8 years ago
Petr Hosek eaef2961cb Support specifying licenses for Google Compute images
8 years ago
Matthew Hooker 8cd403425e
test fixes WIP
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker ebe995c0ff
run goimports
8 years ago
Daniel Hess f0299ba713 Adding GCE container optimized os image project
9 years ago
Evan Brown 13e0c232d4 builder/googlecompute: Test networking interpolation
9 years ago
Evan Brown f2fed94a71 builder/googlecompute: Derive network and subnetwork IDs locally
9 years ago
Evan Brown bada7b73c1 builder/googlecompute: Selectively set default network
9 years ago
Evan Brown 1b3eb1c34d builder/googlecompute: Set default network_project_id
9 years ago
Megan Marsh 4721b48c70 add a couple of extra tests and reword documentation
9 years ago
Atsushi Ishibashi c3a00993d0 Don't truncate and replace with 'a', update docs
9 years ago
Atsushi Ishibashi 3e68f1c505 Change first and last character when it doesn't match
9 years ago
Atsushi Ishibashi 210dd08326 Change args of NewConfig
9 years ago
Atsushi Ishibashi 5310d5629b Modify clean_image_name not defined error
9 years ago
Atsushi Ishibashi 3600924e59 Rename files
9 years ago
Atsushi Ishibashi 2da4e4c31d Change func name
9 years ago
Atsushi Ishibashi caa6c9bf22 Add clean_ami_name for gcp
9 years ago
Peter Mounce 7cbd57faa6 Filling it back
9 years ago
Peter Mounce 15a456750b CI as compiler!
9 years ago
Peter Mounce 2239d55fdb Add test coverage
9 years ago
Peter Mounce 5bcb0644c3 Using CI for compilation errors because am on Windows
9 years ago
Peter Mounce ac8eedf171 Introduce a new configuration parameter instead
9 years ago
Peter Mounce e579b947b1 Fix signature that I missed
9 years ago
Peter Mounce 8789ae72e8 Make the googlecompute builder label the resulting image.
9 years ago
Patrick Decat a7283f2281 Add support for setting labels on GCE instance
9 years ago
Megan Marsh 3974976518 Merge pull request #5137 from vilkaspilkas/f-googlecompute-accelerator
9 years ago
Matthew Hooker 9b88ec975a Merge pull request #5227 from hashicorp/fix-flaky-test
9 years ago
Megan Marsh 3f7c090f3b fix test that flaked in a travis build recently
9 years ago
Dan Isla 00797cc23b Update to how zone is extracted from metadata
9 years ago
Saulius Grusnys 5ebc96744d Accelerator api is now GA, switching back to v1 from v0.beta
9 years ago
Saulius Grusnys b6783a1180 Adding sanity checks in Prepare when adding accelerators and tests for accelerator configuration
9 years ago
Saulius Grusnys 200113b8c1 Switch googlecompute builder to use compute/v0.beta and add support for accelerator api
9 years ago
Rickard von Essen f230f00726 googlecompute: Allow using URL's for network and subnetwork
9 years ago
Matthew Hooker 94d7a4ce8d
post-processor/vagrant-cloud: try upload once
9 years ago
Matthew Hooker ee5d13611f
update ssh client usage for new crypto/ssh version
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker bce03492d9
remove references to ServiceAccountEmail
9 years ago
Rickard von Essen 77dc8b84c1
builder/googlecompute: Revert to using default service account
9 years ago
Matthew Hooker d1b20b3d9c
remove a bunch of dead code.
9 years ago
Rickard von Essen eac5b6392d googlecompute: Correct values for on_host_maintenance
9 years ago
Matthew Hooker 2381bfa8ad Merge pull request #4518 from AlexLov/bugfix_image_family
9 years ago
Dimitri Rudnev 2009fcd9df OnHostMaintenance, googlecompute updating documenation , additional option for validation and setting defaults
9 years ago
Dimitri Rudnev bab590c177 Adding OnHostMaintenance option for googlecompue builder
9 years ago
Alex Lov cfa8f8c215 fix bug of creating image from custom image_family
9 years ago
Troy Toman 12f279fa79 add ability to set a different project-id for a network in the googlecloud builder
10 years ago
Rickard von Essen 6947a74151 Merge pull request #4162 from classmarkets/google-source-image-family
10 years ago
Rickard von Essen d18da5e679
Added printout of select source_image
10 years ago
Rickard von Essen 96e9a8e6e9 Removed default value for ssh_username
10 years ago
Peter Schultz bcb319640e builder/googlecompute: support source image family
10 years ago
Matthew Hooker 5d0892bd37 Merge pull request #4101 from lwander/f-googlecompute-ssh-private-key-file
10 years ago
Lars Wander 583e341ae7 builder/googlecompute: Store empty public_key
10 years ago
Lars Wander 7f474d8f78 builder/googlecompute: Tests added
10 years ago
Scott Crunkleton 85210afe92 googlecompute: conditionally omit the wait for startup script step if no startup script is provided.
10 years ago
Lars Wander d70e783455 builder/googlecompute: Use ssh_private_key_file if provided
10 years ago
Matthew Hooker d920b3fbf4 run gofmt
10 years ago
YAMADA Tsuyoshi da7d317e46 googlecompute: Run instance with custom scopes
10 years ago
Rickard von Essen 924c0bc461 Merge pull request #3932 from pieter-lazzaro/googlecompute-createpassword
10 years ago
Rickard von Essen c0a4067151
builder/googlecompute: Print out WinRM password in debug mode.
10 years ago
Matthew Hooker a8e57d83d2 gofmt project.
10 years ago
Matthew Hooker a9abe43325 builder/amazon: add retry login when creating tags.
10 years ago
Pieter Lazzaro 5db1c1f503 Create a password for windows instances when using WinRM communicator and no password is provided.
10 years ago
Valentin Tjoncke ef1517064c googlecompute/builder: Always show message when checking image exists
10 years ago
nouney 4605f9559f Fix unreachable code
10 years ago
Valentin Tjoncke 6f545af7f7 builder/googlecompute: -force
10 years ago
Rickard von Essen 9ce70bfce0 Merge pull request #3338 from yuki-takeichi/gce-nvme
10 years ago
Yuki Takeichi 04078c5c48 Enable to select NVMe images for googlecompute builder
10 years ago
Orivej Desh 6762965696 Add -on-error command line argument to allow preserving artifacts on builder errors
10 years ago
Scott Crunkleton b54b82d3ac Some googlecompute fixes and cleanup. Addresses https://github.com/mitchellh/packer/issues/3829. Changes:
10 years ago
Ingo Gottwald 0c1051a017 GCE builder: Switch to google.DefaultClient (#3655)
10 years ago
crunk1 55b5a45ae4 Created googlecompute-export post-processor. Modified the googlecompute builder to pass a few configuration values to its resulting artifact. These values can then be used in googlecompute-export post-processor.
10 years ago
Evan Brown a5c598264f builder/googlecompute: Support provisioning VM without external IP address
10 years ago
Scott Crunkleton 7190fbeed8 Adding support for googlecompute startup scripts.
10 years ago
Chris Bednarski 2f0e1218dc Move regexp to package scope so it will be validated by the compiler instead of at runtime
10 years ago
Peter Schultz a99a417db9 builder/googlecompute: validate image_family
10 years ago
Peter Schultz 8546aafec5 builder/googlecompute: support image family
10 years ago
Christopher Boumenot 2d1347c1ec Insert Packer's version into the User Agent. (#3465)
10 years ago
Chris Bednarski 1b1bbb604e Merge branch 'googlecompute-disk-type' of https://github.com/meatballhat/packer into f-google-disk-type
10 years ago
Chris Bednarski 4458de4ea0 Reformat
10 years ago
Matt Morrison daf57c7632 Add tests and documentation for subnetwork attribute
10 years ago
Matt Morrison 942aaa7a85 Add support for Google subnetworks. Closes #3062. Fixes an issue with how packer populates instances metadata. Closes #3181
10 years ago
Ryan Uber 7732cf45a0 builder/googlecompute: fix image name defaults
10 years ago
Caius Howcroft 069c3c21b1 Added support for GCE external static IPs
10 years ago
YAMADA Tsuyoshi 18d79cfb3d added test
11 years ago
YAMADA Tsuyoshi afd314959b supported `preemptible` in googlecompute builder
11 years ago
Dan Buch cac93d311c builder/googlecompute: accept disk type, default pd-standard
11 years ago
Dave Cunningham 1fea962a3a account_file can be verbatim JSON string
11 years ago