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 <[email protected]> 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 <[email protected]
> >
> 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 <[email protected]>
> > 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 <[email protected]>
> > > 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/
>

Reply via email to