lalit jangra
2013-Jan-07 06:40 UTC
[Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?
Hi, I have alfresco .bin installer file for linux distribution which i want to automate using puppet. While installing alfresco on linux ,usually i need to provide a number of parameters such as java_home, db home, alfresco home or tomcat port etc. Now i want to install same .bin installer using puppet but not getting how can i provide same runtime argument in puppet installation. Can anybody help? Regards. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/fC9PMTMYS84J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Garrett Honeycutt
2013-Jan-07 06:54 UTC
Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?
On 1/7/13 1:40 AM, lalit jangra wrote:> Hi, > > I have alfresco .bin installer file for linux distribution which i want > to automate using puppet. While installing alfresco on linux ,usually i > need to provide a number of parameters such as java_home, db home, > alfresco home or tomcat port etc. > > Now i want to install same .bin installer using puppet but not getting > how can i provide same runtime argument in puppet installation. Can > anybody help? > > Regards. >Check out the type reference for the exec resource[1]. Does this example help? exec { ''alfresco_installer'': command => "/tmp/alfresco_installer.bin $alfresco_args", environment => [''JAVA_HOME=/opt/java'',''TOMCAT_PORT=8080''], creates => ''/usr/bin/alfresco'', } These type of installers are no fun. You might want to side step this issue by turning alfresco into a package with FPM[2] and then use the package{} resource. [1] - http://docs.puppetlabs.com/references/stable/type.html#exec [2] - https://github.com/jordansissel/fpm/ Cheers, -g -- Garrett Honeycutt 206.414.8658 http://puppetlabs.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
lalit jangra
2013-Jan-07 08:31 UTC
Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?
Thanks a lot Garrett, When i am installing alfresco using ./alfresco-installaer.bin, i am being asked about a number of options on command line such as below: 1. Do you want to install java?[y/n] 2.Do you want to install postgres?[y/n] 3... so on. I want to provide all these kinds of inputs using puppet. Is it possible? Regards. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/pvyeEWqqQy0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2013-Jan-07 14:11 UTC
Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?
On Monday, January 7, 2013 2:31:22 AM UTC-6, lalit jangra wrote:> > Thanks a lot Garrett, > > When i am installing alfresco using ./alfresco-installaer.bin, i am being > asked about a number of options on command line such as below: > 1. Do you want to install java?[y/n] > 2.Do you want to install postgres?[y/n] > 3... so on. > > I want to provide all these kinds of inputs using puppet. Is it possible? >You should consider packaging up the software for your hosts'' native package management system(s), and managing it that way. You should also look at the installer docs (or try "alfresco_installer.bin --help") to see whether it accepts any options to replace / suppress the interactive queries. If you have no alternative to making Puppet issue responses to the queries, then you''ll need to rely on I/O redirection. Either pipe the responses into the installer, or write a response file on the client and redirect the installer''s standard input to be from that file. Make sure you''re using the "sh" provider for the Exec in this case. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/8GOsc0YkyJgJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Keiran Sweet
2013-Jan-07 14:39 UTC
Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?
Hi, Another vote from me for packaging this software, Puppet likes packages and deals with them well. John mentioned FPM, If you haven''t checked it out, I can''t recommend it enough. I manage quite a few packages internally in my role, and FPM has shaved huge amounts of time off generating them. Really a great tool. K On Monday, January 7, 2013 2:11:33 PM UTC, jcbollinger wrote:> > > > On Monday, January 7, 2013 2:31:22 AM UTC-6, lalit jangra wrote: >> >> Thanks a lot Garrett, >> >> When i am installing alfresco using ./alfresco-installaer.bin, i am being >> asked about a number of options on command line such as below: >> 1. Do you want to install java?[y/n] >> 2.Do you want to install postgres?[y/n] >> 3... so on. >> >> I want to provide all these kinds of inputs using puppet. Is it possible? >> > > > You should consider packaging up the software for your hosts'' native > package management system(s), and managing it that way. > > You should also look at the installer docs (or try "alfresco_installer.bin > --help") to see whether it accepts any options to replace / suppress the > interactive queries. > > If you have no alternative to making Puppet issue responses to the > queries, then you''ll need to rely on I/O redirection. Either pipe the > responses into the installer, or write a response file on the client and > redirect the installer''s standard input to be from that file. Make sure > you''re using the "sh" provider for the Exec in this case. > > > John > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/TRDzCuO__HQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- How to clone alfresco on puppet agents?
- Not able to install puppet enterprise onn agent node using install command.
- alfresco with GFS2.0.0
- Gluster client mount fails in mid flight with signum 15
- Is it possible to use Samba as a proxy and cache for a slow CIFS drive ?