puppetlabs-docker icon indicating copy to clipboard operation
puppetlabs-docker copied to clipboard

run_instance restart_on_unhealthy: true takes priority over ensure: absent

Open jakefeasey opened this issue 3 years ago • 0 comments

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:

  1. deploy a container with run_instance with the config restart_on_unhealthy: true in place
  2. make the container absent with ensure: absent
  3. Run puppet Additionally:
  4. manually remove the container(s)
  5. re-run puppet and puppet will redeploy them

Environment

  • Version [3.1.0]
  • Platform [18.04]

jakefeasey avatar Sep 14 '22 11:09 jakefeasey