On this page
sf_account_manager - Manage SolidFire accounts
New in version 2.3.
Synopsis
- Create, destroy, or update accounts on SolidFire
 
Requirements (on host that executes module)
- solidfire-sdk-python (1.1.0.92)
 
Options
| parameter | required | default | choices | comments | 
|---|---|---|---|---|
| account_id | 
      no | None | 
        
        The ID of the account to manage or update.
         | 
     |
| attributes | 
      no | 
        
        List of Name/Value pairs in JSON object format.
         | 
     ||
| hostname | 
      yes | 
        
        The hostname or IP address of the SolidFire cluster.
         | 
     ||
| initiator_secret | 
      no | 
        
        CHAP secret to use for the initiator. Should be 12-16 characters long and impenetrable.
        
       
        The CHAP initiator secrets must be unique and cannot be the same as the target CHAP secret.
        
       
        If not specified, a random secret is created.
         | 
     ||
| name | 
      yes | 
        
        Unique username for this account. (May be 1 to 64 characters in length).
         | 
     ||
| new_name | 
      no | None | 
        
        New name for the user account.
         | 
     |
| password | 
      yes | 
        
        Password for the specified user.
         | 
     ||
| state | 
      yes | 
       
  | 
      
        
        Whether the specified account should exist or not.
         | 
     |
| status | 
      no | 
        
        Status of the account.
         | 
     ||
| target_secret | 
      no | 
        
        CHAP secret to use for the target (mutual CHAP authentication).
        
       
        Should be 12-16 characters long and impenetrable.
        
       
        The CHAP target secrets must be unique and cannot be the same as the initiator CHAP secret.
        
       
        If not specified, a random secret is created.
         | 
     ||
| username | 
      yes | 
        
        Please ensure that the user has the adequate permissions. For more information, please read the official documentation https://goo.gl/ddJa4Q.
         | 
     
Examples
- name: Create Account
  sf_account_manager:
    hostname: "{{ solidfire_hostname }}"
    username: "{{ solidfire_username }}"
    password: "{{ solidfire_password }}"
    state: present
    name: TenantA
- name: Modify Account
  sf_account_manager:
    hostname: "{{ solidfire_hostname }}"
    username: "{{ solidfire_username }}"
    password: "{{ solidfire_password }}"
    state: present
    name: TenantA
    new_name: TenantA-Renamed
- name: Delete Account
  sf_account_manager:
    hostname: "{{ solidfire_hostname }}"
    username: "{{ solidfire_username }}"
    password: "{{ solidfire_password }}"
    state: absent
    name: TenantA-Renamed
  Notes
Note
- The modules prefixed with 
sf\_are built to support the SolidFire storage platform. 
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
 https://docs.ansible.com/ansible/2.4/sf_account_manager_module.html