summaryrefslogtreecommitdiff
path: root/contrib/inventory/brook.ini
diff options
context:
space:
mode:
authorFrancisco Ros <fjros@doalitic.com>2016-04-25 17:42:57 +0200
committerBrian Coca <bcoca@ansible.com>2016-04-25 11:42:57 -0400
commit574163c949e671f179f3a6215834d5936c3a345b (patch)
treeafa95730db8d8df1d578e26191bee43a051aae8f /contrib/inventory/brook.ini
parent2f411c9aa9bc4dda20db065167ebe55ecb13dc21 (diff)
downloadansible-574163c949e671f179f3a6215834d5936c3a345b.tar.gz
Brook inventory (#15264)
* Initial work on Brook.io dynamic inventory * Handle error cases in Brook.io dynamic inventory * Remove defaults from brook.ini * Update Brook.io dynamic inventory for libbrookv0.3 Use authentication api to obtain a valid JWT from an API Token. * Remove defaults from brook.ini
Diffstat (limited to 'contrib/inventory/brook.ini')
-rw-r--r--contrib/inventory/brook.ini40
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/inventory/brook.ini b/contrib/inventory/brook.ini
new file mode 100644
index 0000000000..68f0bb1137
--- /dev/null
+++ b/contrib/inventory/brook.ini
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+# Copyright 2016 Doalitic.
+#
+# This file is part of Ansible
+#
+# Ansible is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Ansible is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
+
+# The Brook.io inventory script has the following dependencies:
+# 1. A working Brook.io account
+# See https://brook.io
+# 2. A valid token generated through the 'API token' panel of Brook.io
+# 3. The libbrook python libray.
+# See https://github.com/doalitic/libbrook
+#
+# Author: Francisco Ros <fjros@doalitic.com>
+
+[brook]
+# Valid API token (required).
+# E.g. 'Aed342a12A60433697281FeEe1a4037C'
+#
+api_token =
+
+# Project id within Brook.io, as obtained from the project settings (optional). If provided, the
+# generated inventory will just include the hosts that belong to such project. Otherwise, it will
+# include all hosts in projects the requesting user has access to. The response includes groups
+# 'project_x', being 'x' the project name.
+# E.g. '2e8e099e1bc34cc0979d97ac34e9577b'
+#
+project_id =