]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
generate_group_vars_sample: ability to merge roles
authorSébastien Han <seb@redhat.com>
Mon, 15 May 2017 13:49:45 +0000 (15:49 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 15 May 2017 13:53:47 +0000 (15:53 +0200)
commita8c75c3bc9bd7211483f54cd98a99c95f69e7958
tree1541b3096b0f93b0d55b98b3de7c56318ffcc6c8
parent53be0980be65170bb4f2acb3c87b0c1eff8c7acb
generate_group_vars_sample: ability to merge roles

Problem: the meta declaration just includes the role, it does nothing
with the group_vars. For ansible to use files defined in group_vars/ the
name of the file must match a host group. Like mons, osds, etc. There is
no group docker-common so the variables defined there are never used, as
proved by https://bugzilla.redhat.com/show_bug.cgi?id=1447179 and the
ansible documentation.

Solution: bring the ability to merge roles files. So now by default,
ceph-docker-common and ceph-common will go into all.yml.sample

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1447179
Signed-off-by: Sébastien Han <seb@redhat.com>
generate_group_vars_sample.sh