Sivaraman Viswanathan
2012-Dec-20 07:12 UTC
[Puppet Users] Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes
Lets take the example, I am having a jboss-4.2.3 installers as a .tar file. In general to install jboss, i ll 1. untar the jboss-4.2.3 into a prefefined folder (opt/server/jbossas/) into multiple servers 2. untar the openjdk into a preferined path (/opt/software/java)set the path in the bash.profile 3. Create server profile in the place where jboss is installed 4. Start the server. Lets say that I have to do this in 16 nodes (servers). Now, I should store the jboss and openjdk installers at a central location and it should be transferred to the nodes before the 1st step can begin. I wrote the manifest to perform the requirements form 1 to 4. But not sure how can I automate the transfer of the installers from a central repo. I am not worried about the type of central repo. It can be a ftp or puppet or anything else. Please help me. I was going through filebucket. Will this help or should i write a manifest to get this file from a ftp server? How to create a file repo which can be referred in puppet manifests? -- 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/-/3qIDxQyVVncJ. 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.
Louis Coilliot
2012-Dec-20 07:59 UTC
Re: [Puppet Users] Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes
Hello, why not making a rpm or deb package for the application and using the resource ''package'' ? Here is an example with JBoss : http://kermit.fr/repo/rpm/el6/x86_64/jboss/ http://kermit.fr/repo/rpm/el6/SRPMS/ https://github.com/lofic/puppet-lofic/tree/master/modules/jboss7 Louis Coilliot 2012/12/20 Sivaraman Viswanathan <siva.ah@googlemail.com>:> Lets take the example, I am having a jboss-4.2.3 installers as a .tar file. > In general to install jboss, i ll > 1. untar the jboss-4.2.3 into a prefefined folder (opt/server/jbossas/) into > multiple servers > 2. untar the openjdk into a preferined path (/opt/software/java)set the path > in the bash.profile > 3. Create server profile in the place where jboss is installed > 4. Start the server. > > Lets say that I have to do this in 16 nodes (servers). > Now, I should store the jboss and openjdk installers at a central location > and it should be transferred to the nodes before the 1st step can begin. > > I wrote the manifest to perform the requirements form 1 to 4. But not sure > how can I automate the transfer of the installers from a central repo. I am > not worried about the type of central repo. It can be a ftp or puppet or > anything else. > > Please help me. I was going through filebucket. Will this help or should i > write a manifest to get this file from a ftp server? > > How to create a file repo which can be referred in puppet manifests? > > -- > 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/-/3qIDxQyVVncJ. > 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.-- 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.
Keiran Sweet
2012-Dec-20 10:34 UTC
[Puppet Users] Re: Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes
Hi There, This is the type of task that is best serviced using the packaging framework of your operating system (ie, RPM, Deb, etc). In this case, I''d roll the software into RPMs and have them installed via the package {} type on all your nodes from a central YUM repo, followed by the deployment of the profile file from a central location using the file {} type. You could then manage the service using the service type to ensure the applications are running as required. The benefit of this is that it is very repeatable, as well as being able to use the packaging framework to assist with upgrade to other versions more seamlessly. There are some good examples at: http://puppetcookbook.com/ you could use as a reference. Cheers, K On Thursday, December 20, 2012 7:12:51 AM UTC, Sivaraman Viswanathan wrote:> > Lets take the example, I am having a jboss-4.2.3 installers as a .tar > file. In general to install jboss, i ll > 1. untar the jboss-4.2.3 into a prefefined folder (opt/server/jbossas/) > into multiple servers > 2. untar the openjdk into a preferined path (/opt/software/java)set the > path in the bash.profile > 3. Create server profile in the place where jboss is installed > 4. Start the server. > > Lets say that I have to do this in 16 nodes (servers). > Now, I should store the jboss and openjdk installers at a central location > and it should be transferred to the nodes before the 1st step can begin. > > I wrote the manifest to perform the requirements form 1 to 4. But not sure > how can I automate the transfer of the installers from a central repo. I am > not worried about the type of central repo. It can be a ftp or puppet or > anything else. > > Please help me. I was going through filebucket. Will this help or should i > write a manifest to get this file from a ftp server? > > How to create a file repo which can be referred in puppet manifests? >-- 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/-/EsvW-gsiV7YJ. 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.
Roman Shaposhnik
2012-Dec-21 17:51 UTC
Re: [Puppet Users] Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes
On Wed, Dec 19, 2012 at 11:59 PM, Louis Coilliot <louis.coilliot@think.fr> wrote:> Hello, > > why not making a rpm or deb package for the application and using the > resource ''package'' ?In general I found fpm to be a reasonable compromise between full fledged high-brow packaging efforts and lose tarballs: https://github.com/jordansissel/fpm Thanks, Roman. -- 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.