- From: AJ Christensen <
>
- To: chef <
>
- Subject: [chef] Re: Re: Re: Bootstrap windows server with knife ec2 server create?
- Date: Thu, 16 May 2013 21:37:07 +1200
Wow derp, right, Windows. No idea. sorry :(
--AJ
On 16 May 2013 21:14, Jeppe Nejsum Madsen
<
>
wrote:
>
Thanks for the quick feedback. A few comments:
>
>
>
@AJ, the chef-full template (unless some magic happens somewhere :-) seems
>
to be a bash script and is not found.
>
>
Specifying the full path to the windows-chef-client.msi.erb works, thanks.
>
This is not very intuitive though!
>
>
Now the instance launches and bootstrapping is starting, but fails with an
>
error
>
>
ec2-54-216-82-224.eu-west-1.compute.amazonaws.com CScript Error: Execution
>
of the Windows Script Host failed. (0x800A0007)
>
ec2-54-216-82-224.eu-west-1.compute.amazonaws.com Warning: Failed to
>
download "https://www.opscode.com/chef/download?p=windows&pv=2012&m=x86_64"
>
to "C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi"
>
ec2-54-216-82-224.eu-west-1.compute.amazonaws.com Warning: Retrying download
>
with PowerShell if available
>
ERROR: Failed to authenticate to
>
["ec2-54-216-82-224.eu-west-1.compute.amazonaws.com"] as Administrator
>
Response: Bad HTTP response returned from server (401).
>
>
I've seen this before (and mentioned elsewhere on the interwebs) and it
>
seems to be an issue with WinRM not being completely ready even if the port
>
is there. I've solved this in my own script by adding a delay between the
>
port being available and trying to execute the bootstrap. Not exactly
>
elegant....
>
>
>
/Jeppe
>
>
>
On Thu, May 16, 2013 at 10:33 AM, Chirag Jog
>
<
>
>
wrote:
>
>
>
> Hi Jeppe,
>
> The windows template is present in the knife-windows gem which also gets
>
> installed now. Check /User/jeppe/....../gems/knife-windows/.../
>
> Alternately it is available here also :
>
> https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/bootstrap/windows-chef-client-msi.erb
>
>
>
> The README should mention this though. I file a doc bug for it.
>
>
>
>
>
>
>
> Regards,
>
> Chirag Jog
>
> Chief Technology Officer,
>
> Clogeny Technologies | http://clogeny.com
>
> (M) 0091-9766619440 | Skype: chirag.jog
>
>
>
>
>
>
>
> On Thu, May 16, 2013 at 1:59 PM, Jeppe Nejsum Madsen
>
> <
>
>
> wrote:
>
>>
>
>> Ohai,
>
>>
>
>> I'm currently using a homegrown script to launch & bootstrap an EC2
>
>> windows server (using a combo of knife-ec2 & knife-windows)
>
>>
>
>> It seems the latest (unreleased?) knife-ec2 plugin does support windows
>
>> images, but I can't seem to figure out which template to use. It fails
>
>> with
>
>>
>
>> Bootstrapping Chef on ec2-54-228-110-177.eu-west-1.compute.amazonaws.com
>
>> Can not find bootstrap definition for
>
>> ERROR: Errno::ENOENT: No such file or directory
>
>>
>
>> looking in the bootstrap directory, I only see
>
>>
>
>> $ ls
>
>> /Users/jeppe/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/bootstrap
>
>> archlinux-gems.erb centos5-gems.erb chef-full.erb
>
>> fedora13-gems.erb ubuntu10.04-apt.erb ubuntu10.04-gems.erb
>
>> ubuntu12.04-gems.erb
>
>>
>
>> and no windows template?
>
>>
>
>> What are the incarnations needed to boot windows?
>
>>
>
>> /Jeppe
>
>
>
>
>
Archive powered by MHonArc 2.6.16.