.gitignore for Puppet
6 ignore rules for Puppet, ready to copy into your repository.
Configuration management tool
The complete .gitignore for Puppet
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:28:16 UTC
# Technologies: Puppet
### Puppet ###
pkg/*
Gemfile.lock
spec/fixtures/*
coverage/*
vendor/*
.bundle/*
What these Puppet rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Built packages
| Pattern | What it ignores |
|---|---|
pkg/* |
Built packages |
Should run on multiple platforms so don't check in
| Pattern | What it ignores |
|---|---|
Gemfile.lock |
Should run on multiple platforms so don't check in |
Tests
| Pattern | What it ignores |
|---|---|
spec/fixtures/* |
Tests |
coverage/* |
Tests |
Third-party
| Pattern | What it ignores |
|---|---|
vendor/* |
Third-party |
.bundle/* |
Third-party |
How to use this .gitignore for Puppet
- Copy the Puppet rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.