Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-pre-commit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nimrod
python-pre-commit
Commits
695b05a3
Commit
695b05a3
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Added hook to verify vaulted files.
parent
d8351dd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible-vault-check
+7
-0
7 additions, 0 deletions
ansible-vault-check
hooks.yaml
+7
-1
7 additions, 1 deletion
hooks.yaml
with
14 additions
and
1 deletion
ansible-vault-check
0 → 100755
+
7
−
0
View file @
695b05a3
#!/bin/sh
set
-eu
for
filename
in
$@
do
grep
-q
ANSIBLE_VAULT
"
$filename
"
||
\
(
echo
"
$filename
is not vaulted."
&&
exit
1
)
done
This diff is collapsed.
Click to expand it.
hooks.yaml
+
7
−
1
View file @
695b05a3
---
---
-
id
:
ansible-
pre-commit
-
id
:
ansible-
syntax-check
name
:
Check Ansible playbooks
name
:
Check Ansible playbooks
description
:
Check Ansible playbooks for syntax errors.
description
:
Check Ansible playbooks for syntax errors.
language
:
script
language
:
script
entry
:
ansible-syntax-check
entry
:
ansible-syntax-check
files
:
playbook.yml
files
:
playbook.yml
-
id
:
ansible-vault-check
name
:
Verify vaulted files
description
:
Verify that Ansible Vault files are vaulted.
language
:
script
entry
:
ansible-vault-check
files
:
vault
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment