Hello,
I am a newbie to salt and only want to use remote command execution (been using Puppet for years for configuration management), e.g. for scripting regular checks. One of those checks e.g. would be 'egrep "error|warning|fatal|fail" /var/log/daemon.log'.
Now, when I login via SSH, I have configured "alias egrep='egrep --ignore-case" in my "~/.bashrc" but I noticed that bash is not used by salt and therefore the alias is missing.
Of course, I could add "--ignore-case" to my cmd.run, but I would have to do this for every single check, so I am looking for a cleaner solution.
Is there a way to have cmd.run load those bash aliases?
Lars