saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.18k stars 5.48k forks source link

win.exe package for RH 6 #21256

Closed dhs-rec closed 8 years ago

dhs-rec commented 9 years ago

Hi,

while bootstrapping a Windows Server 2008R2 AWS instance via salt-cloud, the Salt Minion installer (2014.7.1) doesn't create the salt-minion service. OTOH, salt-cloud doesn't notice it's not there:

[INFO    ] Running command under pid 17978: 'winexe -U Administrator%secret_passwd //10.11.12.13 "sc stop salt-minion"'
[INFO    ] Running command under pid 17980: 'winexe -U Administrator%secret_passwd //10.11.12.13 "sc start salt-minion"'
[INFO    ] Salt installed on salt-cloud-test
[INFO    ] Created Cloud VM 'salt-cloud-test'

When running the installer manually, the service IS created, though.

Bye...

Dirk

rterbush commented 9 years ago

@twangboy and others, this issue is similar to one I have been battling, although I was having no problem deploying 2008 images. My problems were discovered when attempting to deploy 2012 R2 servers from a CentOS/RHEL master. An updated build of winexe to include current Samba4 features solved the problem. FWIW

twangboy commented 9 years ago

@rterbush Did you build that winexe package yourself or did you find one somewhere? Could you share what you did to get a more recent version of winexe on CentOS/RHEL?

rterbush commented 9 years ago

@twangboy I used this repo to build it myself.

https://github.com/juliogonzalez/winexe-rpm

Edit: it would make a lot of sense to me if saltstack just forked the winexe code and included the binary. It is a steep curve to get something working to manage Windows machines.

twangboy commented 9 years ago

I agree. Since we depend so heavily on it for salt-cloud with windows we should package it. I'll see what I can do to get that wheel rolling here.

@UtahDave @dmurphy18 ^^^^^

dmurphy18 commented 8 years ago

Building and using a new winexe worked on RH 6 from AWS spinning up 2012R2 Windows. Noted had to also install impact. Need to generate a python-impact package too, in conjunction with winexe since needed for this functionality too.

dmurphy18 commented 8 years ago

Running into issue building on RH 7 due to samba4 dependency, working the issue

rterbush commented 8 years ago

@dmurphy18 see this link above? Does that help?

https://github.com/juliogonzalez/winexe-rpm

dmurphy18 commented 8 years ago

@rterbush It is the one I am using. The problem is more samba4 support on RH 7. Trying a work-around for the issue now.

beardedeagle commented 8 years ago

The github repo linked above will not work with centos 7.2 and samba 4.2.* as is. I used this page to compile a binary from source:

http://rand0m.org/2015/08/05/winexe-1-1-centos-6-and-windows-2012-r2/

I am working on updating the juliogonzalez/winexe-rpm to reflect the changes need to be able to roll a rpm.

dmurphy18 commented 8 years ago

@beardedeagle Thanks for that information. I was in the midst of fixing up winexe for RH 7, when point release work intervened. Please let me know when your updates are finished and working

beardedeagle commented 8 years ago

@dmurphy18 Sorry for the delay, my kids kinda consume my weekends. The updates are finished and I have a installable winexe rpm on centos 7.2/samba 4.2.*. Running through some tests before I hand it over.

dmurphy18 commented 8 years ago

@beardedeagle Great news, but no need to rush, as I am in midst of release cycle and won't be able to get to anything till end of week. Thanks for the great work,

meggiebot commented 8 years ago

This will be fixed for RH 6 in the 2015.8.4 release this week