blt04/puppet-rvm — Issue #22: Do dependencies really work?
Author: orkaa
Created: 2011-10-18 17:32:27+00:00
State: open

I tried running the module on ubuntu 10.10 with and it crashed with an error even though I have 'apache2' installed:

err: Failed to apply catalog: Could not find dependency Package[apache2] for Exec[passenger-install-apache2-module] at /etc/puppet/modules/rvm/manifests/classes/passenger-ubuntu-post.pp:10

Then I placed this line in 'rvm/manifests/classes/dependencies-ubuntu.pp':

if ! defined(Package['apache2']) { package { 'apache2': ensure => installed } }

This solved the problem, but I had to do the same thing for a number of other packages. Am I missing something here?

Puppet versions:
server - 2.7.1
client - 2.6.11

Also, it is written that the module was tested on ubuntu 10.04, but I see 'libapr-dev' in dependencies for ubuntu, which isn't even present on that version - libapr1-dev is.

Really, what am I missing? :)