Jaap Winius
2013-Jul-29 01:03 UTC
[Puppet Users] Installing LibreOffice 4 via wheezy-backports
Hi folks, My site uses puppetmaster 3.2.3 together with Debian wheezy, but I want a few packages from wheezy-backports, like iceweasel and libreoffice. The former I''ve installed as follows: package { "iceweasel": ensure => ''22.0-1~bpo70+1'', provider => ''apt'', install_options => { ''-t'' => ''wheezy-backports'' }, require => Class["xfce"], } However, when I try this with libreoffice I run into a series of dependecy problems that do not occur when installing manually with "apt- get install -t wheezy-backports libreoffice". Can anyone help? Thanks, Jaap -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Jaap Winius
2013-Jul-30 22:19 UTC
Re: [Puppet Users] Installing LibreOffice 4 via wheezy-backports
Hi folks, When my initial attempt to install libreoffice via wheezy-backports didn''t work, I decided to take a less elegant approach: exec { "libreoffice-bpo": command => "/usr/bin/apt-get -t wheezy-backports libreoffice \ --yes --force-yes", onlyif => "/usr/bin/test `/usr/bin/dpkg -l |/bin/grep \ libreoffice |/bin/grep -c bpo` -lt 10", require => Class["spell"], } Unfortunately even this doesn''t work, giving "returned 100 instead of one of [0]", seemingly as a result of the same dependency problem. Moreover, instead of including just "libreoffice" in the apt-get command line, listing every one of the other packages to be installed makes no difference either. Any ideas for a workaround? Cheers, Jaap -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Gonéri Le Bouder
2013-Sep-30 19:53 UTC
Re: [Puppet Users] Installing LibreOffice 4 via wheezy-backports
On Wednesday, July 31, 2013 12:19:23 AM UTC+2, Jaap Winius wrote:> > Hi folks, > > When my initial attempt to install libreoffice via wheezy-backports > didn''t work, I decided to take a less elegant approach: >Hi Jaap, Did you try with: provider => ''aptitude'', package { ''libreoffice'': ensure => installed, provider => ''aptitude'', install_options => { ''-t'' => ''wheezy-backports'' }, } Best regards, -- Gonéri -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Jaap
2013-Sep-30 23:15 UTC
Re: [Puppet Users] Installing LibreOffice 4 via wheezy-backports
On Mon, 30 Sep 2013 12:53:15 -0700, Gonéri Le Bouder wrote:> Did you try with: > provider => ''aptitude'', > > package { ''libreoffice'': > ensure => installed, > provider => ''aptitude'', > install_options => { ''-t'' => ''wheezy-backports'' }, > }That works -- excellent! Thank you very much, Gonéri; that improves my puppet configuration considerably. :-) Cheers, Jaap -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Jaap
2013-Sep-30 23:44 UTC
Re: [Puppet Users] Installing LibreOffice 4 via wheezy-backports
On Mon, 30 Sep 2013 12:53:15 -0700, Gonéri Le Bouder wrote:> provider => ''aptitude'', > > package { ''libreoffice'': > ensure => installed, > provider => ''aptitude'', > install_options => { ''-t'' => ''wheezy-backports'' }, > }One small note. On subsequent runs of "puppet agent -t" the above configuration results in the following type of message for all of the wheezy-backports packages to install: notice: /Package[libreoffice]/ensure: ensure changed ''1:3.5.4+dfsg2-0 +deb7u2'' to ''install'' This also slows down every single run of the Puppet client. Luckily, the fix is easy: just use "ensure => present," instead. Cheers, Jaap -- 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. For more options, visit https://groups.google.com/groups/opt_out.