[openstack-dev] [heat]How to define the name of resource?
zbitter at redhat.com
Thu Jan 7 18:38:37 UTC 2016
On 07/01/16 11:49, zhu4236926 wrote:
> Hi guys,
> I extend some heat resource plugins, for example, VolumeReplication
> which used to provide replication capability to a volume, where should I
> set it in heat?
In a sense, it doesn't really matter - it will work no matter where
(inside heat/engine/resources/) you put it. So put it somewhere that
makes sense and has a reasonable name.
> How dose heat define the resource, like volume_base.py,
> It contains two resource plugins: BaseVolume and
Actually, neither of those are plugins. They're base classes from which
multiple plugins inherit some common code.
> the name of this python file is volume_base, why?
Because it contains base classes for volume plugins.
> VolumeReplication plugin should added in volume_base.py or new python
> file? If I need to provide
> a new file, what name should it be, could you provide an example?
If you're creating a new resource type (though it's not clear to me if
that what you actually want here), I imagine it should be a separate
python file in
More information about the OpenStack-dev