Module ImportFrom alias ImportFrom alias alias alias TryExcept body ImportFrom alias alias alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore BinOpSub Call NameLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad Dict Str Str SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Dict Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr DictComp NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad comprehension NameStore ListLoad Str Str Str Str Str Str CompareIsNot SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad If CompareIsNot SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If CompareIsNot SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str orelse If CompareIs SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If CompareIsNot SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign NameStore ListLoad Assign NameStore Dict If CompareIs Call NameLoad NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore ListLoad NameLoad Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Import alias Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr If UnaryOpNot CompareLtE NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr Call NameLoad BinOpSub NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body If UnaryOpNot CompareLtE NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Call AttributeLoad NameLoad attr Call NameLoad BinOpBitOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body If Call NameLoad BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body For TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad If BinOpBitXor Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str keyword Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad IfExp NameLoad Str Str Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad IfExp NameLoad Str Str Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore ListLoad Return NameLoad decorator_list Assign NameStore Dict Str Str Str Str Num Num Num Str FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad Str NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareNotIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Dict Str Str Str Str Dict Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Dict Str Str Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad Dict Str Str Str Str Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Dict Str Str Str Str Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Assign NameStore ListLoad Assign NameStore DictComp SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad comprehension NameStore NameLoad CompareIn NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad comprehension NameStore NameLoad CompareIn NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If UnaryOpNot CompareLtE NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad keyword SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad orelse TryExcept body Expr Call Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad keyword SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword ListLoad AttributeLoad NameLoad attr ListLoad Str Str Str keyword ListLoad ListLoad Str Str keyword AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr keyword Str TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Import alias Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Import alias Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A ansible.module_utils.basic * inspect getmembers ismethod getargspec N/A N/A girder_client GirderClient AuthenticationError HttpError N/A HAS_GIRDER_CLIENT True N/A N/A N/A ImportError N/A N/A HAS_GIRDER_CLIENT False N/A DOCUMENTATION 
---
module: girder
author: "Chris Kotfila (chris.kotfila@kitware.com)
version_added: "0.1"
short_description: A module that wraps girder_client
requirements: [ girder_client==1.1.0 ]
description:
   - Manage a girder instance using the RESTful API
