<div dir="ltr">Hi Sam,<div><br></div><div>We wrote a Heat resource plugin as well [1]</div><div><br></div><div>The trick to getting heat to auto-discover a module is to install it to the /usr/lib/heat (or possibly, but unlikely, /usr/lib64/heat) directory.</div>
<div><br></div><div>I have found that the setuptools incantation:</div><br>sudo python setup.py install --install-purelib=/usr/lib/heat<br><br>works well for source-installed heat.<div><br></div><div>Hope that helps,</div>
<div><br></div><div>Cheers,</div><div>Tim</div><div><br><div>[1] <a href="https://github.com/gridcentric/cobalt-heat">https://github.com/gridcentric/cobalt-heat</a></div><div><br></div></div><div class="gmail_extra"><br>
<div class="gmail_quote">
On Mon, Oct 14, 2013 at 5:18 PM, Sam Alba <span dir="ltr"><<a href="mailto:sam.alba@gmail.com" target="_blank">sam.alba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am working on a Heat plugin that makes a new resource available in a<br>
template. It's working great and I will opensource it this week if I<br>
can get the packaging right...<br>
<br>
Right now, I am linking my module.py file in /usr/lib/heat to get it<br>
loaded when heat-engine starts. But according to the doc, I am<br>
supposed to be able to make the plugin discoverable by heat-engine if<br>
the module appears in the package "heat.engine.plugins"[1]<br>
<br>
I looked into the plugin_loader module in the Heat source code and it<br>
looks like it should work. However I was unable to get a proper Python<br>
package.<br>
<br>
Has anyone been able to make this packaging right for an external Heat plugin?<br>
<br>
Thanks in advance,<br>
<br>
<br>
[1] <a href="https://wiki.openstack.org/wiki/Heat/Plugins#Installation_and_Configuration" target="_blank">https://wiki.openstack.org/wiki/Heat/Plugins#Installation_and_Configuration</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
@sam_alba<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></span></blockquote></div><br></div></div>