Bug #10207
puppet apply ignores multiple directories as parameters
| Status: | Accepted | Start date: | 10/21/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 2.7.x | Estimated time: | 1.00 hour | |
| Affected Puppet version: | Branch: | |||
| Keywords: | apply
argumenterror |
|||
| Votes: | 1 |
Description
This works fine:
# 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 ...
This doesn’t work:
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
(and a variety of notations, with or without (single/double) quotes, space instead of colon, etc.)
And dies with the following error:
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
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:
# cat init.pp
class { 'company': } # common dir
class { 'mysql': } # production dir
Class['company'] ->
Class['mysql']
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.
Related issues
History
Updated by Tom De Vylder 7 months ago
Forgot to mention the above error also occurs when using —config.
Updated by Kelsey Hightower 6 months ago
I am going to try and reproduce this on my setup.
Updated by Kelsey Hightower 6 months ago
- Due date set to 11/18/2011
- Status changed from Unreviewed to Investigating
- Assignee set to Kelsey Hightower
- Estimated time set to 1.00
Updated by Kelsey Hightower 6 months ago
- Status changed from Investigating to In Topic Branch Pending Review
- Target version set to 2.7.x
- % Done changed from 0 to 100
- Branch set to https://github.com/puppetlabs/puppet/pull/227
Updated by Kelsey Hightower 6 months ago
- Status changed from In Topic Branch Pending Review to Code Insufficient
- Branch deleted (
https://github.com/puppetlabs/puppet/pull/227)
Wrong ticket
Updated by Kelsey Hightower 6 months ago
- Due date deleted (
11/18/2011) - % Done changed from 100 to 0
Updated by Nick Lewis 6 months ago
- Status changed from Code Insufficient to Accepted
Updated by Kelsey Hightower about 1 month ago
- Assignee deleted (
Kelsey Hightower)