{"id":22296156,"url":"https://github.com/kakwa/validate-puppet","last_synced_at":"2026-05-02T15:32:52.079Z","repository":{"id":25909198,"uuid":"29349991","full_name":"kakwa/validate-puppet","owner":"kakwa","description":"Small shell script to validate puppet and erb source code","archived":false,"fork":false,"pushed_at":"2015-02-06T14:46:49.000Z","size":202,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T19:49:55.634Z","etag":null,"topics":["puppet","shell","validator"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kakwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-16T13:41:51.000Z","updated_at":"2023-08-18T13:04:33.000Z","dependencies_parsed_at":"2022-08-24T14:16:46.571Z","dependency_job_id":null,"html_url":"https://github.com/kakwa/validate-puppet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakwa%2Fvalidate-puppet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakwa%2Fvalidate-puppet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakwa%2Fvalidate-puppet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakwa%2Fvalidate-puppet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kakwa","download_url":"https://codeload.github.com/kakwa/validate-puppet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556827,"owners_count":20634887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["puppet","shell","validator"],"created_at":"2024-12-03T17:44:24.966Z","updated_at":"2026-05-02T15:32:52.037Z","avatar_url":"https://github.com/kakwa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# validate-puppet\n\n[![Join the chat at https://gitter.im/kakwa/validate-puppet](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kakwa/validate-puppet?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nSmall shell script to validate puppet and erb source code\n\n## Screenshot ##\n\n\u003cimg src=\"https://raw.githubusercontent.com/kakwa/validate-puppet/master/screen.png\"/\u003e\n\n## Usage ##\n\nHelp:\n```bash\nmodules/my_module1 » validate-puppet -h\nusage: validate-puppet [-h] [-d \u003cdirectory\u003e]\n\nsimple syntax checker for puppet and erb files\narguments:\n  -h:             displays this help\n  -s:             silent\n  -d \u003cdirectory\u003e: checks .erb and .pp file of \u003cdirectory\u003e\n                  if not specified, checks from current\n                  directory (./)\n\nExit status is the number of corrupted files\nif this number is below 254.\n254 is used for other errors.\n```\n\nExecute in current directory:\n```bash\nmodules/my_module1 » validate-puppet\nSyntax of [./manifests/init.pp]                                                   OK\nSyntax of [./tests/init.pp]                                                       OK\nSyntax check failed for [./templates/tmpl.conf.erb]                               KO\n```\n\nExecute in another directory:\n```bash\nmodules/my_module1 » validate-puppet -d ../my_other_module\nSyntax of [../my_other_module/manifests/init.pp]                                  OK\nSyntax of [../my_other_module/tests/init.pp]                                      OK\n```\n\nQuiet output (with 2 files in error):\n```bash\nmodules/my_module1 » validate-puppet -s -d ../my_last_module\nmodules/my_module1 » echo $?\n2\n```\n\n## Dependancies ##\n\nThis script needs puppet to be installed.\n\n## Installation ##\n\n\n### Proper way ###\n\nClone this repository or download a release and:\n\n```bash\nmake install\n```\n\n### Quick and dirty way ###\n\nAs root:\n\n```bash\nrm -f /usr/local/bin/validate-puppet\ncurl https://raw.githubusercontent.com/kakwa/validate-puppet/master/validate-puppet \\\n-o /usr/local/bin/validate-puppet\nchmod 755 /usr/local/bin/validate-puppet\n#end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakwa%2Fvalidate-puppet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkakwa%2Fvalidate-puppet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakwa%2Fvalidate-puppet/lists"}