Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Puppet Plans #96

Closed
wants to merge 1 commit into from

Conversation

MikaelSmith
Copy link
Member

Use the tasks mode of the Puppet parser to syntax check plans in the plans/ directory of a module. Fixes #95.

Use the `tasks` mode of the Puppet parser to syntax check plans in the
`plans/` directory of a module. Fixes voxpupuli#95.
@@ -13,7 +13,11 @@ def filelist(paths)
end

def filelist_manifests
filelist("**/*.pp")
filelist("**/*.pp").exclude('plans/**/*')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went conservative on what we check for plans; this obviously won't work well in a control repo layout. However since we now have two things with the same extension that are parsed differently, the only way to identify them is with file path.

@hlindberg have a suggestion here? Should we just set Puppet[:tasks] = true for all manifests? Is there future work to make that possible?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point differentiate by path is the best we can do. Not sure what you mean by always setting Puppet[:tasks] = true, obviously it should not be set for non plans / scripts...

@MikaelSmith
Copy link
Member Author

Looks like the related issue was resolved.

bastelfreak pushed a commit to slauger/puppet-syntax that referenced this pull request Oct 5, 2019
bastelfreak added a commit that referenced this pull request Oct 5, 2019
add support for validating puppet plans (fixes #95, fixes #96)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Bolt Plans
2 participants