Ask Your Question

What is the difference between a manifest and a module?

asked 2015-06-08 23:42:53 -0500

Anthony57 gravatar image

A manifest is a .pp file with DSL commands. Manifests can contain desired state configurations. They can be node specific. It can be compiled into a catalog. They can be applied to a local server or to a Puppet Agent server. There is a subfolder for manifests in the puppet folder.

Modules can contain manifests. Modules can be used to arrange manifests. There is a subfolder in the puppet directory for modules.

Is any of the above wrong? I tried to research this. Can you use a module without a manifest?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2015-06-09 01:49:38 -0500

cbarbour gravatar image

A manifest is a file containing Puppet DSL code. A module is a structure used for creating portable code. While modules usually contain manifests, they also typically contain files, templates, metadata, and test cases.

You can absolutely create a module that does not contain a manifest. Modules that provide native extensions to Puppet are often built this way.

edit flag offensive delete link more

answered 2015-06-09 05:13:43 -0500

best going to the source of information:

explains things really well there - from the summary:

" Puppet uses its own domain-specific language (DSL) to describe machine configurations. Code in this language is saved in files called manifests.

Puppet works best when you isolate re-usable chunks of code into their own modules, then compose those chunks into more complete configurations. "

edit flag offensive delete link more

answered 2015-06-11 01:52:39 -0500

shirish shukla gravatar image

updated 2015-06-11 01:53:27 -0500

Generally manifests are defined in module . Set of 1 or more manifests build modules .

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


Asked: 2015-06-08 23:42:53 -0500

Seen: 2,314 times

Last updated: Jun 11 '15