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.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2740/head
Sébastien Han 2018-06-06 14:41:46 +08:00 committed by Guillaume Abrioux
parent 20c8065e48
commit 315ab08b16
3 changed files with 5 additions and 1 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

View File

@ -73,7 +73,7 @@ dummy:
#api_password: admin
#api_port: 5001
#api_secure: false
#loop_delay: .5
#loop_delay: 1
#trusted_ip_list: 192.168.122.1