mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
Merge pull request #5534 from lisimia/digital_ocean_ipv6_option
Added option for ipv6 within the digitalocean builder
This commit is contained in:
commit
ac8bc522e0
3 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ type Config struct {
|
|||
|
||||
PrivateNetworking bool `mapstructure:"private_networking"`
|
||||
Monitoring bool `mapstructure:"monitoring"`
|
||||
IPv6 bool `mapstructure:"ipv6"`
|
||||
SnapshotName string `mapstructure:"snapshot_name"`
|
||||
SnapshotRegions []string `mapstructure:"snapshot_regions"`
|
||||
StateTimeout time.Duration `mapstructure:"state_timeout"`
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ func (s *stepCreateDroplet) Run(state multistep.StateBag) multistep.StepAction {
|
|||
},
|
||||
PrivateNetworking: c.PrivateNetworking,
|
||||
Monitoring: c.Monitoring,
|
||||
IPv6: c.IPv6,
|
||||
UserData: userData,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,9 @@ builder.
|
|||
- `monitoring` (boolean) - Set to `true` to enable monitoring
|
||||
for the droplet being created. This defaults to `false`, or not enabled.
|
||||
|
||||
- `ipv6` (boolean) - Set to `true` to enable ipv6
|
||||
for the droplet being created. This defaults to `false`, or not enabled.
|
||||
|
||||
- `snapshot_name` (string) - The name of the resulting snapshot that will
|
||||
appear in your account. This must be unique. To help make this unique, use a
|
||||
function like `timestamp` (see [configuration
|
||||
|
|
|
|||
Loading…
Reference in a new issue