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

Puppet module generate - dependency problem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: PUP 4.0.0
    • Component/s: Modules, PMT
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      CODEMGMT 2015-02-11

      Description

      Puppet will generate module, which reports dependency problem when listed.

      Generate module:
      puppet module generate bla-bla

      Build module:
      puppet module build bla-bla

      Install module (It will correctly install stdlib dependency):
      puppet module install /root/bla-bla/pkg/bla-bla-0.1.0.tar.gz

      List modules (It will report missing dependency):
      [root@puppet7 ~]$ puppet module list
      Warning: Missing dependency 'puppetlabs-stdlib':
      'bla-bla' (v0.1.0) requires 'puppetlabs-stdlib' (>= 0.0.0)
      /etc/puppet/modules
      ├── bla-bla (v0.1.0)
      └── puppetlabs-stdlib (v4.3.2)
      /usr/share/puppet/modules (no modules installed)

      Possible fix is to replace '-' with '/' in dependency part of module metadata:
      sed -i -e 's|puppetlabs-stdlib|puppetlabs/stdlib|' bla-bla/metadata.json

      Then It doesn't report anything after rebuilding and reinstalling the module.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hasis053341 Fero kittler
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support