Yes, I've done exactly what you've shown here Nicolas, make the class
implement Configurable, add the getConfigKeys and created the Param.
However when I reinstall Cloudstack, the startup does not seem to pick up
the newly added config.

As a workaround, I had to reset the "init" value as "false" in the
configuration table for Cloudstack to re-read the config keys. Not the
best  solution.

On Fri, Nov 4, 2016 at 3:58 PM, Nicolás Vázquez <nicovazque...@gmail.com>
wrote:

> Hi Syed,
>
> You can do it using ConfigKey class
> (org.apache.cloudstack.framework.config.ConfigKey)
> like this:
>
>    - Define your new configuration as a variable in a class that implements
>    Configurable (org.apache.cloudstack.framework.config.Configurable)
> using
>    ConfigKey constructor in which you provide type, name, description,
> scope.
>    etc.
>    - Add your new configuration variable to getConfigKeys() return array
>
> You can also check at this link where I had added 2 configurations on
> VmwareGuru class:
> https://github.com/apache/cloudstack/pull/1542/commits/
> 8deb7dfc68380cfdca0eabd3cee831b8952915f3
>
> Hope this helps ;)
>
> Nicolas
>
> 2016-11-04 16:29 GMT-03:00 Syed Ahmed <sah...@cloudops.com>:
>
> > Hi Guys,
> >
> > I've been trying to add a new global config to Cloudstack. I've been
> > following the instructions mentioned at
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Configuration but
> > when I reinstall my Cloudstack, I don't see the setting in the
> > configuration table in Cloudstack. Does anyone has experience in adding
> > Config values?
> >
> > Thanks,
> > -Syed
> >
>

Reply via email to