StarCluster - Mailing List Archive

Re: writing plugins

From: Dmitry Serenbrennikov <no email>
Date: Tue, 4 Mar 2014 19:43:04 +0000

Hi Adam,
Thanks for sharing the code!
I didn't know about node.ssh.remote_file(). That's really handy!

I ended up coding something myself as well, but I wanted to avoid the need for my workstation to have validation.pem on it.
So I found that I can ssh to a machine on our network that does have it and then use knife bootstrap from it.
I'm new to chef and not sure what makes for better setup. Validation.pem anyhow seems to end up widely shared, so it's hard to call it a "private" key...

One thing didn't find a good solution for is implementing sensible behavior on "starcluster stop" vs. "starcluster terminate". It appears that a plugin can't tell the difference between the two.
If the node is terminated, I would want to remove the client and probably the node from the chef server. But if I do that, then on "stop" I end up invalidating the client and on "start -x" it is not recognized.
I noticed that your plugin doesn't implement any of this either, or am I mistaken?

Is the recommended practice to fully delete everything and then re-provision as if it's a fresh start even on "start -x"?

Thanks very much for any advice!

From: Adam <>
Sent: Tuesday, March 04, 2014 7:55 AM
To: Dmitry Serenbrennikov
Subject: Re: [StarCluster] writing plugins

Hi Dmitry,

You can look at my simple chef plugin here. It might not be exactly what you're trying to do but hopefully it helps.

Best Regards,

On Wed, Feb 26, 2014 at 7:06 PM, Dmitry Serenbrennikov <<>> wrote:


I'm trying to write a simple plugin for Chef integration. But I'm having trouble finding good examples and docs out there. Can someone please point me to some good resources, besides the page?

DefaultClusterSetup is useful, but a bit tough to get through. Also, I don't know if it has example of what I am trying to do. For example, how does one get a cluster name and template name from inside plugin's run method?



StarCluster mailing list<>
Received on Tue Mar 04 2014 - 14:43:10 EST
This archive was generated by hypermail 2.3.0.


Sort all by: