-
Notifications
You must be signed in to change notification settings - Fork 0
Wrapping up powershell script #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…uctions within the README should direct the user to set an execution policy prior to this script being run.
…nd if not found create a new ssh key pair for the current user
README.md
Outdated
`Set-ExecutionPolicy Bypass` | ||
`./powershell-test.ps1` | ||
On Windows do the following: | ||
- open powershell as administrator set the system's security policy: `Set-ExecutionPolicy RemoteSigned` This allows scripts to be run locally while requiring scripts downloaded from the internet to be digitally signed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we just combine this with the command below? Just put it on same command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make that happen
webserver-windows.ps1
Outdated
# Create ssh key pair if it does not exist for a given user | ||
# gets env username : [Environment]::UserName | ||
# gets user's home path: $env:USERPROFILE | ||
$userName = [Environment]::UserName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you setting a variable here? Could you just do this inline in the conditional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm setting the variable above the conditional as it's called in the if and else clause (and also the cloud-init yaml file that I'm working on).
I'm also unfamiliar/uncertain of the scope of this variable but I'm hopeful that it will be available from the yaml file anyway.
…no longer requires admin privileges but only sets the execution policy for the current powershell session
…sociated keys along with the current user's username as the key/username to be passed to the multipass instance. I chose a separate key/username because most of us will have used our email/ssh combination when we set up SSH with github - I'd like to keep that separate/unchanged. Unsure of the scope of my powershell variables - afaik they are local/limited to the shell session Currently blocked by the lack of an IPv4 network address for our multipass instance, working on a network config or a command/flag to pass to multipass launch to set up a network extension. Looking up port forwarding via Virtualbox (unsure if this is sufficient)
No description provided.