]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: Fix system_secret_key variable handling
authorpetruha <5363545+p37ruh4@users.noreply.github.com>
Mon, 16 Mar 2020 16:35:20 +0000 (17:35 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 16 Mar 2020 21:38:52 +0000 (17:38 -0400)
commit73b3fadb0ed4cd9eba62669c189fa76178431f07
treeff753b5a8a063807eb8e79ac3bbc6c4f1c8ce2dd
parent8e8aa735e0193786a11e36c84e3dfeb5ec50e95f
ceph-facts: Fix system_secret_key variable handling

This commit fixes the system_secret_key variable not substitued by the
right value and always using the 'system_secret_key' string instead.

$ egrep 'system_(access|secret)_key' group_vars/all.yml
system_access_key: foofoofoofoofoofoofo
system_secret_key: barbarbarbarbarbarbarbarbarbarbarbarbarb

$ ansible-playbook -vv -i hosts site.yml.sample -e rgw_multisite=true
(...)
  - hostname: storage0
    endpoint: http://192.168.100.42:8080
    instance_name: rgw0
    radosgw_address: 192.168.50.3
    radosgw_frontend_port: 8085
    rgw_realm: canada
    rgw_zone: montreal
    rgw_zone_user: justin.trudeau
    rgw_zone_user_display_name: Justin Trudeau
    rgw_zonegroup: quebec
    system_access_key: foofoofoofoofoofoofo
    system_secret_key: system_secret_key

Fixes https://github.com/ceph/ceph-ansible/issues/5150

Signed-off-by: petruha <5363545+p37ruh4@users.noreply.github.com>
roles/ceph-facts/tasks/set_radosgw_address.yml