puppet-pacemaker/examples/pacemaker_location/show.sh

11 lines
265 B
Bash
Executable File

#!/bin/sh
show() {
puppet resource pacemaker_location "${1}"
cibadmin --query --xpath "/cib/configuration/constraints/rsc_location[@id='${1}']"
echo '--------------------'
}
show 'location-test1_location_with_rule'
show 'location-test1_location_with_score'