New debops aliases to avoid compute nodes

This commit is contained in:
Jeremy Gardais 2018-04-18 17:32:27 +02:00
parent b82f0b7c95
commit bcfc4c5bb9
1 changed files with 4 additions and 2 deletions

6
zshrc
View File

@ -317,8 +317,8 @@ zstyle ':completion:*:*:task:*' group-name ''
# }}}
# DebOps {{{
## Apply all config to all hosts
alias deal="debops"
## Apply all config to all hosts except the new cluster nodes
alias deal="debops -l 'debops_all_hosts:!physix'"
## Limit to a define host/group
function deho() {
if [ ${ANS_HOST} ]; then
@ -331,6 +331,8 @@ function deho() {
function dero() {
debops -l "${ANS_HOST}" -t role::"${1}"
}
## Apply only on new cluster nodes
alias decc="debops -l 'physix'"
# }}}