tripleo-ansible/tripleo_ansible/ansible_plugins/filter
Emilien Macchi 94d52bc00f Relax needs_delete() filter
Don't remove a container when all these conditions are met:
- the container is part of the config_id
- the container is running
- the container isn't in the tripleo_container_manage_config path.

The reason is, we'll let operators to deploy containers individually, so
we don't want to touch other containers not in the config at that time.

Example: as an operator I want to apply ansible on haproxy
(config_step1); so I don't want other containers from config_step1 to be
removed.

This code was here to cleanup containers not part of the config (e.g. if
you upgrade and a container isn't used anymore); but it's too agressive.
If a container isn't needed anymore, it'll need to be handled during the
upgrade steps.

Change-Id: I3103f642ba86111e02d06922876b5f1ac78df602
2019-11-08 14:27:53 +01:00
..
.gitkeep Update project structure 2019-06-05 14:27:22 +00:00
cpu_mask.py Fix the filter plugin location for triple-ovs-dpdk role 2019-10-18 07:13:33 +00:00
helpers.py Relax needs_delete() filter 2019-11-08 14:27:53 +01:00