Issue #20179 has been updated by Charlie Sharpsteen.

Status changed from Unreviewed to Duplicate

Duplicate of #18229. A fix is in and should be part of the next release.

Thanks for reporting!

----------------------------------------
Bug #20179: misleading errormessage in puppet module install
https://projects.puppetlabs.com/issues/20179#change-89165

* Author: Alexander Swen
* Status: Duplicate
* Priority: Low
* Assignee: 
* Category: module tool
* Target version: 
* Affected Puppet version: 3.0.1
* Keywords: 
* Branch: 
----------------------------------------
trying to install puppetdb on puppetmaster (with config in /etc/puppet)

<pre><code>root@puppet:/etc# puppet module install puppetlabs/puppetdb
Preparing to install into /etc/puppet/modules ...
Downloading from https://forge.puppetlabs.com ...
Error: Could not install module 'puppetlabs-puppetdb' (latest: v1.2.1)
Dependency 'puppetlabs-apt' (v1.1.0) would overwrite /etc/puppet/modules/apt
    Use `puppet module install --dir < DIR > ` to install modules elsewhere
    Use `puppet module install --ignore-dependencies` to install only this 
module</code>(to keep above in one block i head to put spaces between the 
smaller-than and greater-than signs and the word DIR)</pre>

ok, fair enough, i will use some other dir:
<pre><code>root@puppet:/etc# mkdir puppetlabs
root@puppet:/etc# puppet module install --dir /etc/puppetlabs 
puppetlabs/puppetdb
Error: Could not parse application options: invalid option: --dir</code></pre>

WTF? the message says "use --dir" and that doesn't work?

got this suggestion from _rc (in chat #puppet):
<pre><code>root@puppet:/etc# puppet module install --modulepath /etc/puppetlabs 
puppetlabs/puppetdb
Preparing to install into /etc/puppetlabs ...
Downloading from https://forge.puppetlabs.com ...
Installing -- do not interrupt ...
/etc/puppetlabs
└─┬ puppetlabs-puppetdb (v1.2.1)
  ├── cprice404-inifile (v0.10.0)
  ├── puppetlabs-firewall (v0.2.1)
  └─┬ puppetlabs-postgresql (v2.1.1)
    ├── puppetlabs-apt (v1.1.0)
    ├── puppetlabs-stdlib (v3.2.0)
    └── ripienaar-concat (v0.2.0)</code></pre>

puppet help module install suggests --target-dir

I would encourage to use the same param everywhere


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to