Skip to content

add ssh option for all servers linux and windows#2

Closed
jackyalbo wants to merge 1 commit intomasterfrom
ssh_fix
Closed

add ssh option for all servers linux and windows#2
jackyalbo wants to merge 1 commit intomasterfrom
ssh_fix

Conversation

@jackyalbo
Copy link
Copy Markdown
Collaborator

No description provided.

@jackyalbo jackyalbo requested a review from morsh March 12, 2017 15:09
Copy link
Copy Markdown
Collaborator

@morsh morsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jackyalbo - I wrote some comments on the changes + it's a little hard to review since those changes include code structure changes, so in many of the changes I'm not sure if they're structure or logic.

var self = this;

self.login(function (err) {
self.login(err => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This format is not supported in the "declared" version of this repo (node 0.10 or something) so it has to be function (err) {...}

[Here and everywhere]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, ill fix

},
'createOption': 'Empty'
});
});
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove those lines?
Those lines enable adding multiple data disks when creating/updating a vm

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was for testing - but i don't want data disk by default? can we make it optional?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are optional:
if (options.storageDataDiskNames > 0) ...

'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-winrm-windows/makecert.exe',
'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-winrm-windows/winrmconf.cmd'
],
'commandToExecute': '[concat(\'powershell -ExecutionPolicy Unrestricted -file ConfigureWinRM.ps1 \',variables(\'hostDNSNameScriptArgument\'))]'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not clear - for windows you need an extension to enable remote connect - why not add this as part of the ARM deployment and create a separate deployment?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the thing is i want to use ssh instead of winRM... I changed this lines with ones that adds ssh support.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, sounds great, but this means two things:

  1. Would be better to add this using template.resources[vmIndex].resources = [{...
  2. For this to work E2E you'll need to change cloud-cd to only support ssh (for windows/linux) - but this is not in the scope of this repo

},
"protectedSettings": {
"storageAccountName": 'pluginsstorage',
"storageAccountKey": 'bHabDjY34dXwITjXEasmQxI84QinJqiBZHiU+Vc1dqLNSKQxvFrZbVsfDshPriIB+XIaFVaQ2R3ua1YMDYYfHw=='
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is for, but you can't add constant personal information like:
https://pluginsstorage.blob.core.windows.net/agentscripts/ssh.ps1
pluginsstorage
bHabDjY34dXwITjXEasmQxI84QinJqiBZHiU+Vc1dqLNSKQxvFrZbVsfDshPriIB+XIaFVaQ2R3ua1YMDYYfHw==

[Same for Linux]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are correct - my bad - I'll need to find public repo to use instead...

@jackyalbo jackyalbo closed this Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants