salt.modules.keystone

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.keystone

Module for handling openstack keystone calls.

This module is not usable until the following are specified either in a pillar or in the minion's config file:

keystone.user: admin keystone.password: verybadpass keystone.tenant: admin keystone.tenant_id: f80919baedab48ec8931f200c65a50df keystone.insecure: False #(optional) keystone.auth_url: 'http://127.0.0.1:5000/v2.0/'

`salt.modules.keystone.` `auth`()

  Set up keystone credentials

  Only intended to be used within Keystone-enabled modules

`salt.modules.keystone.` `ec2_credentials_get`(id=None, name=None, access=None)

  Return ec2_credentials for a user (keystone ec2-credentials-get)

  CLI Examples:

      salt '*' keystone.ec2_credentials_get c965f79c4f864eaaa9c3b41904e67082 access=722787eb540849158668370dc627ec5f
      salt '*' keystone.ec2_credentials_get id=c965f79c4f864eaaa9c3b41904e67082 access=722787eb540849158668370dc627ec5f
      salt '*' keystone.ec2_credentials_get name=nova access=722787eb540849158668370dc627ec5f

`salt.modules.keystone.` `ec2_credentials_list`(id=None, name=None)

  Return a list of ec2_credentials for a specific user (keystone ec2-credentials-list)

  CLI Examples:

      salt '*' keystone.ec2_credentials_list 298ce377245c4ec9b70e1c639c89e654
      salt '*' keystone.ec2_credentials_list id=298ce377245c4ec9b70e1c639c89e654
      salt '*' keystone.ec2_credentials_list name=jack

`salt.modules.keystone.` `endpoint_get`(service)

  Return a specific endpoint (keystone endpoint-get)

  CLI Example:

      salt '*' keystone.endpoint_get ec2

`salt.modules.keystone.` `endpoint_list`()

  Return a list of available endpoints (keystone endpoints-list)

  CLI Example:

      salt '*' keystone.endpoint_list

`salt.modules.keystone.` `role_get`(id=None, name=None)

  Return a specific roles (keystone role-get)

  CLI Examples:

      salt '*' keystone.role_get c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.role_get id=c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.role_get name=nova

`salt.modules.keystone.` `role_list`()

  Return a list of available roles (keystone role-list)

  CLI Example:

      salt '*' keystone.role_list

`salt.modules.keystone.` `service_get`(id=None, name=None)

  Return a specific services (keystone service-get)

  CLI Examples:

      salt '*' keystone.service_get c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.service_get id=c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.service_get name=nova

`salt.modules.keystone.` `service_list`()

  Return a list of available services (keystone services-list)

  CLI Example:

      salt '*' keystone.service_list

`salt.modules.keystone.` `tenant_get`(id=None, name=None)

  Return a specific tenants (keystone tenant-get)

  CLI Examples:

      salt '*' keystone.tenant_get c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.tenant_get id=c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.tenant_get name=nova

`salt.modules.keystone.` `tenant_list`()

  Return a list of available tenants (keystone tenants-list)

  CLI Example:

      salt '*' keystone.tenant_list

`salt.modules.keystone.` `token_get`()

  Return the configured tokens (keystone token-get)

  CLI Example:

      salt '*' keystone.token_get c965f79c4f864eaaa9c3b41904e67082

`salt.modules.keystone.` `user_create`(name, password, email, tenant_id=None, enabled=True)

  Create a user (keystone user-create)

  CLI Examples:

      salt '*' keystone.user_create name=jack password=zero email=jack@halloweentown.org tenant_id=a28a7b5a999a455f84b1f5210264375e enabled=True

`salt.modules.keystone.` `user_delete`(id=None, name=None)

  Delete a user (keystone user-delete)

  CLI Examples:

      salt '*' keystone.user_delete c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.user_delete id=c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.user_delete name=nova

`salt.modules.keystone.` `user_get`(id=None, name=None)

  Return a specific users (keystone user-get)

  CLI Examples:

      salt '*' keystone.user_get c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.user_get id=c965f79c4f864eaaa9c3b41904e67082
      salt '*' keystone.user_get name=nova

`salt.modules.keystone.` `user_list`()

  Return a list of available users (keystone user-list)

  CLI Example:

      salt '*' keystone.user_list

`salt.modules.keystone.` `user_password_update`(id=None, name=None, password=None)

  Update a user's password (keystone user-password-update)

  CLI Examples:

      salt '*' keystone.user_delete c965f79c4f864eaaa9c3b41904e67082 password=12345
      salt '*' keystone.user_delete id=c965f79c4f864eaaa9c3b41904e67082 password=12345
      salt '*' keystone.user_delete name=nova pasword=12345

`salt.modules.keystone.` `user_role_list`(user_id=None, tenant_id=None, user_name=None, tenant_name=None)

  Return a list of available user_roles (keystone user_roles-list)

  CLI Examples:

      salt '*' keystone.user_role_list user_id=298ce377245c4ec9b70e1c639c89e654
      salt '*' keystone.user_role_list tenant_id=7167a092ece84bae8cead4bf9d15bb3b
      salt '*' keystone.user_role_list user_name=admin
      salt '*' keystone.user_role_list tenant_name=admin

`salt.modules.keystone.` `user_update`(id=None, name=None, email=None, enabled=None)

  Update a user's information (keystone user-update) The following fields may be updated: name, email, enabled. Because the name is one of the fields, a valid user id is required.

  CLI Examples:

      salt '*' keystone.user_update id=c965f79c4f864eaaa9c3b41904e67082 name=newname
      salt '*' keystone.user_update c965f79c4f864eaaa9c3b41904e67082 name=newname email=newemail@domain.com

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »