keystone_user - Manage OpenStack Identity (keystone) users, tenants and roles

Author:Lorin Hochstein

Synopsis

New in version 1.2.

Manage users,tenants, roles from OpenStack.

Options

parameter required default choices comments
description no None
    A description for the tenant
    email no None
      An email address for the user
      endpoint no http://127.0.0.1:35357/v2.0/
        The keystone url for authentication
        login_password no yes
          Password of login user
          login_tenant_name no None
            The tenant login_user belongs to
            login_user no admin
              login username to authenticate to keystone
              password no None
                The password to be assigned to the user
                role no None
                  The name of the role to be assigned or created
                  state no present
                  • present
                  • absent
                  Indicate desired state of the resource
                  tenant no None
                    The tenant name that has be added/removed
                    token no None
                      The token to be uses in case the password is not specified
                      user no None
                        The name of the user that has to added/removed from OpenStack

                        Note

                        Requires python-keystoneclient

                        Examples


                        # Create a tenant
                        - keystone_user: tenant=demo tenant_description="Default Tenant"
                        
                        # Create a user
                        - keystone_user: user=john tenant=demo password=secrete
                        
                        # Apply the admin role to the john user in the demo tenant
                        - keystone_user: role=admin user=john tenant=demo