<div dir="ltr">Hi Dmitry,<div><br></div><div>I've written a <a href="https://github.com/mit-probabilistic-computing-project/crosscat/blob/master/crosscat/starcluster_plugin.py">starcluster_plugin.py for crosscat</a> which you might find useful. No one has every critiqued it, so I can't say its idiomatic, but feedback is welcome!</div>
<div><br></div><div>Re cluster name, look into using the <a href="http://star.mit.edu/cluster/docs/latest/manual/plugins.html?highlight=shell#using-the-development-shell">development shell</a> 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.</div>
<div><br></div><div>Best</div><div>Dan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 7:06 PM, Dmitry Serenbrennikov <span dir="ltr"><<a href="mailto:dmitry@adchemy.com" target="_blank">dmitry@adchemy.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello!<br>
</p>
<p><br>
</p>
<p>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 <a href="http://star.mit.edu/cluster/docs/latest/manual/plugins.html#plugin-system" style="font-size:12pt" target="_blank"><span>http://star.mit.edu/cluster/docs/latest/manual/plugins.html#plugin-system</span></a><span style="font-size:12pt"> page?</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">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?</span></p>
<p><br>
</p>
<p>Thanks!<br>
</p>
<p>Dmitry<br>
</p>
<p><a href="mailto:dserebren@gmail.com" target="_blank">dserebren@gmail.com</a><br>
</p>
</div>
</div>
<br>_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br></blockquote></div><br></div>