Aethylred / puppet-puppetdashboard

This Puppet module manages the installation of the Puppet Dashboard web interface.
2 stars 2 forks source link

Could not find dependency Package[rake] #11

Closed duffybelfield closed 9 years ago

duffybelfield commented 9 years ago

Error: Failed to apply catalog: Could not find dependency Package[rake] for Exec[puppetdashboard_dbmigrate] at /etc/puppet/modules/puppetdashboard/manifests/db/initialise.pp:43

Aethylred commented 9 years ago

Ah, it looks like I've not updated the documentation to say that it requires the Puppetlabs Ruby module >=0.3.0, nor included how it should be included.

Install the module https://forge.puppetlabs.com/puppetlabs/ruby

and before calling the puppetdashboard add:

include ruby
include ruby::dev
duffybelfield commented 9 years ago

Thanks for that :+1:

Will give it a go now!

duffybelfield commented 9 years ago

On Ubuntu 14.04 LTS

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby1.9.1-full' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: ruby1.9.1-full : Depends: ruby1.9.1 (>= 1.9.3.484-2ubuntu1) but 1.9.3.0-1ubuntu1 is to be installed Depends: libruby1.9.1-dbg (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ruby1.9.1-dev (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ruby1.9.1-examples (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ri1.9.1 (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Recommends: libtcltk-ruby1.9.1 (>= 1.9.3.484-2ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. Error: /Stage[main]/Ruby/Package[rubygems]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby1.9.1-full' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: ruby1.9.1-full : Depends: ruby1.9.1 (>= 1.9.3.484-2ubuntu1) but 1.9.3.0-1ubuntu1 is to be installed Depends: libruby1.9.1-dbg (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ruby1.9.1-dev (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ruby1.9.1-examples (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Depends: ri1.9.1 (>= 1.9.3.484-2ubuntu1) but it is not going to be installed Recommends: libtcltk-ruby1.9.1 (>= 1.9.3.484-2ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. Notice: /Stage[main]/Git/Package[git]/ensure: ensure changed 'purged' to 'present' Notice: /Package[pkg-config]: Dependency Package[rubygems] has failures: true Warning: /Package[pkg-config]: Skipping because of failed dependencies Notice: /Package[ruby-dev]: Dependency Package[rubygems] has failures: true Warning: /Package[ruby-dev]: Skipping because of failed dependencies Notice: /Package[ri]: Dependency Package[rubygems] has failures: true Warning: /Package[ri]: Skipping because of failed dependencies Notice: /Package[bundler]: Dependency Package[rubygems] has failures: true Warning: /Package[bundler]: Skipping because of failed dependencies Notice: /Package[rake]: Dependency Package[rubygems] has failures: true Warning: /Package[rake]: Skipping because of failed dependencies Info: Creating state file /var/lib/puppet/state/state.yaml

Aethylred commented 9 years ago

hmm. working on it. it looks like some of the work I was doing on the merge_configs branch has leaked over or something.

duffybelfield commented 9 years ago

That's cool dude, let me know!

duffybelfield commented 9 years ago

After changing my manifest to:

include apt apt::ppa{'ppa:brightbox/ruby-ng-experimental':} class{'ruby': version => '1.9.1', switch => true, latest_release => true, require => Apt::Ppa['ppa:brightbox/ruby-ng-experimental'], }

I could get ruby installed (not ruby dev) and I'm still getting the rake issue :(

duffybelfield commented 9 years ago

After adding: ruby::dev

I then get: Error: Could not find a suitable provider for mysql_user Error: Could not find a suitable provider for mysql_database

Aethylred commented 9 years ago

yup, now it needs https://forge.puppetlabs.com/puppetlabs/mysql

Aethylred commented 9 years ago

It's shaping up at the moment, but I had to do some fixes for Trusty.

Aethylred commented 9 years ago

all updated, documentation and test scripts should now provide the information you required.