Skip to content

Conversation

@aramprice
Copy link
Member

@aramprice aramprice commented Aug 14, 2025

This PR should be rebased after #94 has been merged

For the packer-built stemcells install OpenSSH as part of VM setup, not
WinRM because executing `Add-WindowsCapability` via WinRM does not
appear to be allowed. So instead move the installation of OpenSSH.Server
to the various IaaS pre-boot scrips which are not executed via WinRM.

The installations of OpenSSSH.Server happens as follows:
- Azure: add a `custom_script` parameter to packer config
- AWS: added to `setup_winrm.txt`
- GCP: add to `setup-winrm.ps1` and use `sysprep-specialize-script-ps1`
- vSphere: TODO

[1] https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
For the stembuild-built stemcells install OpenSSH as part of VM setup,
not WinRM because executing `Add-WindowsCapability` via WinRM does not
appear to be allowed. So instead installation of OpenSSH.Server happens
via `govc guest.run` to the various IaaS pre-boot scrips which are not
executed via WinRM.

[1] https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
In order to validate installation of Microsoft's OpenSSH specs need to
check for a differently named firewall rule. This commit adds parameters
to Concourse tasks to specifiy the firewal rule name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant