Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
57c81dfc
Commit
57c81dfc
authored
Feb 26, 2015
by
Monty Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for the new OpenStack Inventory
parent
2d74bd48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
plugins/inventory/openstack.py
+16
-0
plugins/inventory/openstack.yml
+28
-0
No files found.
plugins/inventory/openstack.py
View file @
57c81dfc
...
@@ -17,6 +17,22 @@
...
@@ -17,6 +17,22 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
# along with this software. If not, see <http://www.gnu.org/licenses/>.
# The OpenStack Inventory module uses os-client-config for configuation.
# https://github.com/stackforge/os-client-config
# This means it will either:
# - Respect normal OS_* environment variables like other OpenStack tools
# - Read values from a clouds.yaml file.
# If you want to configure via clouds.yaml, you can put the file in:
# - Current directory
# - ~/.config/openstack/clouds.yaml
# - /etc/openstack/clouds.yaml
# - /etc/ansible/openstack.yml
# The clouds.yaml file can contain entries for multiple clouds and multiple
# regions of those clouds. If it does, this inventory module will connect to
# all of them and present them as one contiguous inventory.
#
# See the adjacent openstack.yml file for an example config file
import
argparse
import
argparse
import
collections
import
collections
import
os
import
os
...
...
plugins/inventory/openstack.yml
0 → 100644
View file @
57c81dfc
clouds
:
mordred
:
cloud
:
hp
auth
:
username
:
mordred@example.com
password
:
my-wonderful-password
project_name
:
mordred-tenant
region_name
:
region-b.geo-1
monty
:
cloud
:
hp
auth
:
username
:
monty.taylor@example.com
password
:
another-wonderful-password
project_name
:
monty.taylor@example.com-default-tenant
region_name
:
region-b.geo-1
rax
:
cloud
:
rackspace
auth
:
username
:
example
password
:
spectacular-password
project_id
:
2352426
region_name
:
DFW,ORD,IAD
devstack
:
auth
:
auth_url
:
http://127.0.0.1:35357/v2.0/
username
:
stack
password
:
stack
project_name
:
stack
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment