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

puppet module tool validates the wrong directory when used w/ --environment

    Details

    • Type: Bug
    • Status: Ready for Engineering
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PMT
    • Labels:
      None
    • Template:
    • Team:
      Puppet Developer Experience

      Description

      When installing to an environment, puppet module tool validates the $basemodulepath instead of the correct environment directory.

      root@puppetfactory:/etc/puppetlabs/code/environments # puppet module install puppetlabs/motd --environment binford2k
      Notice: Preparing to install into /etc/puppetlabs/code/environments/binford2k/modules ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Error: Could not install module 'puppetlabs-motd' (latest)
        Installation would overwrite /etc/puppetlabs/code/modules/motd      <===== not the right env!
          Use `puppet module install --force` to install this module anyway
      root@puppetfactory:/etc/puppetlabs/code/environments # puppet module install puppetlabs/motd --environment binford2k --force
      Notice: Preparing to install into /etc/puppetlabs/code/environments/binford2k/modules ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Notice: Installing -- do not interrupt ...
      /etc/puppetlabs/code/environments/binford2k/modules
      └── puppetlabs-motd (v1.2.0)
      

      Also fails:

      • --target-dir /etc/puppetlabs/code/environments/binford2k/modules

      Works:

      • --modulepath /etc/puppetlabs/code/environments/binford2k/modules

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                ben.ford Ben Ford
                QA Contact:
                Eric Thompson
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support