- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: Bootstrapping a Chef Node using a Java
- Date: Tue, 2 Aug 2011 15:45:35 -0700
On Aug 2, 2011, at 3:38 PM, Daniel Cukier wrote:
>
Hi everybody,
>
>
I'm developing a web service in Java on a system that needs to provision,
>
create, remove nodes.
>
>
I have this restriction that the web service must be developed in Java.
>
This web service must:
>
>
1 - create nodes on different Cloud environments (EC2, rackspace,
>
openstack, etc)
>
2 - Bootstrap these nodes with chef and one or 2 roles
>
>
How do you suggest creating this web service? I thought about doing system
>
calls to knife, but I don't think this is a good idea. Is there any Java
>
specific library that is similar to knife, a library that I can provision
>
cloud nodes (like knife ec2) and bootstrap chef (life knife bootstrap)?
As far as I know there is no Chef client binding in Java, but you can look at
PyChef as an example of how to make one. Some naive Google pointed me at
http://stackoverflow.com/questions/3630615/java-cloud-apis as a seemingly
decent list of cloud interaction libraries in Java, but I make no claims of
knowledge in that field. Even as a primarily Python guy I would still say Fog
is basically unbeatable for this kind of task, so I would highly recommend
you see if Fog under JRuby is an option. PyChef will probably not work under
Jython as-is due to its use ctypes, but that could also be investigated.
--NOah
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Archive powered by MHonArc 2.6.16.