contrib: fix generate group_vars samples

For ceph-iscsi-gw and ceph-rbd-mirror roles the group_name are named
differently (by default) than the role name so we have to change the
script to generate the correct name.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1602327
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 315ab08b16)
pull/3024/head
Sébastien Han 2018-08-13 18:06:06 +02:00 committed by mergify[bot]
parent 19c7ca1983
commit 51de29046b
3 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ for role in "$basedir"/roles/ceph-*; do
output="agent.yml.sample"
elif [[ $rolename == "ceph-fetch-keys" ]]; then
output="ceph-fetch-keys.yml.sample"
elif [[ $rolename == "ceph-rbd-mirror" ]]; then
output="rbdmirrors.yml.sample"
elif [[ $rolename == "ceph-iscsi-gw" ]]; then
output="iscsigws.yml.sample"
else
output="${rolename:5}s.yml.sample"
fi