[StarCluster] writing plugins

Dan Lovell dlovell at gmail.com
Fri Feb 28 13:55:22 EST 2014


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20140228/97620547/attachment.htm


More information about the StarCluster mailing list