Jithin Xavier
2013-Feb-26 08:22 UTC
[Puppet Users] Glassfish automatic installation in Puppet
Hi All, Can any one help to install my jar file automatically, When I tried to install /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can I pass answer with command. Please find my puppet code below exec { ''glassfishInstaExe'': command => "/usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", cwd => "/gx/mnt/software/Vidispine/Components", } Thanks, Jxavier -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Nikola Petrov
2013-Feb-26 08:34 UTC
Re: [Puppet Users] Glassfish automatic installation in Puppet
Not sure if this will help you at all but you can try the yes[1] command. Try to change your exec to: exec { ''glassfishInstaExe'': command => ''/usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar'', cwd => ''/gx/mnt/software/Vidispine/Components'', } [1] http://en.wikipedia.org/wiki/Yes_(Unix) -- Nikola On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:> Hi All, > > Can any one help to install my jar file automatically, > > When I tried to install /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can I > pass answer with command. > > Please find my puppet code below > > exec { ''glassfishInstaExe'': > command => "/usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > cwd => "/gx/mnt/software/Vidispine/Components", > } > > Thanks, > Jxavier > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Jithin Xavier
2013-Feb-26 09:26 UTC
Re: [Puppet Users] Glassfish automatic installation in Puppet
Thanks Nikola, for some reason its not working.. I am getting this error now err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar returned 1 instead of one of [0] at /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. Thanks, Jithin On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov <nikolavp@gmail.com> wrote:> Not sure if this will help you at all but you can try the yes[1] > command. > > Try to change your exec to: > > exec { ''glassfishInstaExe'': > command => ''/usr/bin/yes | /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar'', > cwd => ''/gx/mnt/software/Vidispine/Components'', > } > > > > [1] http://en.wikipedia.org/wiki/Yes_(Unix) > > > -- > Nikola > > On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote: > > Hi All, > > > > Can any one help to install my jar file automatically, > > > > When I tried to install /usr/bin/java -Xmx256m -jar > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can > I > > pass answer with command. > > > > Please find my puppet code below > > > > exec { ''glassfishInstaExe'': > > command => "/usr/bin/java -Xmx256m -jar > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > > cwd => "/gx/mnt/software/Vidispine/Components", > > } > > > > Thanks, > > Jxavier > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to puppet-users+unsubscribe@googlegroups.com. > > To post to this group, send email to puppet-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- -Regards Jithin Xavier +91-9739505163 Skype- jithinxavi in.linkedin.com/in/jithinxavier/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Nikola Petrov
2013-Feb-26 09:31 UTC
Re: [Puppet Users] Glassfish automatic installation in Puppet
Please run the command outside of puppet or run puppet with --debug --trace to see what failed. Error status code of 1 can be anything on earth ;) -- Nikola On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote:> Thanks Nikola, > > for some reason its not working.. I am getting this error now > > err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from > notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar > returned 1 instead of one of [0] at > /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. > > Thanks, > Jithin > > > > On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov <nikolavp@gmail.com> wrote: > > > Not sure if this will help you at all but you can try the yes[1] > > command. > > > > Try to change your exec to: > > > > exec { ''glassfishInstaExe'': > > command => ''/usr/bin/yes | /usr/bin/java -Xmx256m -jar > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar'', > > cwd => ''/gx/mnt/software/Vidispine/Components'', > > } > > > > > > > > [1] http://en.wikipedia.org/wiki/Yes_(Unix) > > > > > > -- > > Nikola > > > > On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote: > > > Hi All, > > > > > > Can any one help to install my jar file automatically, > > > > > > When I tried to install /usr/bin/java -Xmx256m -jar > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > > > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can > > I > > > pass answer with command. > > > > > > Please find my puppet code below > > > > > > exec { ''glassfishInstaExe'': > > > command => "/usr/bin/java -Xmx256m -jar > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > > > cwd => "/gx/mnt/software/Vidispine/Components", > > > } > > > > > > Thanks, > > > Jxavier > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Puppet Users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to puppet-users+unsubscribe@googlegroups.com. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to puppet-users+unsubscribe@googlegroups.com. > > To post to this group, send email to puppet-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > -- > -Regards > Jithin Xavier > +91-9739505163 > Skype- jithinxavi > in.linkedin.com/in/jithinxavier/ > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Jithin Xavier
2013-Feb-26 10:07 UTC
Re: [Puppet Users] Glassfish automatic installation in Puppet
This command "/usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar --debug --trace" not giving me any useful information. Glassfish installation is asking for, *Accept or Decline? [A,D,a,d]*.. So we wanted to answer this question. is there anyway to answer for this through command line? Thanks, Jithin On Tue, Feb 26, 2013 at 3:01 PM, Nikola Petrov <nikolavp@gmail.com> wrote:> Please run the command outside of puppet or run puppet with > > --debug --trace > > to see what failed. Error status code of 1 can be anything on > earth ;) > > -- > Nikola > > On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote: > > Thanks Nikola, > > > > for some reason its not working.. I am getting this error now > > > > err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from > > notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar > > returned 1 instead of one of [0] at > > /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. > > > > Thanks, > > Jithin > > > > > > > > On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov <nikolavp@gmail.com> > wrote: > > > > > Not sure if this will help you at all but you can try the yes[1] > > > command. > > > > > > Try to change your exec to: > > > > > > exec { ''glassfishInstaExe'': > > > command => ''/usr/bin/yes | /usr/bin/java -Xmx256m -jar > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar'', > > > cwd => ''/gx/mnt/software/Vidispine/Components'', > > > } > > > > > > > > > > > > [1] http://en.wikipedia.org/wiki/Yes_(Unix) > > > > > > > > > -- > > > Nikola > > > > > > On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote: > > > > Hi All, > > > > > > > > Can any one help to install my jar file automatically, > > > > > > > > When I tried to install /usr/bin/java -Xmx256m -jar > > > > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > > > > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how > can > > > I > > > > pass answer with command. > > > > > > > > Please find my puppet code below > > > > > > > > exec { ''glassfishInstaExe'': > > > > command => "/usr/bin/java -Xmx256m -jar > > > > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > > > > cwd => "/gx/mnt/software/Vidispine/Components", > > > > } > > > > > > > > Thanks, > > > > Jxavier > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > Groups "Puppet Users" group. > > > > To unsubscribe from this group and stop receiving emails from it, > send > > > an email to puppet-users+unsubscribe@googlegroups.com. > > > > To post to this group, send email to puppet-users@googlegroups.com. > > > > Visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Puppet Users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > an > > > email to puppet-users+unsubscribe@googlegroups.com. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > > > > > > -- > > -Regards > > Jithin Xavier > > +91-9739505163 > > Skype- jithinxavi > > in.linkedin.com/in/jithinxavier/ > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to puppet-users+unsubscribe@googlegroups.com. > > To post to this group, send email to puppet-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/0i1ChNoJSKA/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- -Regards Jithin Xavier +91-9739505163 Skype- jithinxavi in.linkedin.com/in/jithinxavier/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Nikola Petrov
2013-Feb-26 13:11 UTC
Re: [Puppet Users] Glassfish automatic installation in Puppet
Well check the same command (yes) and it''s man page yes A | shell-script should give you what you want -- Nikola On Tue, Feb 26, 2013 at 03:37:50PM +0530, Jithin Xavier wrote:> This command "/usr/bin/yes | /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar > --debug --trace" not giving me any useful information. > > Glassfish installation is asking for, *Accept or Decline? [A,D,a,d]*.. So > we wanted to answer this question. > > is there anyway to answer for this through command line? > > Thanks, > Jithin > > > > > > On Tue, Feb 26, 2013 at 3:01 PM, Nikola Petrov <nikolavp@gmail.com> wrote: > > > Please run the command outside of puppet or run puppet with > > > > --debug --trace > > > > to see what failed. Error status code of 1 can be anything on > > earth ;) > > > > -- > > Nikola > > > > On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote: > > > Thanks Nikola, > > > > > > for some reason its not working.. I am getting this error now > > > > > > err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from > > > notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar > > > returned 1 instead of one of [0] at > > > /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. > > > > > > Thanks, > > > Jithin > > > > > > > > > > > > On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov <nikolavp@gmail.com> > > wrote: > > > > > > > Not sure if this will help you at all but you can try the yes[1] > > > > command. > > > > > > > > Try to change your exec to: > > > > > > > > exec { ''glassfishInstaExe'': > > > > command => ''/usr/bin/yes | /usr/bin/java -Xmx256m -jar > > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar'', > > > > cwd => ''/gx/mnt/software/Vidispine/Components'', > > > > } > > > > > > > > > > > > > > > > [1] http://en.wikipedia.org/wiki/Yes_(Unix) > > > > > > > > > > > > -- > > > > Nikola > > > > > > > > On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote: > > > > > Hi All, > > > > > > > > > > Can any one help to install my jar file automatically, > > > > > > > > > > When I tried to install /usr/bin/java -Xmx256m -jar > > > > > > > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its > > > > > is asking for confirmation like Accept or Decline? [A,D,a,d]. So how > > can > > > > I > > > > > pass answer with command. > > > > > > > > > > Please find my puppet code below > > > > > > > > > > exec { ''glassfishInstaExe'': > > > > > command => "/usr/bin/java -Xmx256m -jar > > > > > > > > > > > /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar", > > > > > cwd => "/gx/mnt/software/Vidispine/Components", > > > > > } > > > > > > > > > > Thanks, > > > > > Jxavier > > > > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > Groups "Puppet Users" group. > > > > > To unsubscribe from this group and stop receiving emails from it, > > send > > > > an email to puppet-users+unsubscribe@googlegroups.com. > > > > > To post to this group, send email to puppet-users@googlegroups.com. > > > > > Visit this group at > > http://groups.google.com/group/puppet-users?hl=en. > > > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Puppet Users" group. > > > > To unsubscribe from this group and stop receiving emails from it, send > > an > > > > email to puppet-users+unsubscribe@googlegroups.com. > > > > To post to this group, send email to puppet-users@googlegroups.com. > > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > > > > > > > > > > > > -- > > > -Regards > > > Jithin Xavier > > > +91-9739505163 > > > Skype- jithinxavi > > > in.linkedin.com/in/jithinxavier/ > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Puppet Users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to puppet-users+unsubscribe@googlegroups.com. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > -- > > You received this message because you are subscribed to a topic in the > > Google Groups "Puppet Users" group. > > To unsubscribe from this topic, visit > > https://groups.google.com/d/topic/puppet-users/0i1ChNoJSKA/unsubscribe?hl=en > > . > > To unsubscribe from this group and all its topics, send an email to > > puppet-users+unsubscribe@googlegroups.com. > > To post to this group, send email to puppet-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > -- > -Regards > Jithin Xavier > +91-9739505163 > Skype- jithinxavi > in.linkedin.com/in/jithinxavier/ > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.