Thanks Marco,

I am adding the accept-license configuration parameter to my config.yaml 
already , the product installer was waiting at accept license (User has to 
type 1 for acceptance).I will try the yes command in my charm to avoid the 
manual intervention.

Thanks and Regards,
Shilpa Kaul
IBM India Pvt. Ltd
Seat # EGLC 6F B067,
C-Block, Embassy Golf Link,
Intermediate Ring Road, Bangalore
Email : shilk...@in.ibm.com 
Mobile : 9900054908



From:   Marco Ceppi <ma...@ondina.co>
To:     Shilpa Kaul/India/IBM@IBMIN, David Cheney 
<david.che...@canonical.com>
Cc:     juju <juju@lists.ubuntu.com>
Date:   06/22/2015 04:50 PM
Subject:        Re: Handling user manual intervention in juju



There are other charms that have this issue. One thing to take note is you 
should /never/ really accept license without telling the user what's going 
on. Other authors have solved this in a more simple fashion. They've added 
a configuration option on the charm, "accept-license" which is a boolean 
which defaults to False. The description of the configuration option 
outlines where to read the license in full. Then, in your config-changed 
hook don't proceed with the install script until the user flips 
accept-license configuration option. You can usually get around the 
prompting of the install script with the `yes` command. If the script 
expects you to just type "y" then you can do `yes | ./install` if it needs 
a full "yes" or another phrase you can change that using the yes command 
`yes "yes" | ./install` as an example.

Thanks,
Marco Ceppi

On Mon, Jun 22, 2015 at 5:55 AM Shilpa Kaul <shilk...@in.ibm.com> wrote:
Thanks David, 

 I will try to explore expect(1) and see how I can use it in my code , my 
product is not java 

Thanks and Regards,
Shilpa Kaul
IBM India Pvt. Ltd
Seat # EGLC 6F B067,
C-Block, Embassy Golf Link,
Intermediate Ring Road, Bangalore
Email : shilk...@in.ibm.com 
Mobile : 9900054908 



From:        David Cheney <david.che...@canonical.com> 
To:        Shilpa Kaul/India/IBM@IBMIN 
Cc:        juju <juju@lists.ubuntu.com>, Suchitra 
Venugopal1/India/IBM@IBMIN 
Date:        06/22/2015 03:18 PM 
Subject:        Re: Handling user manual intervention in juju 



You could try expect(1).

Is the product java by any chance ?

On Mon, Jun 22, 2015 at 7:44 PM, Shilpa Kaul <shilk...@in.ibm.com> wrote:
> Hi Team,
>
> Can you please help me in finding a solution for a scenario where 
product
> configuration or installation involves manual intervention and product 
does
> not support silent method for that step.How can this be handled in a 
charm.
>
> For example , consider a scenario where a product is installed and
> configured using ./install command. The command takes care of all 
install
> and configuration but it stops at Accept license step. The user has to
> either enter 1 for accepting license or 2 for not accepting license. 
Till
> now I have not got any equivalent command line option to (ie waiting for
> license to be accepted) accept the license by default so that install
> process does not stop for any manual user intervention.
>
> How can charm handle such type of scenarios , any insights on this 
please.
>
> Thanks and Regards,
> Shilpa Kaul
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>


--
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to