renaming public_ssh_port to public_port
This commit is contained in:
parent
d90dfc096a
commit
befdb59da6
|
@ -38,7 +38,7 @@ type Config struct {
|
|||
Network string `mapstructure:"network"`
|
||||
Project string `mapstructure:"project"`
|
||||
PublicIPAddress string `mapstructure:"public_ip_address"`
|
||||
PublicSSHPort int `mapstructure:"public_ssh_port"`
|
||||
PublicPort int `mapstructure:"public_port"`
|
||||
SecurityGroups []string `mapstructure:"security_groups"`
|
||||
ServiceOffering string `mapstructure:"service_offering"`
|
||||
PreventFirewallChanges bool `mapstructure:"prevent_firewall_changes"`
|
||||
|
|
|
@ -31,8 +31,8 @@ func (s *stepSetupNetworking) Run(_ context.Context, state multistep.StateBag) m
|
|||
return multistep.ActionContinue
|
||||
}
|
||||
|
||||
if config.PublicSSHPort != 0 {
|
||||
s.publicPort = config.PublicSSHPort
|
||||
if config.PublicPort != 0 {
|
||||
s.publicPort = config.PublicPort
|
||||
} else {
|
||||
// Generate a random public port used to configure our port forward.
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
|
|
@ -126,7 +126,7 @@ builder.
|
|||
connecting any provisioners to. If not provided, a temporary public IP
|
||||
address will be associated and released during the Packer run.
|
||||
|
||||
- `public_ssh_port` (number) - The fixed port you want to configure in the port
|
||||
- `public_port` (number) - The fixed port you want to configure in the port
|
||||
forwarding rule. Set this attribute if you do not want to use the a random
|
||||
public port.
|
||||
|
||||
|
|
Loading…
Reference in New Issue