options:
    host:
        required: false
        default: 'localhost'
        description:
            - domain or IP of the host running girder
    port:
        required: false
        default: '80' for http, '443' for https
        description:
            - port the girder instance is running on

    apiRoot:
        required: false
        default: '/api/v1'
        description:
            - path on server corresponding to the root of Girder REST API

    scheme:
        required: false
        default: 'http'
        description:
            - A string containing the scheme for the Girder host

    dryrun:
        required: false
        default: None (passed through)
        description:
            - See GirderClient.__init__()

    blacklist:
        required: false
        default: None (passed through)
        description:
            - See GirderClient.__init__()

    username:
        required: true
        description:
            - Valid username for the system
            - Required with password
            - must be specified if 'token' is not specified
                - (See note on 'user')

    password:
        required: true
        description:
            - Valid password for the system
            - Required with username
            - must be specified if 'token' is not specified
                - (See note on 'user')
    token:
        required: true
        description:
            - A girder client token
            - Can be retrieved by accessing the accessing the 'token' attribute
              from a successfully authenticated call to girder in a previous
              task.
            - Required if 'username' and 'password' are not specified
                - (See note on 'user')
    state:
        required: false
        default: "present"
        choices: ["present", "absent"]
        description:
            - Used to indicate the presence or absence of a resource
              - e.g.,  user, plugin, assetstore

    user:
        required: false
        description:
            - If using the 'user' task, you are NOT REQUIRED to pass in a
              'username' & 'password',  or a 'token' attributes. This is because
              the first user created on an fresh install of girder is
              automatically made an administrative user. Once you are certain
              you have an admin user you should use those credentials in all
              subsequent tasks that use the 'user' task.

            - Takes a mapping of key value pairs
              options:
                  login:
                      required: true
                      description:
                          - The login name of the user
                  password:
                      required: true
                      description:
                          - The password of the user

                  firstName:
                      required: false
                      default: pass through to girder client
                      description:
                          - The first name of the user

                  lastName:
                      required: false
                      default: pass through to girder client
                      description:
                          - The last name of the user
                  email:
                      required: false
                      default: pass through to girder client
                      description:
                          - The email of the user
                  admin:
                      required: false
                      default: false
                      description:
                          - If true,  make the user an administrator.


    plugin:
        required: false
        description:
            - Specify what plugins should be activated (state: present)
              or deactivated (state: absent).
            - Takes a list of plugin names,  incorrect names are silently
              ignored

    assetstore:
        required: false
        description:
            - Specifies an assetstore
            - Takes many options depending on 'type'
              options:
                  name:
                      required: true
                      description:
                          - Name of the assetstore
                  type:
                      required: true
                      choices: ['filesystem', 'gridfs', 's3', 'hdfs']
                      description:
                          - Currently only 'filesystem' has been tested
                  readOnly:
                      required: false
                      default: false
                      description:
                          - Should the assetstore be read only?
                  current:
                      required: false
                      default: false
                      description:
                          - Should the assetstore be set as the current
                            assetstore?

              options (filesystem):
                  root:
                      required: true
                      description:
                          -  Filesystem path to the assetstore

              options (gridfs) (EXPERIMENTAL):
                   db:
                       required: true
                       description:
                           - database name
                   mongohost:
                       required: true
                       description:
                           - Mongo host URI

                   replicaset:
                       required: false
                       default: ''
                       description:
                           - Replica set name

              options (s3) (EXPERIMENTAL):
                   bucket:
                       required: true
                       description:
                           - The S3 bucket to store data in

                   prefix:
                       required: true
                       description:
                           - Optional path prefix within the bucket under which
                             files will be stored

                   accessKeyId:
                       required: true
                       description:
                           - the AWS access key ID to use for authentication

                   secret:
                       required: true
                       description:
                           - the AWS secret key to use for authentication

                   service:
                       required: false
                       default: s3.amazonaws.com
                       description:
                           - The S3 service host (for S3 type)
                           - This can be used to specify a protocol and port
                             -  use the form [http[s]://](host domain)[:(port)]
                           - Do not include the bucket name here

              options (hdfs) (EXPERIMENTAL):
                   host:
                       required: true
                       description:
                           - None
                   port:
                       required: true
                       description:
                           - None
                   path:
                       required: true
                       description:
                           - None
                   user:
                       required: true
                       description:
                           - None
                   webHdfsPort
                       required: true
                       description:
                           - None

 N/A EXAMPLES 


#############
# Example using 'user'
###


# Ensure "admin" user exists
- name: Create 'admin' User
  girder:
    user:
      firstName: "Chris"
      lastName: "Kotfila"
      login: "admin"
      password: "letmein"
      email: "chris.kotfila@kitware.com"
      admin: yes
    state: present

# Ensure a 'foobar' user exists
- name: Create 'foobar' User
  girder:
    username: "admin"
    password: "letmein"
    user:
      firstName: "Foo"
      lastName: "Bar"
      login: "foobar"
      password: "foobarbaz"
      email: "foo.bar@kitware.com"
      admin: yes
    state: present

# Remove the 'foobar' user
- name: Remove 'foobar' User
  username: "admin"
  password: "letmein"
  girder:
    user:
      login: "foobar"
      password: "foobarbaz"
    state: absent


#############
# Example using 'plugins'
###

# To enable or disable all plugins you may pass the "*"
# argument.  This does not (yet) support arbitrary regexes
- name: Disable all plugins
  girder:
    username: "admin"
    password: "letmein"
    plugins: "*"
    state: absent

- name: Enable thumbnails plugin
  girder:
    username: "admin"
    password: "letmein"
    port: 8080
    plugins:
      - thumbnails
    state: present

# Note that 'thumbnails'  is still enabled from the previous task,
# the 'plugins' task ensures that plugins are enabled or disabled,
# it does NOT define the complete list of enabled or disabled plugins.
- name: Ensure jobs and gravatar plugins are enabled
  girder:
    username: "admin"
    password: "letmein"
    plugins:
      - jobs
      - gravatar
    state: present



############
# Filesystem Assetstore Tests
#

- name: Create filesystem assetstore
  girder:
    username: "admin"
     password: "letmein"
     assetstore:
       name: "Temp Filesystem Assetstore"
       type: "filesystem"
       root: "/data/"
       current: true
     state: present

- name: Delete filesystem assetstore
  girder:
    username: "admin"
    password: "letmein"
    assetstore:
      name: "Temp Filesystem Assetstore"
      type: "filesystem"
      root: "/tmp/"
    state: absent

############
# Examples using get
#


# Get my info
- name: Get users from http://localhost:80/api/v1/users
  girder:
    username: 'admin'
    password: 'letmein'
    get:
      path: "users"
    register: ret_val

# Prints debugging messages with the emails of the users
# From the last task by accessing 'gc_return' of the registered
# variable 'ret_val'
- name: print emails of users
  debug: msg="{{ item['email'] }}"
  with_items: "{{ ret_val['gc_return'] }}"


#############
# Advanced usage
#

# Supports get, post, put, delete methods,  but does
# not guarantee idempotence on these methods!

- name: Restart the server
  girder:
    username: "admin"
    password: "letmein"
    put:
      path: "system/restart"

# An example of posting an item to Girder
# Note that this is NOT idempotent. Running
# multiple times will create "An Item", "An Item (1)",
# "An Item (2)", etc..

- name: Get Me
  girder:
    username: "admin"
    password: "letmein"
    get:
      path: "user/me"
  register: ret

# Show use of 'token' for subsequent authentication
- name: Get my public folder
  girder:
    token: "{{ ret['token'] }}"
    get:
      path: "folder"
      parameters:
        parentType: "user"
        parentId: "{{ ret['gc_return']['_id'] }}"
        text: "Public"
  register: ret


- name: Post an item to my public folder
  girder:
    host: "data.kitware.com"
    scheme: 'https'
    token: "{{ ret['token'] }}"
    post:
      path: "item"
      parameters:
        folderId: "{{ ret['gc_return'][0]['_id'] }}"
        name: "An Item"


 class_spec N/A N/A cls include N/A None N/A N/A include N/A N/A include None include N/A N/A N/A fn method N/A getmembers cls predicate ismethod N/A N/A N/A fn include N/A N/A spec N/A getargspec method N/A params N/A N/A spec args N/A 1 N/A d N/A N/A N/A spec defaults None N/A len N/A spec defaults 0 N/A r N/A N/A len params d N/A N/A N/A fn N/A required optional N/A params N/A r N/A params N/A r N/A GirderClientModule N/A GirderClient N/A N/A _include_methods N/A get put post delete plugins user assetstore N/A _debug True exit N/A N/A self N/A N/A N/A N/A N/A self _debug N/A N/A N/A N/A self message N/A debug N/A N/A N/A N/A self module exit_json changed N/A self changed N/A self message N/A fail N/A N/A self msg N/A N/A N/A N/A N/A N/A self module fail_json msg msg N/A __init__ N/A N/A self N/A N/A N/A N/A self changed False N/A N/A self message N/A msg debug Success! N/A N/A N/A self spec N/A dict N/A class_spec N/A self __class__ N/A GirderClientModule _include_methods N/A N/A self required_one_of N/A N/A N/A self spec keys N/A __call__ N/A N/A self module N/A N/A N/A N/A self module module N/A N/A N/A N/A super GirderClientModule self __init__ N/A p N/A N/A N/A self module params N/A p N/A p N/A host port apiRoot scheme dryrun blacklist N/A N/A N/A module params N/A p None N/A N/A N/A N/A N/A self module params N/A username None N/A N/A N/A N/A N/A N/A self authenticate username N/A N/A N/A self module params N/A username password N/A N/A N/A self module params N/A password N/A N/A N/A AuthenticationError N/A N/A N/A N/A self fail Could not Authenticate! N/A N/A N/A N/A N/A N/A self module params N/A token None N/A N/A N/A self token N/A N/A N/A self module params N/A token N/A N/A N/A N/A N/A N/A self module params N/A user None N/A N/A N/A N/A self fail Must pass in either username & password, or a valid girder_client token N/A N/A N/A self message N/A token N/A self token N/A method N/A self required_one_of N/A N/A N/A N/A N/A N/A self module params N/A method None N/A N/A N/A N/A self __process method N/A N/A N/A self exit N/A N/A N/A self fail Could not find executable method! N/A __process N/A N/A self method N/A N/A N/A params N/A N/A N/A self module params N/A method N/A args N/A N/A kwargs N/A N/A N/A N/A type params dict N/A N/A arg_name N/A N/A N/A self spec N/A method N/A required N/A N/A N/A arg_name N/A N/A params keys N/A N/A N/A N/A self fail N/A N/A {} is required for {} format arg_name method N/A N/A N/A args append N/A params N/A arg_name N/A kwarg_name N/A N/A N/A self spec N/A method N/A optional N/A N/A N/A kwarg_name N/A N/A params keys N/A N/A N/A kwargs N/A kwarg_name N/A params N/A kwarg_name N/A N/A N/A N/A type params list N/A N/A args params N/A N/A args N/A params N/A ret N/A N/A getattr self method args kwargs N/A N/A N/A N/A self message N/A debug N/A method method N/A N/A N/A N/A self message N/A debug N/A args args N/A N/A N/A N/A self message N/A debug N/A kwargs kwargs N/A N/A N/A N/A self message N/A debug N/A params params N/A N/A N/A self message N/A gc_return ret N/A plugins N/A N/A self N/A plugins N/A N/A json N/A ret N/A N/A available_plugins N/A N/A self get system/plugins N/A N/A N/A N/A self message N/A debug N/A available_plugins available_plugins N/A plugins N/A set plugins N/A enabled_plugins N/A set N/A available_plugins N/A enabled N/A N/A * plugins N/A N/A plugins N/A set N/A N/A N/A available_plugins N/A all keys N/A N/A N/A plugins N/A set N/A N/A N/A available_plugins N/A all keys N/A N/A N/A N/A self fail N/A N/A {}, not available! format N/A N/A , join N/A list N/A plugins N/A set N/A N/A N/A available_plugins N/A all keys N/A N/A N/A N/A N/A self module params N/A state present N/A N/A N/A N/A plugins enabled_plugins N/A N/A ret N/A N/A self put system/plugins N/A plugins N/A N/A json dumps N/A list N/A plugins enabled_plugins N/A N/A self changed True N/A N/A N/A N/A N/A N/A self module params N/A state absent N/A N/A N/A len N/A enabled_plugins plugins N/A N/A ret N/A N/A self put system/plugins N/A plugins N/A N/A json dumps N/A list N/A enabled_plugins plugins N/A N/A self changed True N/A ret N/A user N/A N/A self login password firstName lastName email admin N/A None None None False N/A N/A N/A N/A N/A N/A self module params N/A state present N/A N/A N/A var_name var N/A N/A firstName firstName N/A lastName lastName N/A email email N/A N/A N/A var None N/A N/A N/A N/A self fail N/A N/A {} must be set if state is 'present' format var_name N/A N/A N/A ret N/A N/A self authenticate username login password password N/A me N/A N/A self get user/me N/A updateable N/A firstName lastName email admin N/A passed_in N/A firstName lastName email admin N/A N/A N/A set N/A N/A k v N/A N/A k v N/A N/A me items N/A k updateable N/A set N/A zip updateable passed_in N/A N/A N/A N/A self put N/A N/A user/{} format N/A me N/A _id parameters N/A login firstName lastName password email admin login firstName lastName password email N/A admin true false N/A N/A self changed True N/A N/A N/A AuthenticationError N/A N/A ret N/A N/A self post user parameters N/A login firstName lastName password email admin login firstName lastName password email N/A admin true false N/A N/A self changed True N/A N/A N/A N/A N/A N/A self module params N/A state absent N/A N/A ret N/A N/A N/A N/A ret N/A N/A self authenticate username login password password N/A me N/A N/A self get user/me N/A N/A N/A self delete N/A N/A user/{} format N/A me N/A _id N/A N/A self changed True N/A N/A N/A AuthenticationError N/A N/A ret N/A N/A ret N/A N/A assetstore_types N/A filesystem girdfs s3 hdfs 0 1 2 hdfs __validate_hdfs_assetstore N/A N/A self N/A args kwargs N/A N/A N/A assetstore N/A N/A self name type root db mongohost replicaset bucket prefix accessKeyId secret service host port path user webHdfsPort readOnly current N/A None None None None None None s3.amazonaws.com None None None None None False False N/A N/A N/A type N/A N/A N/A self assetstore_types keys N/A N/A N/A N/A self fail N/A N/A assetstore type {} is not implemented! format type N/A argument_hash N/A filesystem gridfs s3 hdfs N/A name type root name N/A N/A self assetstore_types N/A type root N/A name type db mongohost replicaset name N/A N/A self assetstore_types N/A type db mongohost replicaset N/A name type bucket prefix accessKeyId secret service name N/A N/A self assetstore_types N/A type bucket prefix accessKeyId secret service N/A name type host port path user webHdfsPort name N/A N/A self assetstore_types N/A type host port path user webHdfsPort N/A N/A k v N/A N/A N/A argument_hash N/A type items N/A N/A N/A v None N/A N/A N/A N/A self fail N/A N/A assetstores of type {} require attribute {} format type k N/A N/A N/A argument_hash N/A type N/A readOnly readOnly N/A N/A N/A argument_hash N/A type N/A current current N/A ret N/A N/A assetstores N/A N/A a N/A name a N/A a N/A N/A self get assetstore N/A N/A N/A N/A self message N/A debug N/A assetstores assetstores N/A N/A N/A N/A N/A self module params N/A state present N/A N/A N/A name N/A N/A assetstores keys N/A N/A id N/A N/A assetstores N/A name N/A _id N/A updateable N/A root mongohost replicaset bucket prefix db accessKeyId secret service host port path user webHdfsPort current N/A assetstore_items N/A set N/A N/A k N/A N/A assetstores N/A name N/A k N/A k updateable N/A k N/A N/A N/A assetstores N/A name keys N/A arg_hash_items N/A set N/A N/A k N/A N/A argument_hash N/A type N/A k N/A k updateable N/A k N/A N/A N/A argument_hash N/A type keys N/A N/A N/A arg_hash_items assetstore_items N/A N/A ret N/A N/A self put N/A N/A assetstore/{} format id parameters N/A argument_hash N/A type N/A N/A self changed True N/A N/A N/A N/A N/A N/A getattr self N/A N/A __validate_{}_assetstore format type argument_hash N/A N/A N/A AttributeError N/A N/A N/A ret N/A N/A self post assetstore parameters N/A argument_hash N/A type N/A N/A self changed True N/A N/A N/A N/A N/A N/A self module params N/A state absent N/A N/A N/A name N/A N/A assetstores keys N/A N/A id N/A N/A assetstores N/A name N/A _id N/A ret N/A N/A self delete N/A N/A assetstore/{} format id parameters N/A argument_hash N/A type N/A ret N/A N/A main N/A N/A N/A N/A N/A Entry point for ansible girder client module

    :returns: Nothing
    :rtype: NoneType

     N/A argument_spec N/A host port apiRoot scheme dryrun blacklist username password token state N/A dict N/A dict N/A dict N/A dict N/A dict N/A dict N/A dict N/A dict N/A dict N/A dict default present choices N/A present absent N/A gcm N/A GirderClientModule N/A method N/A gcm required_one_of N/A N/A N/A argument_spec N/A method N/A dict N/A module N/A AnsibleModule argument_spec argument_spec required_one_of N/A N/A gcm required_one_of N/A token username user required_together N/A N/A username password mutually_exclusive N/A gcm required_one_of supports_check_mode False N/A N/A HAS_GIRDER_CLIENT N/A N/A N/A N/A module fail_json msg Could not import GirderClient! N/A N/A N/A N/A gcm module N/A N/A N/A HttpError N/A e N/A N/A traceback N/A N/A N/A module fail_json msg N/A N/A {}:{}
{}
{} format N/A e __class__ N/A str e N/A e responseText N/A N/A traceback format_exc N/A N/A Exception N/A e N/A N/A traceback N/A N/A N/A module fail_json msg N/A N/A {}: {}

{} format N/A e __class__ N/A str e N/A N/A traceback format_exc N/A N/A N/A __name__ __main__ N/A N/A N/A main