[chef] Re: Re: Custom Cloud Plugin for Knife


Chronological Thread 
  • From: Jek Sirex < >
  • To:
  • Subject: [chef] Re: Re: Custom Cloud Plugin for Knife
  • Date: Mon, 26 May 2014 15:29:51 +0300

Thanks for links!

But I still can't understand how to use knife-cloud framework. knife-openstack looks like copy-paste from knife-ec2 (and others) BUT there are no references from knife-openstack to knife-cloud plugin. knife-vcloud plugin looks same. 

For example, to implement this plugin I should do the following steps:
1. Implement gem fog-or2 (fog plugin for my cloud. `or2` is short name for this cloud)
2. Create empty gem knife-or2
3. Next, looks like I should copy-paste all from knife-ec2 and replace ec2 to or2

In the these steps knife-cloud missing. 

Or may be I missing something?


2014-05-26 14:03 GMT+03:00 Kaustubh Deorukhkar < " target="_blank"> >:
knife-cloud is a framework that can help reuse and structure your cloud plugin.
Here is knife-openstack implementation using knife-cloud (fog based) which can be a good reference.

If you want to write non-fog based implementation, please have a look at https://github.com/opscode/knife-cloud/blob/master/lib/chef/knife/cloud/service.rb
This should give you a feel of what needs to be implemented.

Thanks,
Kaustubh



On Mon, May 26, 2014 at 4:10 PM, Jek Sirex < " target="_blank"> > wrote:

Ohai, Chefs!

I have my custom private cloud with custom API. I've implemented gem for talking to this api. Now I'm thinking about knife plugin:
knife mycloud server create ...
etc...

There is hard to find good guide how to do it. Should I copy-paste existing project, like https://github.com/opscode/knife-ec2 or start somewhere else?

But it hasn't any documentation or examples about how to use it. Does anyone have such examples?

Should I first extend gem fog with my cloud?

Thanks!

---
Yauhen





Archive powered by MHonArc 2.6.16.

§