Issue #10207 has been reported by Tom De Vylder.
----------------------------------------
Bug #10207: puppet apply ignores multiple directories as parameters
https://projects.puppetlabs.com/issues/10207
Author: Tom De Vylder
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: apply
argumenterror
Branch:
This works fine:
<pre>
# cat /etc/puppet/puppet.conf
[main]
...
modulepath=/etc/puppet/production/modules:/etc/puppet/common/modules
templatedir=/etc/puppet/production/templates:/etc/puppet/common/templates
# puppet agent --test
...
</pre>
This doesn't work:
<pre>
puppet apply init.pp --debug \
--environment production \
--manifest /tmp/init.pp \
--modulepath /tmp/puppet/production/modules:/tmp/puppet/common/modules \
--templatedir /tmp/puppet/production/templates:/tmp/puppet/common/templates
</pre>
(and a variety of notations, with or without (single/double) quotes, space
instead of colon, etc.)
And dies with the following error:
<pre>
info: Loading facts in ...
info: Loading facts in ...
Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find
declared class company at /tmp/init.pp:6 on node node.example.org
</pre>
Anything inside the common directories (after the colon) is ignored when using
puppet apply. Thus resulting in the above error.
Probably not very useful but for the sake of completeness:
<pre>
# cat init.pp
class { 'company': } # common dir
class { 'mysql': } # production dir
Class['company'] ->
Class['mysql']
</pre>
Tested on puppet versions: 2.6.7; 2.7.1; 2.7.2; 2.7.4
OS: Debian 6, clean netinstall
If anyone needs more information please let me know.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.