ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 3e262e072b containers: use --cpus instead --cpu-quota
When using docker 1.13.1, the current condition:

```
{% if (container_binary == 'docker' and ceph_docker_version.split('.')[0] is version_compare('13', '>=')) or container_binary == 'podman' -%}
```

is wrong because it compares the first digit (1) whereas it should
compare the second one.
It means we always use `--cpu-quota` although documentation recommend
using `--cpus` when docker version is 1.13.1 or higher.

From the doc:
> --cpu-quota=<value>	Impose a CPU CFS quota on the container. The number of
> microseconds per --cpu-period that the container is limited to before
> throttled. As such acting as the effective ceiling.
> If you use Docker 1.13 or higher, use --cpus instead.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-01-16 13:51:43 -05:00
..
untested-by-ci ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
vars osd: remove variable osd_scenario 2019-04-11 11:57:02 -04:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
add-mon.yml add-{mon,osd}: run raw install python tasks 2019-11-07 14:04:26 +01:00
add-osd.yml osd: support scaling up using --limit 2020-01-13 09:59:08 -05:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml global: add newline at end of file 2019-08-23 15:56:47 +02:00
docker-to-podman.yml containers: use --cpus instead --cpu-quota 2020-01-16 13:51:43 -05:00
filestore-to-bluestore.yml filestore-to-bluestore: umount partitions before zapping them 2019-12-19 09:22:25 +01:00
gather-ceph-logs.yml global: add newline at end of file 2019-08-23 15:56:47 +02:00
lv-create.yml lv-create: fix a typo 2019-09-26 11:35:24 +02:00
lv-teardown.yml improve coding style 2019-04-23 15:37:07 +02:00
purge-cluster.yml purge-cluster: add podman support 2019-12-04 14:15:12 -05:00
purge-container-cluster.yml purge-container-cluster: prune exited containers 2020-01-08 11:13:46 +01:00
purge-docker-cluster.yml purge: fix symlink to purge-container-cluster 2019-12-04 09:38:34 +01:00
purge-iscsi-gateways.yml purge-iscsi-gateways: don't run all ceph-facts 2020-01-10 15:46:15 +01:00
rgw-add-users-buckets.yml Example ceph_add_users_buckets playbook 2018-12-20 14:23:25 +01:00
rolling_update.yml update: remove legacy 2020-01-13 15:18:45 -05:00
shrink-mds.yml shrink-mds: fix condition on fs deletion 2020-01-15 10:40:14 +01:00
shrink-mgr.yml infra-playbooks: rewite a condition for better readability 2019-07-25 16:21:34 +02:00
shrink-mon.yml shrink-mon: search mon in the quorum_names list 2019-09-18 14:35:02 +02:00
shrink-osd.yml shrink-osd: support fqdn in inventory 2019-12-09 10:52:38 -05:00
shrink-rbdmirror.yml infra-playbooks: rewite a condition for better readability 2019-07-25 16:21:34 +02:00
shrink-rgw.yml shrink-rgw: refact global workflow 2020-01-09 19:02:17 +01:00
storage-inventory.yml improve coding style 2019-04-23 15:37:07 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch_to_containers: exclude clients nodes from facts gathering 2019-12-09 10:49:13 -05:00
take-over-existing-cluster.yml remove ceph-agent role and references 2019-06-03 13:35:50 +02:00

README.md

Infrastructure playbooks

This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.

To use them, you must move them to ceph-ansible's root directory, then run using ansible-playbook <playbook>.