Ask Your Question
1

Precedence of modules in modulepath

asked 2014-02-12 10:54:01 -0500

The Modulepath explains how multiple module paths can be specified.

If multiple paths are used, and two modules with the same name exist on each of the paths specified, is it true that the module used will be the one from the first path?

e.g.: the module 'myfirewall' exists in both modules/ and /etc/puppet/modules and modulepath is 'modules/:/etc/puppet/modules/'. Will modules/myfirewall always be used?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-25 07:36:12 -0500

OK, to be honest I thought this was that sort of question that gets an answer like "Of course, it's documented here and there". But no answers, so I've just experimented it, and the result is "yes".

I've defined the same module on a local path and on '/etc/puppet/modules/'.

The first module in the list of modulepath is used by Puppet.

/etc/puppet/modules is not considered at a higher precedence than other paths: the order in modulepath wins.

Tested with puppet 2.7.23-1~deb7u3 on debian wheezy.

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: 2014-02-12 10:54:01 -0500

Seen: 135 times

Last updated: Feb 25 '14