Re: 0.24.1 puppetmaster skips new config with syntax errors?

Luke Kanies
Tue, 12 Feb 2008 20:20:24 -0000

On Feb 12, 2008, at 1:51 PM, Nigel Kersten wrote:

> On Feb 12, 2008 9:27 AM, Mark Plaksin <happy@usg.edu> wrote:
>
> (I finally have a pre-commit hook in place so I shouldn''t run into
> this
> situation any more :)
>
>
> One thing I noticed that I wasn''t sure if it was a bug or not was
> that puppetmasterd --parseonly ignores modules if you''re not
> explicitly importing the init.pp files with globbing.
>
> I ended up setting up a parseonly.pp file and class that does
> explicitly parse them like:
>
> puppetmasterd --parseonly --verbose --confdir="${confdir}" --
> manifest="${confdir}/manifests/parseonly.pp"
>
> class parseonly {
>   import "../../modules/*/manifests/init.pp"
> }
>
> include parseonly
>
> import "site.pp"
>
>
> Should this be considered a bug ?

Implicit imports happen at compile time, not parse time, so there''s no
way to know what files would be imported.

I recommend running parseonly againsts all changed .pp files, basically.


--
I used to get high on life but lately I''ve built up a resistance.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com