From 1d9bb7279b6c042c8ec5f09ed6c91db184a4820a Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 7 Mar 2018 16:32:10 +0100 Subject: [PATCH] Add DebOps aliases --- zshrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zshrc b/zshrc index 489b5cb..092976f 100644 --- a/zshrc +++ b/zshrc @@ -304,6 +304,20 @@ function tase() { # }}} +# DebOps {{{ +## Apply all config to all hosts +alias deal="debops --ask-vault-pass" +## Limit to a define host/group +alias deho="debops --ask-vault-pass -l ${ANS_HOST}" + +## Limit to a define host/group and to a role +function dero() { + debops --ask-vault-pass -l "${ANS_HOST}" -t role::"${1}" +} + +# }}} + + ####################################### #Ouverture d'un programme en fonction #de l'extension du fichier