From 07f2354317788888290cfba95c70505e79bad39f Mon Sep 17 00:00:00 2001 From: saibotk Date: Mon, 10 Aug 2020 02:06:18 +0200 Subject: [PATCH] Add .editorconfig & .vault_pass --- .editorconfig | 18 ++++++++++++++++++ .vault_pass | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .editorconfig create mode 100755 .vault_pass diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..aa9c364 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false + +[*.{yaml,yml}] +indent_size = 2 +indent_style = space diff --git a/.vault_pass b/.vault_pass new file mode 100755 index 0000000..cde7cb9 --- /dev/null +++ b/.vault_pass @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$CI_VAULT_PASS" != "" ]; then + echo "$CI_VAULT_PASS" + exit 0 +fi + +if command -v pass >/dev/null 2>&1; then + pass show server/ansible-vault + exit 0 +fi