Skip to content

Latest commit

 

History

History
119 lines (88 loc) · 5.13 KB

File metadata and controls

119 lines (88 loc) · 5.13 KB

user

Manages user on a PowerFlex array. User resource can be used to create, update role and delete the user from the PowerFlex array. Once the user is created, it is mandatory to change the password when it's logged in for the first time. The intent of this user submodule is to change the password during it's first login.

Requirements

Name Version
terraform >= 1.5
powerflex >= 1.2.0
null 3.2.1

Providers

Name Version
powerflex >= 1.2.0
null 3.2.1

Schema

Inputs

  • username (String) Stores the username of PowerFlex host.
  • password (String) Stores the password of PowerFlex host.
  • endpoint (String) Stores the endpoint of PowerFlex host.
  • newUserName (String) The name of the user.
  • userPassword (String) Password of the user.
  • userRole (String) The role of the user. Accepted values are 'Administrator', 'Monitor', 'Configure', 'Security', 'FrontendConfig', 'BackendConfig'.
  • mdmUserName (String) Primary MDM username required for connecting to the Primary MDM.
  • mdmPassword (String) Primary MDM password required for connecting to the Primary MDM.
  • mdmHost (String) Primary MDM host required for connecting to the Primary MDM.
  • newPassword (String) New password required for the first login

Outputs

  • new_user_id (String) ID of the newly created user
  • new_username (String) Name of the newly created user
  • new_user_role (String) Role of the newly created user

Prerequisites

User module can only be used with terraform provider powerflex >= v1.2.0

Usage

Please refer the User example here After providing proper values to all the attributes, then in that workspace, run

terraform init
terraform apply

Requirements

Name Version
null 3.2.1
powerflex 1.2.0

Providers

Name Version
null 3.2.1
powerflex 1.2.0

Modules

No modules.

Resources

Name Type
null_resource.provision resource
powerflex_user.newUser resource

Inputs

Name Description Type Default Required
endpoint Stores the endpoint of PowerFlex host. eg: https://10.1.1.1:443, here 443 is port where API requests are getting accepted string n/a yes
mdmHost Primary MDM host required for connecting to the Primary MDM. string n/a yes
mdmPassword Primary MDM password required for connecting to the Primary MDM. string n/a yes
mdmUserName Primary MDM username required for connecting to the Primary MDM. string n/a yes
newPassword New password required for the first login. string n/a yes
newUserName Name of the new user. string n/a yes
password Stores the password of PowerFlex host. string n/a yes
userPassword Password of the new user. string n/a yes
userRole Role of the new user. string n/a yes
username Stores the username of PowerFlex host. string n/a yes

Outputs

Name Description
new_user_id n/a
new_user_role n/a
new_username n/a