[openstack-dev] [Fuel] Plugins improvement

Aleksandr Didenko adidenko at mirantis.com
Mon Nov 24 10:34:29 UTC 2014


Hi,

according to [1] you should be able to use:

puppet_modules: "puppet/:/etc/puppet/modules/"

This is valid string yaml parameter that should be parsed just fine.

[1]
https://github.com/stackforge/fuel-web/blob/master/tasklib/tasklib/actions/puppet.py#L61-L62

Regards
--
Alex


On Mon, Nov 24, 2014 at 12:07 PM, Dmitry Ukov <dukov at mirantis.com> wrote:

> Hello All,
> Current implementation of plugins in Fuel unpacks plugin tarball
> into /var/www/nailgun/plugins/.
> If we implement deployment part of plugin using puppet there is a setting
> puppet_modules:
>
> This setting should specify path to modules folder. As soon as main
> deployment part of plugin is implemented as a Puppet module module path
> setting should be:
>
> puppet_modules: puppet/
>
> There is big probability that plugin implementation will require some
> custom resources and functions which are implemented in fuel-library (e.g.
> service config resources, stdlib functions e.t.c). So in order to use
> them plugin developer has to copy them from fuel-library into plugin (if
> i'm not missing something). This is not really convenient from my
> perspective.
>
> I'd like to suggest to treat puppet_modules parameter as an array and pass
> it to puppet binary as
> # puppet apply --modulepath=<modulepath1>:<modulepath2>
> This will allow to add /etc/puppet/modules as module path and use
> resources and functions form fuel-library.
>
> P.S.:
> puppet_modules: "puppet/:/etc/puppet/moules/: <- is not allowed by yaml
> parser (and yaml format I believe)
>
> Any suggestions here?
>
>
> --
> Kind regards
> Dmitry Ukov
> IT Engineer
> Mirantis, Inc.
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141124/0989e3cf/attachment.html>


More information about the OpenStack-dev mailing list