]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ansible: use 'bool' filter on boolean conditionals
authorL3D <l3d@c3woc.de>
Wed, 22 May 2019 08:02:42 +0000 (10:02 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Jun 2019 08:21:17 +0000 (10:21 +0200)
commitab54fe20ec2e3bf16e4544c39548d1e21dacf0d5
tree581cde52ea813cb8629c2b77aa58cece9ca7971e
parent518ab794fb0965c6ca8af56f18e0c54529eca8d5
ansible: use 'bool' filter on boolean conditionals

By running ceph-ansible there are a lot ``[DEPRECATION WARNING]`` like these:
```
[DEPRECATION WARNING]: evaluating containerized_deployment as a bare variable,
this behaviour will go away and you might need to add |bool to the expression
in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
```

Now appended ``| bool`` on a lot of the affected variables.

Sometimes the coding style from ``variable|bool`` changed to ``variable | bool`` *(with spaces at the pipe)*.

Closes: #4022
Signed-off-by: L3D <l3d@c3woc.de>
61 files changed:
infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/rolling_update.yml
infrastructure-playbooks/shrink-mon.yml
infrastructure-playbooks/shrink-osd.yml
infrastructure-playbooks/untested-by-ci/recover-osds-after-ssd-journal-failure.yml
infrastructure-playbooks/untested-by-ci/replace-osd.yml
library/ceph_crush.py
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-client/tasks/main.yml
roles/ceph-client/tasks/pre_requisite.yml
roles/ceph-common/tasks/create_rbd_client_dir.yml
roles/ceph-common/tasks/installs/configure_redhat_local_installation.yml
roles/ceph-config/tasks/main.yml
roles/ceph-container-common/tasks/fetch_image.yml
roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml
roles/ceph-dashboard/tasks/configure_dashboard.yml
roles/ceph-facts/tasks/facts.yml
roles/ceph-grafana/tasks/configure_grafana.yml
roles/ceph-handler/handlers/main.yml
roles/ceph-handler/tasks/check_running_cluster.yml
roles/ceph-infra/tasks/configure_firewall.yml
roles/ceph-infra/tasks/main.yml
roles/ceph-infra/tasks/setup_ntp.yml
roles/ceph-iscsi-gw/tasks/common.yml
roles/ceph-iscsi-gw/tasks/main.yml
roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml
roles/ceph-mds/tasks/main.yml
roles/ceph-mgr/tasks/common.yml
roles/ceph-mgr/tasks/main.yml
roles/ceph-mgr/tasks/start_mgr.yml
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/crush_rules.yml
roles/ceph-mon/tasks/deploy_monitors.yml
roles/ceph-mon/tasks/main.yml
roles/ceph-mon/tasks/start_monitor.yml
roles/ceph-nfs/tasks/common.yml
roles/ceph-nfs/tasks/create_rgw_nfs_user.yml
roles/ceph-nfs/tasks/main.yml
roles/ceph-nfs/tasks/pre_requisite_container.yml
roles/ceph-nfs/tasks/pre_requisite_non_container.yml
roles/ceph-nfs/tasks/pre_requisite_non_container_debian.yml
roles/ceph-nfs/tasks/start_nfs.yml
roles/ceph-osd/tasks/common.yml
roles/ceph-osd/tasks/container_options_facts.yml
roles/ceph-osd/tasks/main.yml
roles/ceph-osd/tasks/openstack_config.yml
roles/ceph-osd/tasks/start_osds.yml
roles/ceph-osd/tasks/system_tuning.yml
roles/ceph-rbd-mirror/tasks/common.yml
roles/ceph-rbd-mirror/tasks/main.yml
roles/ceph-rgw/tasks/common.yml
roles/ceph-rgw/tasks/main.yml
roles/ceph-rgw/tasks/multisite/main.yml
roles/ceph-rgw/tasks/pre_requisite.yml
roles/ceph-validate/tasks/main.yml
site-container.yml.sample
site.yml.sample
tests/functional/lvm_setup.yml
tests/functional/rgw_multisite.yml
tests/functional/rhcs_setup.yml
tests/functional/setup.yml