Skip to content

Commit

Permalink
Don't auto-generate InitialAdminPassword if one is not supplied (#3).
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy committed Nov 8, 2017
1 parent 1c02878 commit affb35e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log - CloudControl plugins for Packer

## v0.1.3-beta8

* Don't auto-generate InitialAdminPassword if one is not supplied (DimensionDataResearch/packer-plugins-ddcloud#3).

## v0.1.3-beta7

* Don't send admin password when deploying a server if no password was provided (DimensionDataResearch/packer-plugins-ddcloud#3).
Expand Down
2 changes: 1 addition & 1 deletion CommonVars.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.1.3-beta7
VERSION = 0.1.3-beta8
VERSION_INFO_FILE = ./version-info.go

BUILDER_PLUGIN_NAMES = customerimage customerimage-import
Expand Down
4 changes: 0 additions & 4 deletions builders/customerimage/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ func (settings *Settings) Validate() (err error) {
)
}

if settings.InitialAdminPassword == "" {
settings.InitialAdminPassword = settings.UniquenessKey // NOT secure.
}

// Communicator defaults.
settings.CommunicatorConfig.SSHTimeout = 2 * time.Minute
settings.CommunicatorConfig.WinRMTimeout = 2 * time.Minute
Expand Down
3 changes: 2 additions & 1 deletion docs/plugins/builders/customerimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Can also be specified via the `MCP_PASSWORD` environment variable.
Set this to `true` if you're running packer from inside the MCP 2.0 network domain where the image will be created.
* `client_ip` (Optional) is your client machine's public (external) IP address.
Required if `use_private_ipv4` is not set.
* `initial_admin_password` (Optional) The administrator password to use when deploying the server from which the image will be created.
* `initial_admin_password` (Required unless image does not require) The administrator password to use when deploying the server from which the image will be created.

## Sample configurations

Expand All @@ -37,6 +37,7 @@ Required if `use_private_ipv4` is not set.
"vlan": "MyVLAN",
"source_image": "Ubuntu 14.04 2 CPU",
"target_image": "packertest",
"initial_admin_password": "sn4u$ag3$!",
"client_ip": "1.2.3.4",
"communicator": "ssh"
}
Expand Down

0 comments on commit affb35e

Please sign in to comment.