Hi, Where is > Package["libxine1-ffmpeg"] declared in the first example?
You would need a package resource named libxine.. for puppet to reference. Cheers, Den On 19/04/2011, at 6:06, Edd Grant <e...@eddgrant.com> wrote: > Hi All, > > I am running Puppet on Ubuntu 10.10. AMD64. I have defined a class > (below) with which I wish to install basic audio and video packages. > > class audio-video { > $packagelist = ["vlc", "amarok"] > > package { $packagelist: > ensure => installed, > # Require xine to be installed prior to the installation of amarok > for mp3 playback. > require => Package["libxine1-ffmpeg"] > } > } > > When I run the above class I get the following error: Could not find > dependency Package[libxine1-ffmpeg] for Package[amarok] at /etc/puppet/ > manifests/classes/audio-video.pp:8 > > However if I change the class as follows everything works fine: > > class audio-video { > # In this example we are not being picky about ordering of > installation of libxine1-ffmpeg > $packagelist = ["vlc", "amarok", "libxine1-ffmpeg"] > > package { $packagelist: > ensure => installed, > } > } > > Although it is not operationally important I prefer the style of the > first example (using require => Package) since I believe it enforces > ordering, which in some cases may be very important. Is there > something wrong with the definition in the first example? Does anyone > have any idea why it doesn't work? > > Many thanks, > > Edd > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.