Adrien Delorme
819329228a
Change back to make sure all durations are a time.Duration
...
It is simply the best/simplest solution and trying to prevent users from passing and integer here would be like opening a can of worms. Because:
* we cannot make mapstructure validate our duration string ( with an UnmarshalJSON func etc.)
* we cannot make mapstructure spit a string instead of a duration and packer will decode-encode-decode config.
* the hcl2 generated code asks for a string, so this will be enforced by default.
2019-10-31 16:12:07 +01:00
Adrien Delorme
bf3d9841c6
Force durations to be passed a strings
...
Before this commit it was possible to set a duration using an integer or a float. Go's time.Duration is an int64 internally an mapstructure will take advantage of this and load the number as a int64 but `1` means one ns which is unexpected/confusing. To avoid confusion and enforce readability this forces users to pass a string with a unit for a duration; ex "56s".
2019-10-31 11:47:19 +01:00
Adrien Delorme
078ba7c8c3
commit old code generation tool
...
for history
2019-10-15 12:56:42 +02:00
Adrien Delorme
4cb7c30987
Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
2019-08-21 16:44:23 +02:00
hbdgr
7d723b7c7b
builder/digitalocean: add snapshotTimeout option
2019-07-04 16:25:42 +02:00
Adrien Delorme
4399684372
make fmt autogenerated docs
2019-06-06 16:29:25 +02:00
Adrien Delorme
e6cbb013ba
add // go:generate struct-markdown to all previously edited files
2019-06-05 16:42:18 +02:00
Adrien Delorme
f1917edd34
generate the comments for config struct of builders scraping doc website
2019-06-05 16:42:17 +02:00
Megan Marsh
ff6a039d5b
replace scrubconfig with packer.LogSecretFilter.Set
...
filter winrm password from logs
Add new root-level packer template option, sensitive-variables, to tell us what user variables to mark sensitive.
2018-08-20 15:35:55 -07:00
Rickard von Essen
889c89ec79
Validate tags
2018-08-15 15:27:00 +02:00
Mike Zupan
11271ead59
Change name to tags
2018-07-30 07:55:06 -06:00
Mike Zupan
7081fe990b
Adding in droplet tags on creation
2018-07-30 07:52:40 -06:00
Lawrence
5509d0734b
Added ipv6 option for digitalocean builder
...
the ipv6 option is already part of the godo package
Updated documentation to reflect new feature
Closes: https://github.com/hashicorp/packer/issues/5533
2017-11-01 15:41:25 -04:00
Luke Farnell
8ed50608b1
add image transfer for DigitalOcean
2017-05-16 21:00:12 -07:00
Luke Farnell
5b7ec545c5
Added monitoring and updated godo
2017-04-08 15:52:57 -04:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Rickard von Essen
96e9a8e6e9
Removed default value for ssh_username
2016-11-17 22:30:34 +01:00
Michael Nikitochkin
343c594bb3
Added UserDataFile support for DigitalOcean builder config.
2016-09-28 15:00:57 +02:00
Vasiliy Tolstov
ec4e95493d
builder/digitalocean: add ability to specify api url
...
This is useful in case of using DigitalOcean compatibility api hosting.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-06 14:15:32 +00:00
Mitchell Hashimoto
84189f7a28
builder/*: properly save interpolation context
2015-06-22 09:22:42 -07:00
Mitchell Hashimoto
669f301881
builder/digitalocean: use helper/comm
2015-06-13 18:26:13 -04:00
Mark Peek
16320372d6
Make some builder config usage more consistent with other builders
2015-06-12 14:02:09 -07:00
Mitchell Hashimoto
3933cc3217
Merge pull request #2208 from mitchellh/b-do-user
...
builder/digitalocean: user data support [GH-2113]
2015-06-11 16:57:04 -04:00
Mitchell Hashimoto
dcf140f99f
builder/digitalocean: more robust wait for pending
2015-06-10 19:53:07 -07:00
Mitchell Hashimoto
5cfd26a0d3
builder/digitalocean: user data support [GH-2113]
2015-06-10 19:29:48 -07:00
Mitchell Hashimoto
5da56d2aa6
builder/digitalocean: image, region, etc. required
2015-06-10 18:54:51 -07:00
Mitchell Hashimoto
486c7e4ae6
builder/digitalocean: remove unused things
2015-06-10 14:07:24 -07:00
Mitchell Hashimoto
d9c48e82fb
builder/digitalocean: switch to new lib
2015-06-10 14:02:06 -07:00