Bug #14359
Puppet Module Install fails to resolve dependencies listed in Modulefile with a hypen (-)
| Status: | Accepted | Start date: | 05/08/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Keywords: | moduletool module geordi | Affected URL: | ||
| Branch: | ||||
Description
Take for example, puppetlabs-apache has a Modulefile that looks like this:
name 'puppetlabs-apache' version '0.0.3' source 'git://github.com/puppetlabs/puppetlabs-apache.git' author 'puppetlabs' license 'Apache 2.0' summary 'Puppet module for Apache' description 'Module for Apache configuration' project_page 'https://github.com/puppetlabs/puppetlabs-apache' ## Add dependencies, if any: dependency 'puppetlabs-firewall', '>= 0.0.4'
puppetlabs-firewall has a Modulefile that looks like:
name 'puppetlabs-firewall' version '0.0.4' source 'git://github.com/puppetlabs/puppetlabs-firewall.git' author 'puppetlabs' license 'ASL 2.0' summary 'Firewall Module' description 'Manages Firewalls such as iptables' project_page 'http://forge.puppetlabs.com/puppetlabs/firewall'
Trying to install puppetlabs/apache via puppet module install results in this:
[root@puppetmaster ~]# puppet module install puppetlabs-apache
Preparing to install into /etc/puppetlabs/puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not install module 'puppetlabs-apache' (latest: v0.0.4)
No version of 'puppetlabs-firewall' will satisfy dependencies
'puppetlabs-apache' (v0.0.4) requires 'puppetlabs-firewall' (>= 0.0.4)
Use `puppet module install --ignore-dependencies` to install only this module
Changing the dependency line on puppetlabs-apache to dependency ‘puppetlabs/firewall’, ‘>= 0.0.4’ resolves the problem.
Related issues
History
#1
Updated by Daniel Pittman about 1 year ago
- Category set to modules
- Status changed from Unreviewed to Accepted
- Target version set to 3.x
#2
Updated by Ken Barber 11 months ago
- Category changed from modules to module tool
#3
Updated by Nigel Kersten 8 months ago
- Project changed from Puppet to Puppet Forge
- Category deleted (
module tool) - Assignee set to Ryan Coleman
- Target version deleted (
3.x)