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
a9ba02ff
Commit
a9ba02ff
authored
May 26, 2014
by
AJ Bourg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies. Add some doc notes.
parent
27e99f2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
plugins/inventory/softlayer.py
+9
-5
No files found.
plugins/inventory/softlayer.py
View file @
a9ba02ff
...
...
@@ -3,6 +3,13 @@
SoftLayer external inventory script.
The SoftLayer Python API client is required. Use `pip install softlayer` to install it.
You have a few different options for configuring your username and api_key. You can pass
environment variables (SL_USERNAME and SL_API_KEY). You can also write INI file to
~/.softlayer or /etc/softlayer.conf. For more information see the SL API at:
- https://softlayer-python.readthedocs.org/en/latest/config_file.html
The SoftLayer Python client has a built in command for saving this configuration file
via the command `sl config setup`.
"""
# Copyright (C) 2014 AJ Bourg <aj@ajbourg.com>
...
...
@@ -21,15 +28,12 @@ The SoftLayer Python API client is required. Use `pip install softlayer` to inst
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
Thanks to the vagrant.py inventory script for giving me the basic structur
e
#
of this.
#
I found the structure of the ec2.py script very helpful as an exampl
e
#
as I put this together. Thanks to whoever wrote that script!
#
import
SoftLayer
import
sys
import
subprocess
import
re
import
string
import
argparse
try
:
import
json
...
...
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