Merge pull request #448 from pcoder/task/3699/add_oneadmin_ssh_key
Task/3699/Added oneadmin ssh key by default to the created VM via DCL flow
This commit is contained in:
commit
c053c76186
2 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,7 @@ class OrderConfirmationView(DetailView):
|
|||
vm_id = manager.create_vm(
|
||||
template_id=vm_template_id,
|
||||
specs=specs,
|
||||
ssh_key=settings.ONEADMIN_USER_SSH_PUBLIC_KEY,
|
||||
vm_name="{email}-{template_name}-{date}".format(
|
||||
email=user.get('email'),
|
||||
template_name=template.get('name'),
|
||||
|
|
|
@ -504,6 +504,9 @@ OPENNEBULA_PORT = env('OPENNEBULA_PORT')
|
|||
# default value is /RPC2
|
||||
OPENNEBULA_ENDPOINT = env('OPENNEBULA_ENDPOINT')
|
||||
|
||||
# The public ssh key of the oneadmin user
|
||||
ONEADMIN_USER_SSH_PUBLIC_KEY = env('ONEADMIN_USER_SSH_PUBLIC_KEY')
|
||||
|
||||
# dcl email configurations
|
||||
DCL_TEXT = env('DCL_TEXT')
|
||||
DCL_SUPPORT_FROM_ADDRESS = env('DCL_SUPPORT_FROM_ADDRESS')
|
||||
|
|
Loading…
Reference in a new issue