Hello all, I apologize if this turns out to be a very silly (and already asked ) question. I want to install a few packages on my debian system in a particular order. Right now, I am doing the following. Say pack1, pack2 and pack3 are the three packages that I am trying to install. Then my puppet manifest looks like this. Package {ensure => installed} package { "pack1": } package { "pack2": require => Package["pack1"] } package { "pack3": require => Package["pack2"] } Is this the right way to do it? Or is there a better way? Any guidance would be appreciated. Thank you very much! -- Regards, Swati --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Swati Tiwari wrote:> I apologize if this turns out to be a very silly (and already asked ) > question. I want to install a few packages on my debian system in a > particular order. Right now, I am doing the following.It''d work, but why not set up dependencies directly when building the packages? That way, in case your repository or packages ever get used by others, they won''t have to use your manifests (or a set of instructions telling them to install packages either together or in a particular order). -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I am sorry but I am very new to debian package management. When I try to ensure the installation of packages, if the package is not available, puppet issues "apt-get install package" which basically installs a stable binary. So, I am not sure how I will be able to set up dependencies directly while building packages. Could you please give me any ideas or am I shooting on a tangent? Thank you very much! 2009/6/24 Mike Renfro <renfro@tntech.edu>> > Swati Tiwari wrote: > > > I apologize if this turns out to be a very silly (and already asked ) > > question. I want to install a few packages on my debian system in a > > particular order. Right now, I am doing the following. > > It''d work, but why not set up dependencies directly when building the > packages? That way, in case your repository or packages ever get used by > others, they won''t have to use your manifests (or a set of instructions > telling them to install packages either together or in a particular order). > > -- > Mike Renfro / R&D Engineer, Center for Manufacturing Research, > 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu > > > >-- Regards, Swati --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 6/24/2009 12:53 PM, Swati Tiwari wrote:> I am sorry but I am very new to debian package management. When I try > to ensure the installation of packages, if the package is not > available, puppet issues "apt-get install package" which basically > installs a stable binary. > > So, I am not sure how I will be able to set up dependencies directly > while building packages. Could you please give me any ideas or am I > shooting on a tangent?If these are standard Debian packages from a debian.org mirror, then the dependencies should already be set, and you shouldn''t have any ordering issues at all. If these are packages you''ve created locally, then you''d set needed dependencies in the debian/control file. http://www.debian.org/doc/debian-policy/ch-relationships.html has more details. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, Thanks! My concern is, that I am trying to first install "rubygems" from source and then after rubygems is installed, I am doing the following exec { "wgetrubygems": command => "wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz", cwd => "/tmp/", unless => "sudo gem update" } #untar it after it has been downloaded, this step requires the previous step to complete #hence the "require" dependency exec { "tarrubygems": command => "tar -xzvf rubygems-1.3.4.tgz", cwd => "/tmp/", require => Exec["wgetrubygems"], unless => "sudo gem update" } #and then install it using the setup.ruby script, this again requires the previous steps to complete #hence the dependency :) exec { "installrubygems": command => "ruby setup.rb", cwd => "/tmp/rubygems-1.3.4/", unless => "sudo gem update", require => [Package["ruby"], Package["rdoc"], Exec["tarrubygems"]] } #Create a symbolic link to the gem1.8 binary so as to execute the gem command, do it only if the symbolic link #does not exist, this step depends on the previous step to complete exec { "symlinkrubygem": command => "sudo ln -s /usr/bin/gem1.8 /usr/bin/gem", require => Exec["installrubygems"], unless => "test -L /usr/bin/gem" } package { "somepackage": provider => gem, require => Exec["symlinkrubygem"] } So for the above package to be installed, gem needs to be on the system, that means there needs to be an order there. So, if I use the "require" metaparameter, I want to make sure I am doing the right thing. So, am I on the right track? 2009/6/24 Mike Renfro <renfro@tntech.edu>> > On 6/24/2009 12:53 PM, Swati Tiwari wrote: > > I am sorry but I am very new to debian package management. When I try > > to ensure the installation of packages, if the package is not > > available, puppet issues "apt-get install package" which basically > > installs a stable binary. > > > > So, I am not sure how I will be able to set up dependencies directly > > while building packages. Could you please give me any ideas or am I > > shooting on a tangent? > > If these are standard Debian packages from a debian.org mirror, then the > dependencies should already be set, and you shouldn''t have any ordering > issues at all. > > If these are packages you''ve created locally, then you''d set needed > dependencies in the debian/control file. > http://www.debian.org/doc/debian-policy/ch-relationships.html has more > details. > > -- > Mike Renfro / R&D Engineer, Center for Manufacturing Research, > 931 372-3601 / Tennessee Technological University > > > >-- Regards, Swati --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You''ve switched from asking about the native puppet package type on Debian to how to get puppet to how to get download and build Gems from source. What you propose in the last message is probably about as good a solution as I''d be able to come up with. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I apologize for going off on a tangent like this and thanks for your patience and advice. 2009/6/25 Mike Renfro <renfro@tntech.edu>> > You''ve switched from asking about the native puppet package type on > Debian to how to get puppet to how to get download and build Gems from > source. > > What you propose in the last message is probably about as good a > solution as I''d be able to come up with. > > -- > Mike Renfro / R&D Engineer, Center for Manufacturing Research, > 931 372-3601 / Tennessee Technological University > > > >-- Regards, Swati --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---