Jira (PUP-10927) Puppet should fail parsing if the manifest(s) don't exist

3 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Feb 18, 2021, 11:51:03 PM2/18/21
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Bug PUP-10927
Puppet should fail parsing if the manifest(s) don't exist
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/02/18 8:50 PM
Priority: Normal Normal
Reporter: Josh Cooper

The compiler may produce an empty catalog if the manifests directory doesn't exist. During puppet apply manifest.pp, the apply application verifies that the manifest.pp file exists, but if a custom fact changes the current working directory, then the parser tries to parse <newdir>/manifest.pp, which doesn't exist. Most surprisingly, puppet apply produces an empty catalog! See PUP-9997.

It is also possible to request a catalog from the v4 endpoint with environment "" (empty string), and the compiler similarly tries to parse a non-existent /etc/puppetlabs/code/environments/manifests directory and returns an empty catalog.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Feb 18, 2021, 11:55:03 PM2/18/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages