Skip to content

influxdb_user can't create cluster admins in current InlluxDB versions #33495

Closed
@wwentland

Description

@wwentland

Description of Issue/Question

The influxdb_user state can create two types of users, namely normal ones and cluster admins. The decision to create one or the other is based on the value of the "database" argument in that a cluster admin is created if no database is specified.

Unfortunately changes introduced in #31787 which allowed this state to be used in influxdb 0.9 and later versions, only allow for the creation of "normal users" and not cluster admins.

It would be relatively straightforward to fix this and I simply wanted to ask before providing a PR if we want to provide support for InfluxDB 0.8 or if support for that could be dropped.

Steps to Reproduce Issue

Try to create a cluster admin user using influxdb_user.present by not setting the database argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugbroken, incorrect, or confusing behaviorP4Priority 4RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.State-Moduleseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions