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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to