[chef] Re: Re: Created windows instance using chef along with require application


Chronological Thread 
  • From: Vishal Totare < >
  • To: Nathen Harvey < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: Created windows instance using chef along with require application
  • Date: Tue, 8 Apr 2014 10:48:23 +0530

Hi Nathen,

Thanks!!

As suggested, For mysql cookbook have performed the below steps.

1) Using below command, have downloaded the mysql cookbook.

# knife cookbook site download mysql 5.0.2

2) Then executed the same in cookbooks folder.

# tar -xzvf mysql -C cookbooks/

3) Uploaded the same.

# knife cookbook upload mysql

4) Added the run_list in my chef-server using below command.

# knife node run_list add target1 "recipe[mysql]"

5) Then added recipe in role & then uploaded the role too.

# knife role from file base-windows.rb

6) And the last executed the below command to create node in my AWS environment.

# knife ec2 server create "role[base-windows]" --region=us-west-2 --availability-zone=us-west-2a --image ami-20147a10 --flavor=t1.micro --groups chef_communicator -i ~/.ssh/chef-client.pem --node-name knife_windows_node_mysql

Afterwards waiting for winram is taking too much time & have seen in the console as machine has been created but whatever role we need to define that will not be apply to my created windows instance. Means when i physically checked the java, ntp, mysql service in my services.msc then unable to find it.

So, Please help me on this since i performing the same task from last two days and even unable to get where i can check why waiting for winram is taking too much time.

Note:- I have already open 22,80,443,3389,3306 port for new windows machine.


Regards,
Vishal Totare




On Sun, Apr 6, 2014 at 3:35 PM, Nathen Harvey < " target="_blank"> > wrote:
Vishal,

Have you created cookbooks for each of your components (java, tomcat, mysql, and iis)?  Or have you found cookbooks that will do what you want for each of these?

If not, that's the place to start.  You might find that these cookbooks from the community site offer some good patterns for how to build your cookbooks.  You might even be able to use these directly.
Once you've created the necessary cookbooks, you'll be able to specify the run list using '-r' flag for run list.  Using this, you'll specify the comma separated list of roles/recipes to apply.

For example, something like:

knife ec2 server create -r "recipe[java],recipe[tomcat],role[database],role[webserver]"

Good luck!
Nathen


On Sat, Apr 5, 2014 at 2:15 PM, Vishal Totare < " target="_blank"> > wrote:
Hi Team,

We are able to create ec2 (linux) instance using knife ec2 command along with
created recipe.

Now, the same way i need to create windows machine along with below
application.

1) Java
2) tomact
3) mysql
4) IIS

Can anyone please help me for the same. Since i am only able to create windows
machin using knife ec2 command but not known how to install the above
application on created windows machine in the same command.

Please assist on high priority.

Regards,
Vishal Totare





Archive powered by MHonArc 2.6.16.

§