Commit Graph

307 Commits (653eb95bdbb44dfdbe991a316e09e5c6ec0ef5eb)

Author SHA1 Message Date
Megan Marsh 601007e3e2 pas data into provisioners well
6 years ago
Lars Lehtonen 3571c585bb builder/googlecompute: fix dropped error (#8385)
7 years ago
Megan Marsh 6c704f7046 Revert "fix template imports"
7 years ago
Megan Marsh 517834d528 Revert "Revert "remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name""
7 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 17c069baa5 builder.google:
7 years ago
Megan Marsh 0e70e0e5a4 fix template imports
7 years ago
Megan Marsh 44f91c9afc Revert "remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name"
7 years ago
Adrien Delorme d4600a7716 fix go imports
7 years ago
Megan Marsh 0026792d2f remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name
7 years ago
Lars Lehtonen ad860bf1a8
builder: remove deprecated context usage
7 years ago
Megan Marsh 3c14c50aba Allow user to real oauth token from properly configured Vault instance
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 35357616e0
Merge pull request #8112 from milescrabill/packer-googlecompute-validate-imagename
7 years ago
Miles Crabill 2bff60bac8
address review feedback
7 years ago
Miles Crabill 328baced05
add some test cases for image names
7 years ago
Miles Crabill c11a444f77
googlecompute: fail fast when image name is invalid, replace unusable characters w/ -'s
7 years ago
Megan Marsh a6e263adb6 don't fall for nil pointer dereference in account file
7 years ago
Adrien Delorme 2db109d55b Merge branch 'master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh fcef7e2d85 this timeout regularly flakes on Travis, I suspect because the instances running the tests are brutally underpowered. Increase the fudge factor.
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Mason, Elliot ee484f2dd9 Updated public gcp cloud images
7 years ago
Megan Marsh 7c93a5c51e code changed recently so that sometimes the conf is nil.
7 years ago
Megan Marsh a87ce366b3
Merge pull request #7835 from hashicorp/google_oauth
7 years ago
Megan Marsh 617fd18255 supply complete dummy data for googlecompute tests
7 years ago
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