{"action":"created","issue":{"url":"https://api.github.com/repos/girder/girder/issues/1039","labels_url":"https://api.github.com/repos/girder/girder/issues/1039/labels{/name}","comments_url":"https://api.github.com/repos/girder/girder/issues/1039/comments","events_url":"https://api.github.com/repos/girder/girder/issues/1039/events","html_url":"https://github.com/girder/girder/pull/1039","id":113234860,"number":1039,"title":"Girder ansible client (redux)","user":{"login":"kotfic","id":669959,"avatar_url":"https://avatars.githubusercontent.com/u/669959?v=3","gravatar_id":"","url":"https://api.github.com/users/kotfic","html_url":"https://github.com/kotfic","followers_url":"https://api.github.com/users/kotfic/followers","following_url":"https://api.github.com/users/kotfic/following{/other_user}","gists_url":"https://api.github.com/users/kotfic/gists{/gist_id}","starred_url":"https://api.github.com/users/kotfic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotfic/subscriptions","organizations_url":"https://api.github.com/users/kotfic/orgs","repos_url":"https://api.github.com/users/kotfic/repos","events_url":"https://api.github.com/users/kotfic/events{/privacy}","received_events_url":"https://api.github.com/users/kotfic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-25T16:25:19Z","updated_at":"2015-11-19T15:54:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/girder/girder/pulls/1039","html_url":"https://github.com/girder/girder/pull/1039","diff_url":"https://github.com/girder/girder/pull/1039.diff","patch_url":"https://github.com/girder/girder/pull/1039.patch"},"body":"Implements an ansible module library for configuring girder.  Currently supports ```get``` and raw (e.g.,  non-idempotent) methods ```put```, ```post```, ```delete```  as well as an idempotent ```plugins``` task. E.g.:\r\n\r\n```yaml\r\n- hosts: girder\r\n  tasks:\r\n\r\n    # Get current users\r\n    - name: Get the current users\r\n      girder:\r\n        username: \"admin\"\r\n        password: \"letmein\"\r\n        port: 8080\r\n        get:\r\n          path: \"user\"\r\n      register: ret_val\r\n\r\n    # Return values of the girder client calls are stored\r\n    # in 'gc_return'  of registered variables\r\n    - name: Print the list of user email addresses\r\n      debug:\r\n        msg: \"{{ item['email']  }}\"\r\n      with_items: ret_val['gc_return']\r\n\r\n    #############\r\n    # Example using 'plugins'\r\n    ###\r\n\r\n    # To enable or disable all plugins you may pass the \"*\"\r\n    # argument.  This does not (yet) support arbitrary regexes\r\n    - name: Disable all plugins\r\n      girder:\r\n        username: \"admin\"\r\n        password: \"letmein\"\r\n        port: 8080\r\n        plugins: \"*\"\r\n        state: absent\r\n\r\n    - name: Enable thumbnails plugin\r\n      girder:\r\n        username: \"admin\"\r\n        password: \"letmein\"\r\n        port: 8080\r\n        plugins:\r\n          - thumbnails\r\n        state: present\r\n\r\n    #\r\n    # Note that 'thumbnails'  is still enabled from the previous task,\r\n    # the 'plugins' task ensures that plugins are enabled or disabled,\r\n    # it does NOT define the complete list of enabled or disabled plugins.\r\n    - name: Ensure jobs and gravatar plugins are enabled\r\n      girder:\r\n        username: \"admin\"\r\n        password: \"letmein\"\r\n        port: 8080\r\n        plugins:\r\n          - jobs\r\n          - gravatar\r\n        state: present\r\n\r\n    # Supports get, post, put, delete methods,  but does\r\n    # not guarantee idempotence on these methods!\r\n    - name: Restart the server\r\n      girder:\r\n        username: \"admin\"\r\n        password: \"letmein\"\r\n        port: 8080\r\n        put:\r\n          path: \"system/restart\"\r\n```"},"comment":{"url":"https://api.github.com/repos/girder/girder/issues/comments/158098616","html_url":"https://github.com/girder/girder/pull/1039#issuecomment-158098616","issue_url":"https://api.github.com/repos/girder/girder/issues/1039","id":158098616,"user":{"login":"zachmullen","id":555959,"avatar_url":"https://avatars.githubusercontent.com/u/555959?v=3","gravatar_id":"","url":"https://api.github.com/users/zachmullen","html_url":"https://github.com/zachmullen","followers_url":"https://api.github.com/users/zachmullen/followers","following_url":"https://api.github.com/users/zachmullen/following{/other_user}","gists_url":"https://api.github.com/users/zachmullen/gists{/gist_id}","starred_url":"https://api.github.com/users/zachmullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachmullen/subscriptions","organizations_url":"https://api.github.com/users/zachmullen/orgs","repos_url":"https://api.github.com/users/zachmullen/repos","events_url":"https://api.github.com/users/zachmullen/events{/privacy}","received_events_url":"https://api.github.com/users/zachmullen/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T15:54:41Z","updated_at":"2015-11-19T15:54:41Z","body":"@kotfic I haven't forgotten this. I'm going to try and use it in the COVALIC ansible scripts as my QA."}}