From 4371025a0f9341788c7b7c7009e00fc592a23840 Mon Sep 17 00:00:00 2001 From: Grigory Efimov Date: Sat, 16 Sep 2023 00:09:39 +0300 Subject: [PATCH] .bashrc fixed alias for puppet --- .bashrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index 86e2d36..8795b86 100644 --- a/.bashrc +++ b/.bashrc @@ -254,15 +254,13 @@ export SCREENDIR=$HOME/.screen # puppet alias pagent='puppet agent -t' -alias pagent_noop='puppet agent -t --noop' +alias pagentNoop='puppet agent -t --noop' alias pagentMyenv='puppet agent -t --environment=gefimov' -alias pagentMyenv_noop='puppet agent -t --environment=gefimov --noop' -alias pagentMyenvLocal='puppet agent -t --environment=gefimov_local' -alias pagentMyenvLocal_noop='puppet agent -t --environment=gefimov_local --noop' +alias pagentMyenvNoop='puppet agent -t --environment=gefimov --noop' if [[ -s /etc/puppet/puppet.conf ]]; then if grep -qw environment /etc/puppet/puppet.conf; then PUPPET_ENV=$( grep -w environment /etc/puppet/puppet.conf | head -1 | awk '{print $NF}' ) - alias pagentPenv_noop="puppet agent -t --noop --environment=gefimov_$PUPPET_ENV" + alias pagentPenvNoop="puppet agent -t --environment=gefimov_$PUPPET_ENV --noop" alias pagentPenv="puppet agent -t --environment=gefimov_$PUPPET_ENV" fi fi