remove default ssh_username from oracle classic builder, but add note in docs.

This commit is contained in:
Megan Marsh 2019-03-29 14:24:12 -07:00
parent 3aa0e51104
commit a84fc6bde9
2 changed files with 5 additions and 7 deletions

View File

@ -75,10 +75,6 @@ func NewConfig(raws ...interface{}) (*Config, error) {
if c.SSHSourceList == "" {
c.SSHSourceList = "seciplist:/oracle/public/public-internet"
}
// Use default oracle username with sudo privileges
if c.Comm.SSHUsername == "" {
c.Comm.SSHUsername = "opc"
}
if c.SnapshotTimeout == 0 {
c.SnapshotTimeout = 20 * time.Minute

View File

@ -87,9 +87,11 @@ builder. This builder currently only works with the SSH communicator.
list. If you don't provide one, Packer will provide a generic description.
- `ssh_username` (string) - The username that Packer will use to SSH into the
instance; defaults to `opc`, the default oracle user, which has sudo
privileges. If you have already configured users on your machine, you may
prompt Packer to use one of those instead. For more detail, see the
instance; required if using SSH. The default oracle user with sudo
privileges is `opc`, so you may set `ssh_username` to `opc` if you have not
yet configured users on your machine. If you have already configured users
on your machine, you may prompt Packer to use one of those instead. For
more detail, see the
[documentation](https://docs.oracle.com/en/cloud/iaas/compute-iaas-cloud/stcsg/accessing-oracle-linux-instance-using-ssh.html).
- `image_name` (string) - The name to assign to the resulting custom image.