Skip to content

elasticsearch::user cannot remove users without a password (ensure => absent requires password) #1264

@milad-zanganeh

Description

@milad-zanganeh

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

  1. 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
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions