You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com> on 2017/03/29 17:02:02 UTC
KARAF-4829 Make sure configFile in features makes config available
early
Hi,
About the issue KARAF-4829 about config files which may be available after bundles start, I'm looking for a workaround.
Is there a way to force cfg files to be copied to /etc during assembly?
Thanks!
Regards,
JP
Re: KARAF-4829 Make sure configFile in features makes config
available early
Posted by Guillaume Nodet <gn...@apache.org>.
By default, the plugin will write all configurations from startup and boot
stages. For boot features, it can be further refined using the
pidsToExtract parameter on the assembly mojo. For example the default
karaf assembly does not extract configs for acls.
In all cases, whether the configuration is extract by the FeaturesService
at boot stage or not, the bundles should be started after the config is
installed.
So the default should be to extract all the cfg files.
Guillaume
2017-03-30 17:17 GMT+02:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:
> We build our assembly with the plugin you mentioned. But the assembly
> itself, the .tar.gz does not contains the cfg files in the /etc. These
> files are populated in the /etc during the first startup. The problem is
> that the bundles are also started in parallel during the same time. So
> using them may fail.
>
> Is there an option to force the karaf-maven-plugin to put the cfg files in
> the /etc folder inside the .tar.gz archive?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mercredi 29 mars 2017 19:14
> À : user@karaf.apache.org
> Objet : Re: KARAF-4829 Make sure configFile in features makes config
> available early
>
> Hi JP,
>
> yes, you can create your custom distribution with resource: the
> karaf-maven-plugin will include it in the final archive.
>
> Regards
> JB
>
> On 03/29/2017 07:02 PM, CLEMENT Jean-Philippe wrote:
> > Hi,
> >
> > About the issue KARAF-4829 about config files which may be available
> after bundles start, I'm looking for a workaround.
> >
> > Is there a way to force cfg files to be copied to /etc during assembly?
> >
> > Thanks!
> >
> > Regards,
> > JP
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
------------------------
Guillaume Nodet
RE: KARAF-4829 Make sure configFile in features makes config
available early
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi,
> In the mean time, can't you provision the cfg file in the etc folder during assembly ?
Do you mean putting the cfg files in the resources directory of the assembly bundle? ...via an option in the feature "configfile" tags? ...other?
Regards,
JP
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : jeudi 30 mars 2017 19:30
À : user@karaf.apache.org
Objet : Re: KARAF-4829 Make sure configFile in features makes config available early
Hi,
we did an improvement today around this.
In the mean time, can't you provision the cfg file in the etc folder during assembly ?
Regards
JB
On 03/30/2017 05:17 PM, CLEMENT Jean-Philippe wrote:
> We build our assembly with the plugin you mentioned. But the assembly itself, the .tar.gz does not contains the cfg files in the /etc. These files are populated in the /etc during the first startup. The problem is that the bundles are also started in parallel during the same time. So using them may fail.
>
> Is there an option to force the karaf-maven-plugin to put the cfg files in the /etc folder inside the .tar.gz archive?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : mercredi
> 29 mars 2017 19:14 À : user@karaf.apache.org Objet : Re: KARAF-4829
> Make sure configFile in features makes config available early
>
> Hi JP,
>
> yes, you can create your custom distribution with resource: the karaf-maven-plugin will include it in the final archive.
>
> Regards
> JB
>
> On 03/29/2017 07:02 PM, CLEMENT Jean-Philippe wrote:
>> Hi,
>>
>> About the issue KARAF-4829 about config files which may be available after bundles start, I'm looking for a workaround.
>>
>> Is there a way to force cfg files to be copied to /etc during assembly?
>>
>> Thanks!
>>
>> Regards,
>> JP
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: KARAF-4829 Make sure configFile in features makes config
available early
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
we did an improvement today around this.
In the mean time, can't you provision the cfg file in the etc folder during
assembly ?
Regards
JB
On 03/30/2017 05:17 PM, CLEMENT Jean-Philippe wrote:
> We build our assembly with the plugin you mentioned. But the assembly itself, the .tar.gz does not contains the cfg files in the /etc. These files are populated in the /etc during the first startup. The problem is that the bundles are also started in parallel during the same time. So using them may fail.
>
> Is there an option to force the karaf-maven-plugin to put the cfg files in the /etc folder inside the .tar.gz archive?
>
> Regards,
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofr [mailto:jb@nanthrax.net]
> Envoy : mercredi 29 mars 2017 19:14
> : user@karaf.apache.org
> Objet : Re: KARAF-4829 Make sure configFile in features makes config available early
>
> Hi JP,
>
> yes, you can create your custom distribution with resource: the karaf-maven-plugin will include it in the final archive.
>
> Regards
> JB
>
> On 03/29/2017 07:02 PM, CLEMENT Jean-Philippe wrote:
>> Hi,
>>
>> About the issue KARAF-4829 about config files which may be available after bundles start, I'm looking for a workaround.
>>
>> Is there a way to force cfg files to be copied to /etc during assembly?
>>
>> Thanks!
>>
>> Regards,
>> JP
>>
>
> --
> Jean-Baptiste Onofr
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
RE: KARAF-4829 Make sure configFile in features makes config
available early
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
We build our assembly with the plugin you mentioned. But the assembly itself, the .tar.gz does not contains the cfg files in the /etc. These files are populated in the /etc during the first startup. The problem is that the bundles are also started in parallel during the same time. So using them may fail.
Is there an option to force the karaf-maven-plugin to put the cfg files in the /etc folder inside the .tar.gz archive?
Regards,
JP
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : mercredi 29 mars 2017 19:14
À : user@karaf.apache.org
Objet : Re: KARAF-4829 Make sure configFile in features makes config available early
Hi JP,
yes, you can create your custom distribution with resource: the karaf-maven-plugin will include it in the final archive.
Regards
JB
On 03/29/2017 07:02 PM, CLEMENT Jean-Philippe wrote:
> Hi,
>
> About the issue KARAF-4829 about config files which may be available after bundles start, I'm looking for a workaround.
>
> Is there a way to force cfg files to be copied to /etc during assembly?
>
> Thanks!
>
> Regards,
> JP
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: KARAF-4829 Make sure configFile in features makes config
available early
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,
yes, you can create your custom distribution with resource: the
karaf-maven-plugin will include it in the final archive.
Regards
JB
On 03/29/2017 07:02 PM, CLEMENT Jean-Philippe wrote:
> Hi,
>
> About the issue KARAF-4829 about config files which may be available after bundles start, I'm looking for a workaround.
>
> Is there a way to force cfg files to be copied to /etc during assembly?
>
> Thanks!
>
> Regards,
> JP
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com