Attempting to remove an Elasticsearch user with Puppet using ensure => absent fails because the module requires a password parameter even for deletion.
Steps to Reproduce
- Declare a user resource without a password and with absence:
- Manifest:
elasticsearch::user { 'some.user': ensure => 'absent' }
- Or Hiera:
users::elasticsearch:
some.user:
ensure: absent
- Apply the catalog.
Actual Result
Puppet errors with:
- Error 500: Evaluation Error: Elasticsearch::User[some.user]: expects a value for parameter 'password'
Expected Result
- Deleting a user with
ensure => absent should not require a password.
- No password operations should be performed for absent resources.