Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2078

Puppet module install --force does not re-install dependencies

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: PUP 3.7.0
    • Component/s: Modules, PMT
    • Labels:
      None
    • Environment:

      All environment

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-6-25 to 2014-7-9, 2014-07-23, 2014-08-06

      Description

      Installing a module from forge on the commandline with --force does not (re)install its dependencies.

      installing normally

      $ puppet module install puppetlabs-ntp
      Notice: Preparing to install into /etc/puppet/modules ...
      Notice: Downloading from https://forge.puppetlabs.com ...
      Notice: Installing -- do not interrupt ...
      /etc/puppet/modules
      └─┬ puppetlabs-ntp (v3.0.3)
        └── puppetlabs-stdlib (v4.1.0)
      

      Now with --force:

      $ puppet module install --force puppetlabs-ntp
      Notice: Preparing to install into /etc/puppet/modules ...
      Notice: Downloading from https://forge.puppetlabs.com ...
      Notice: Installing -- do not interrupt ...
      /etc/puppet/modules
      └── puppetlabs-ntp (v3.0.3)
      

      The description of --force is: "Force overwrite of existing module, if any."
      And there is also an --ignore-dependencies flag "Do not attempt to install dependencies".

      Apparently --force also implies --ignore-dependencies which is not expected behaviour. If the user would want to ignore dependencies he would just use the --ignore-dependencies flag.

      Presently it is not possible to reinstall puppet modules without completely wiping all /etc/puppet/modules.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wernerb Werner Buck
                QA Contact:
                John Duarte
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support