Ask Your Question
0

Where is a module's version information stored?

asked 2013-11-18 13:48:02 -0500

spuder gravatar image

updated 2013-11-27 20:12:26 -0500

I'm running into an issue where my modules dependencies are not automatically resolved. I suspect the issue is caused by the fact that the meta data for my module is not recognized

Notice how foo has (???) next to it?

[root@cent modules]# puppet module list
/etc/puppet/modules
├── foo (???)
├── puppetlabs-mysql (v2.1.0)
└── puppetlabs-stdlib (v4.1.0)
/usr/share/puppet/modules (no modules installed)

Foo contains a Module file (sanitized)

name 'spuder-foo'
version '0.1.0'

author 'Joe Smoe'
license ''
project_page 'https://microsoft.com'
source 'https://microsoft.com'
summary ''
description ''
dependency 'example42/puppi', '>=2.0.0'
dependency 'puppetlabs/mysql ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-11-18 22:56:52 -0500

spuder gravatar image

updated 2013-11-27 18:45:44 -0500

I've found that the module information is stored in metadata.json

{
  "name": "foo-bar",
  "version": "0.1.0",
  "summary": "",
  "author": "Joe Some",
  "description": "",
  "dependencies": [
    {
      "name": "example42/puppi",
      "version_requirement": "\u003e\u003d2.0.0"
    },
    {
      "name": "puppetlabs/mysql",
      "version_requirement": "\u003e\u003d2.0.0"
    }
  ],
  "types": [],
  "checksums": {},
  "source": "",
  "project_page": "",
  "license": ""
}

However, it appears that the metadata.json file is ignored on my system. (Most likely is a 'feature' of the IDE I am using; geppetto).

Because of this, the module will not have any metadata if cloned from a git repo.

Update

metadata.json is included in the .gitignore by default if you are using ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-11-18 13:48:02 -0500

Seen: 93 times

Last updated: Nov 27 '13