-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- repo: [email protected]:pre-commit/pre-commit-hooks | ||
sha: 96fb7fa10f2f4c11ed33482a9ad7474251e5e97f | ||
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0 | ||
hooks: | ||
- id: detect-private-key | ||
files: ^(?!\.?git-crypt) | ||
|
@@ -27,28 +27,28 @@ | |
- id: requirements-txt-fixer | ||
- id: name-tests-test | ||
- repo: git://github.com/pre-commit/mirrors-pylint | ||
sha: v1.6.4 | ||
sha: v1.6.4.post1 | ||
hooks: | ||
- id: pylint | ||
args: | ||
- --rcfile=.pylintrc | ||
- repo: git://github.com/pre-commit/mirrors-scss-lint | ||
sha: v0.50.2 | ||
sha: v0.52.0 | ||
hooks: | ||
- id: scss-lint | ||
files: \.(scss)$ | ||
- repo: [email protected]:pre-commit/pre-commit | ||
sha: v0.9.4 | ||
sha: b63748f5572682e7bf8b30b12d67b293b2eae3dc | ||
hooks: | ||
- id: validate_config | ||
- id: validate_manifest | ||
- repo: git://github.com/FalconSocial/pre-commit-python-sorter | ||
sha: 1.0.4 | ||
sha: b57843b0b874df1d16eb0bef00b868792cb245c2 | ||
hooks: | ||
- id: python-import-sorter | ||
args: | ||
- --silent-overwrite | ||
- repo: git://github.com/detailyang/pre-commit-shell | ||
sha: 1fdffa0434cde2b87f19ad258201d3e81481af5f | ||
sha: 75af325c913743d7abf2ff6fd71dfbf9490bd8b4 | ||
hooks: | ||
- id: shell-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
export PROJECT_NAME=ansible-role-monit | ||
export PYTHON_VERSION=2.7.9 | ||
export PYENV_NAME="${PROJECT_NAME}" | ||
|
||
export GRIP_PORT=6430 | ||
|
||
# Vars Dir | ||
export ROOT_DIR | ||
ROOT_DIR=$(pwd) | ||
export RESOURCES_DIR="$ROOT_DIR/resources" | ||
export RESOURCES_DB_DIR="$RESOURCES_DIR/db" | ||
export PROVISION_DIR="$ROOT_DIR/provision/ansible" | ||
export SOURCE_DIR="${ROOT_DIR}/" | ||
export REQUIREMENTS_DIR="${SOURCE_DIR}/requirements/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
{ | ||
rm -rf -- **/**/*__pycache__ | ||
rm -rf -- **/**/*.pyc | ||
rm -rf -- **/**/*.swp | ||
} >> /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
ansible-playbook "${FILE_PLAYBOOK}" -i "${PATH_INVENTORY}" -v \ | ||
--user="${USER}" --private-key="${PRIVATE_KEY}" \ | ||
--extra-vars "${EXTRA_VARS}" \ | ||
--vault-password-file ~/.vault_pass.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
grip --pass "${GITHUB_API_TOKEN}" "${GRIP_PORT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
pyenv activate "${PYENV_NAME}" >> /dev/null 2>&1 || echo 'Oh Yeah!!' | ||
pip install -r "${REQUIREMENTS_DIR}/dev.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
bundle exec linguist --breakdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
pre-commit install -f --install-hooks | ||
pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
# load source files externals | ||
if [ -e "$HOME/.pyenv" ]; then | ||
eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)" | ||
fi | ||
|
||
cd "${ROOT_DIR}" || exit | ||
|
||
pyenv virtualenv "${PYTHON_VERSION}" "${PYENV_NAME}" >> /dev/null 2>&1 || echo 'Oh Yeah!!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
ansible-galaxy install -r requirements.yml \ | ||
--roles-path "${PROVISION_DIR}"/roles/contrib --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
ansible-playbook tests/test.yaml -i tests/inventory --syntax-check | ||
ansible-playbook -i tests/inventory tests/test.yaml --connection=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# -*- coding: utf-8 -*- | ||
|
||
# shellcheck source=/dev/null | ||
[ -r "script/bootstrap.sh" ] && source "script/bootstrap.sh" | ||
|
||
cd "${SOURCE_DIR}" || exit |