mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Auto generate VNC password randomly.
This commit is contained in:
parent
2337515b66
commit
f62cda8212
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/serverlove/util/compute/password_generator'
|
||||
|
||||
module Fog
|
||||
module Compute
|
||||
|
@ -60,7 +61,10 @@ module Fog
|
|||
def self.defaults
|
||||
# TODO: Document default settings.
|
||||
# Note that VNC password standards are strict (need explaining)
|
||||
{ 'nic:0:model' => 'e1000', 'nic:0:dhcp' => 'auto', 'vnc' => 'auto', 'vnc:password' => 'QXBwKEKQ', 'smp' => 'auto' }
|
||||
{ 'nic:0:model' => 'e1000', 'nic:0:dhcp' => 'auto',
|
||||
'smp' => 'auto', 'vnc' => 'auto',
|
||||
'vnc:password' => Fog::Compute::Serverlove::PasswordGenerator.generate
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue