StarCluster - Mailing List Archive

Re: writing plugins

From: Dan Lovell <no email>
Date: Fri, 28 Feb 2014 13:55:22 -0500

Hi Dmitry,

I've written a starcluster_plugin.py for
crosscat<https://github.com/mit-probabilistic-computing-project/crosscat/blob/master/crosscat/starcluster_plugin.py>which
you might find useful. No one has every critiqued it, so I can't say
its idiomatic, but feedback is welcome!

Re cluster name, look into using the development
shell<http://star.mit.edu/cluster/docs/latest/manual/plugins.html?highlight=shell#using-the-development-shell>
to
help you prototype and figure out which functions you need. Playing around
in the shell, I found that nodes have a parent_cluster property, so
master.parent_cluster is probably what you want. You could do a similar
thing to figure out what to do for template_name.

Best
Dan


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

> Hello!
>
>
> 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
> http://star.mit.edu/cluster/docs/latest/manual/plugins.html#plugin-system
> 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?
>
>
> Thanks!
>
> Dmitry
>
> dserebren_at_gmail.com
>
> _______________________________________________
> StarCluster mailing list
> StarCluster_at_mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
>
>
Received on Fri Feb 28 2014 - 13:55:44 EST
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject