puppetlabs-docker
puppetlabs-docker copied to clipboard
run_instance restart_on_unhealthy: true takes priority over ensure: absent
Describe the Bug
When managing containers with docker::run_instance if ensure: absent it added the containers continue to run if restart_on_unhealthy: true is also in the config block.
Expected Behavior
This should be the other way round and ensure: absent should always take priority over other config in the same block.
Steps to Reproduce
Steps to reproduce the behavior:
- deploy a container with run_instance with the config restart_on_unhealthy: true in place
- make the container absent with ensure: absent
- Run puppet Additionally:
- manually remove the container(s)
- re-run puppet and puppet will redeploy them
Environment
- Version [3.1.0]
- Platform [18.04]