puppet-lint | Check that your Puppet manifests conform to the style guide | Code Analyzer library
kandi X-RAY | puppet-lint Summary
kandi X-RAY | puppet-lint Summary
Puppet Lint tests Puppet code against the recommended Puppet language style guide. Puppet Lint validates only code style; it does not validate syntax. To test syntax, use Puppet's puppet parser validate command.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns a new test .
- Handles missing methods
- Checks if missing attributes are missing
- get the subject
puppet-lint Key Features
puppet-lint Examples and Code Snippets
Community Discussions
Trending Discussions on puppet-lint
QUESTION
Im trying to run "puppet-lint -f (currently open file)
The Puppet extenstion provides puppet-lint check, but doesnt auto fix any issues, it just gives warnings. How can I add a keyboard shortcut to run "puppet-lint -f" on a file Im currently editing?
Thanks
...ANSWER
Answered 2020-Apr-15 at 14:00I don't know anything about the Puppet extension but in general here is how you can bind a shell command to a keychord:
Make a task for it (.vscode/tasks.json
):
QUESTION
I need to set up a series of Gitlab hooks within a Docker image that will be triggered on pre-commit. I have a Docker file and a pre-commit-config.yaml which builds successfully with the exception of one hook which I cannot seem to get working.
.pre-commit-config.yaml
...ANSWER
Answered 2020-Jan-30 at 20:35You shouldn't need to clone each repository manually and use local hooks in the way you're doing -- if you have clone access during build time you should be able to do the normal installation approach
To ensure all of the hooks are pre-installed, you'll want to run pre-commit install-hooks
as one of the commands in your dockerfile
This will ensure that all of the hook executables are properly cached in your image and then will be available later when you run pre-commit run ...
disclaimer: I'm the author of pre-commit
QUESTION
I would like to run puppet-parser-validate, and puppet-lint on my existing puppet orchestration. We will be creating a Jenkins job which is triggered by a gitlab push. The project structure is as follows:
...ANSWER
Answered 2017-Mar-09 at 08:35You can do it with help of systems such as Rake. Rake is sophisticated test runner written in Ruby and is a standard way of running test.
You can see example of Rake files when you generate new Puppet module with puppet module generate companyname-modulename
command. In root directory of your project you will find Rakefile
where you will see default configuration. In default configuration you can see that validation task is already done and ready to use. Just make sure that paths are ok.
To run validation task you need to make sure that gems mentionded in Gemfile
are installed. You can do it with bundle install
. To run validation task just run bundle exec rake validate
.
QUESTION
I have a puppet module project that fails when trying to update Gems, although it works in some computers. The Gems are used for the spec tests of the module.
Here's the command I run and the output:
...ANSWER
Answered 2017-Jan-04 at 17:30So, after further research, I found that the problem was not related to my code, files or configuration but with a problem with Rubygems.
Bottomline, I had to follow this link and manually update the certificate.
It looks like ruby wasn't able to connect to the server to check for dependencies of the gems I was requiring.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install puppet-lint
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page