Thanks for replying. That is about what I expected. Did you happen to
mess with WinRM instead of ssh? Or is foreman too tied to ssh?
Hi,
I apologize for being silent - I did no have a chance to finalize the
solution …I was quite busy last few months.
The solution I’ve tried worked fine … up to some point. I’m pretty sure
someone will be able to finalize it.
So, Foreman VM template provisioning and finish scripts were designed for
Linux/Unix systems with an SSH server starting by default.
Also Foreman uses Linux “scp” command to transfer ready finish script to
a new server - Cygwin has “scp” command and lucky it compatible with
Foreman.
So, instead of changing Foreman code I decided to mimic a Linux
environment in a Windows Server VMWare template.
The template Windows Server must have:
-
Cygwin installed - https://www.cygwin.com/
-
Cygwin SSHD service configured - http://www.noah.org/ssh/
cygwin-sshd.html
2.1) SSHD server *must be *starting when Windows starts
- Puppet Agent For Windows must be installed
Foreman server must have a finish shell script associated with Windows OS
or environment, etc…
This Foreman finish template for Windows should contain Windows
commands to configure all aspects of provisioning server - i.e. IP
addresses, DNS servers, gateways, etc…
Sorry I’ve lost the Foreman finish template for Windows I’ve made - so
you will need to figure all necessary commands by yourself:
#!/bin/bash
cmd.exe /c “command line 1 - change IP address…”
cmd.exe /c “command line 2 - chage default gateway…”
*cmd.exe /c “command line 3 - change DNS servers…” *
cmd.exe /c “command line 4 - change default gateway…”
cmd.exe /c “command line 5 - configure Puppet Agent…”
cmd.exe /c “command line 6 - do something else…”
…
…
# Disable (or delete) Cygwin SSH server - if you won’t need it in the
future"
cmd.exe /c “sc config sshd start= disabled”
# you can even schedule wiping out of Cygwin folder if you want…
reboot new Windows server…
*cmd.exe /c “shutdown.exe /r /t 0” *
You have to program all
On Wednesday, June 4, 2014 at 5:39:27 AM UTC-7, Alexandre Barth wrote:
Hello !
I’m using VmWare. With Foreman 1.5.0, we can now deploy hosts from
templates, but it seems to be designed for linux hosts as we have to
provide ssh information… I deploy my linux hosts using PXE and TFTP, and
i was really waiting for this feature for windows hosts.
I tried to deploy an windows host with the new feature, it works,
leaving blank the ssh informations fields, but something is missing : the
ability to choose a customization specification from vmware, which would
replace the ssh part for linux hosts.
Can this new feature be adapted for windows hosts plz ?
–
You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/mjzYP0ZCO98/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘foreman-users%2Bunsubscribe@googlegroups.com’);>
.
To post to this group, send email to foreman-users@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘foreman-users@googlegroups.com’);>.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.