UBUNTU CHEF server and windows

MatroX

Member
Joined
Jun 22, 2009
Messages
29
Reaction score
2
Good day all,

Is there a way to connect with your ubuntu chef server to a windows 2008R2 server.

I am trying to bootstarp the machine but it doesnt work. I have tried searching everywhere on google but with no help.

I have read that if you didnt install chef ising GEM installation you wont be able to install knife-windows.

Any help would be great.

Thanks.
 
Good day all,

Is there a way to connect with your ubuntu chef server to a windows 2008R2 server.

I am trying to bootstarp the machine but it doesnt work. I have tried searching everywhere on google but with no help.

I have read that if you didnt install chef ising GEM installation you wont be able to install knife-windows.

Any help would be great.

Thanks.

What is your use-case (or what are you trying to achieve) ?
 
Well I want to investigate the various packages and settings which can be controlled via Chef. Eg Java, environmental settings and so on.
 
So do you want to
a. install the Chef Windows Agent
or
b. do you actually want to machine to be completely provisioned from scratch by Chef
-- eg. OS gets installed automatically
-- connected to the Chef environment automatically
-- packages and settings checked automatically


a. is easy: http://www.getchef.com/blog/2011/12/15/chef-client-installer-for-windows/

b. I assume you mean the Knife bootstrap procedure, but since I have only read up about Chef in my search for which tool I wanted to use, I don't know how Chef really works. I have much experience with SaltStack, some with Puppet, and only did research on Chef and Ansible. Maybe try this page: http://www.getchef.com/blog/2011/05/24/chef-hearts-windows/
 
A little bit of A and B.

I already have the Chef Server installed(ubuntu) and bootstapped to an Apache server(Ubuntu). I have another Windows Server 2008 VM running. Now i want to bootstrap the windows VM.

I dont need to

-- eg. OS gets installed automatically
-- connected to the Chef environment automatically
 
Just an update, i have managed to bootstrap to my Windows server using CHEF on ubuntu.

I will now create some recipes to control JAVA and some other features and settings.

thanks to all for your input.

M
 
Sorry for the late reply:

Here are the steps:

Install chef on your Linux machine.
Install Knife-windows
Make sure that your Network setting in Virtual box for windows is set to bridged connection.
Enable Network discovery on the Windows Machine.
On the Windows machine, open Command Prompt and enter the below. (This is to allow communication between Chef and Windows)

Code:
winrm quickconfig -quiet

winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}

winrm set winrm/config @{MaxTimeoutms="1800000"}

winrm set winrm/config/service @{AllowUnencrypted="true"}

winrm set winrm/config/service/auth @{Basic="true"}

After you have entered the above into CMD, you need to go to your chef server and bootstrap your windows machine.

Use the below command to bootstrap to your windows machine:

Code:
knife bootstrap windows winrm 192.168.xx.xx -x Administrator -P (password)

If you are not able to bootstrap using the IP address, you can use the computer name.

This will bootstrap your windows machine.

Create some recipes and start automating your windows machines.
 
Top
Sign up to the MyBroadband newsletter
X