You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by priyanka gugale <pr...@apache.org> on 2016/06/30 16:50:35 UTC
How to pass install parameters to packages (rpm/deb)
Hi,
Ambari provides a way to provide configuration parameters from UI. If I
want to pass these parameters to install package like rpm/deb how I can
achieve this?
-Priyanka
Re: How to pass install parameters to packages (rpm/deb)
Posted by priyanka gugale <pr...@gmail.com>.
Hey Thanks for revert Mithun.
What I am looking for: I am running some scripts during rpm/deb package
installation. I want to pass my parameters(from ambari configurations) to
these scripts.
What I did: I assumed, env.set_params(params) call would set those config
parameters as environment variables and then my scripts can access them
during package install. But this is not working. Am I missing anything here?
-Priyanka
On Thu, Jul 7, 2016 at 9:39 PM, Mithun Mathew <mi...@gmail.com> wrote:
> Hi Priyanka
>
> I'm not exactly sure whether I understand your question completely.
> There is a params.py which does Script.get_config() - this would return a
> dictionary of all the configurations that you see on the Ambari UI.
> Hope this helps...
>
> Regards
> Matt
>
> On Wed, Jul 6, 2016 at 1:52 AM, priyanka gugale <priyanka.gugale@gmail.com
> >
> wrote:
>
> > Are the config parameters are passed as environment variables, so that
> the
> > pre-install scripts of packages can access these parameters?
> >
> > -Priyanka
> >
> > On Fri, Jul 1, 2016 at 12:05 PM, priyanka gugale <pr...@apache.org>
> > wrote:
> >
> > > I am trying to understand how these config parameters are useful during
> > > installation? Also if one edits any config post install, how does that
> > take
> > > effect on installed product?
> > >
> > > -Priyanka
> > >
> > > On Thu, Jun 30, 2016 at 10:20 PM, priyanka gugale <pr...@apache.org>
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> Ambari provides a way to provide configuration parameters from UI. If
> I
> > >> want to pass these parameters to install package like rpm/deb how I
> can
> > >> achieve this?
> > >>
> > >> -Priyanka
> > >>
> > >
> > >
> >
>
>
>
> --
> *Mithun Mathew* (Matt)
>
> - www.linkedin.com/in/mithunmatt/
>
Re: How to pass install parameters to packages (rpm/deb)
Posted by Mithun Mathew <mi...@gmail.com>.
Hi Priyanka
I'm not exactly sure whether I understand your question completely.
There is a params.py which does Script.get_config() - this would return a
dictionary of all the configurations that you see on the Ambari UI.
Hope this helps...
Regards
Matt
On Wed, Jul 6, 2016 at 1:52 AM, priyanka gugale <pr...@gmail.com>
wrote:
> Are the config parameters are passed as environment variables, so that the
> pre-install scripts of packages can access these parameters?
>
> -Priyanka
>
> On Fri, Jul 1, 2016 at 12:05 PM, priyanka gugale <pr...@apache.org>
> wrote:
>
> > I am trying to understand how these config parameters are useful during
> > installation? Also if one edits any config post install, how does that
> take
> > effect on installed product?
> >
> > -Priyanka
> >
> > On Thu, Jun 30, 2016 at 10:20 PM, priyanka gugale <pr...@apache.org>
> > wrote:
> >
> >> Hi,
> >>
> >> Ambari provides a way to provide configuration parameters from UI. If I
> >> want to pass these parameters to install package like rpm/deb how I can
> >> achieve this?
> >>
> >> -Priyanka
> >>
> >
> >
>
--
*Mithun Mathew* (Matt)
- www.linkedin.com/in/mithunmatt/
Re: How to pass install parameters to packages (rpm/deb)
Posted by priyanka gugale <pr...@gmail.com>.
Are the config parameters are passed as environment variables, so that the
pre-install scripts of packages can access these parameters?
-Priyanka
On Fri, Jul 1, 2016 at 12:05 PM, priyanka gugale <pr...@apache.org> wrote:
> I am trying to understand how these config parameters are useful during
> installation? Also if one edits any config post install, how does that take
> effect on installed product?
>
> -Priyanka
>
> On Thu, Jun 30, 2016 at 10:20 PM, priyanka gugale <pr...@apache.org>
> wrote:
>
>> Hi,
>>
>> Ambari provides a way to provide configuration parameters from UI. If I
>> want to pass these parameters to install package like rpm/deb how I can
>> achieve this?
>>
>> -Priyanka
>>
>
>
Re: How to pass install parameters to packages (rpm/deb)
Posted by priyanka gugale <pr...@apache.org>.
I am trying to understand how these config parameters are useful during
installation? Also if one edits any config post install, how does that take
effect on installed product?
-Priyanka
On Thu, Jun 30, 2016 at 10:20 PM, priyanka gugale <pr...@apache.org> wrote:
> Hi,
>
> Ambari provides a way to provide configuration parameters from UI. If I
> want to pass these parameters to install package like rpm/deb how I can
> achieve this?
>
> -Priyanka
>