Use sudo for pacemaker status output

The script collecting host information doesn't run as root, we need sudo
to make pacemaker status queries work. Also adding crm_verify output.

Change-Id: I5858ddf9d1d317591b4ec4e6d7633115b636709c
This commit is contained in:
Jiri Stransky 2015-08-11 14:25:43 +02:00
parent 9c0bf22293
commit bd8d37a546
1 changed files with 4 additions and 3 deletions

View File

@ -14,9 +14,10 @@ ip addr
free -h
rpm -qa
sudo os-collect-config --print
which pcs &> /dev/null && pcs status --full
which pcs &> /dev/null && pcs constraint show --full
which pcs &> /dev/null && pcs stonith show --full
which pcs &> /dev/null && sudo pcs status --full
which pcs &> /dev/null && sudo pcs constraint show --full
which pcs &> /dev/null && sudo pcs stonith show --full
which crm_verify &> /dev/null && sudo crm_verify -L -VVVVVV
EOF