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
c9abd0fd
Commit
c9abd0fd
authored
Oct 15, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub out Inventory class - we're going to draw heavily on the existing
inventory for implementation
parent
6ca67c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
v2/ansible/inventory/__init__.py
+75
-0
No files found.
v2/ansible/inventory/__init__.py
0 → 100644
View file @
c9abd0fd
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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/>.
#############################################
class
Inventory
(
object
):
def
__init__
(
self
,
host_list
=
C
.
DEFAULT_HOST_LIST
,
vault_password
=
None
):
pass
def
get_hosts
(
self
,
pattern
=
"all"
):
pass
def
clear_pattern_cache
(
self
):
pass
def
groups_for_host
(
self
,
host
):
pass
def
groups_list
(
self
):
pass
def
get_groups
(
self
):
pass
def
get_host
(
self
,
hostname
):
pass
def
get_group
(
self
,
groupname
):
pass
def
get_group_variables
(
self
,
groupname
,
update_cached
=
False
,
vault_password
=
None
):
pass
def
get_variables
(
self
,
hostname
,
update_cached
=
False
,
vault_password
=
None
):
pass
def
get_host_variables
(
self
,
hostname
,
update_cached
=
False
,
vault_password
=
None
):
pass
def
add_group
(
self
,
group
):
pass
def
list_hosts
(
self
,
pattern
=
"all"
):
pass
def
list_groups
(
self
):
pass
def
get_restriction
(
self
):
pass
def
restrict_to
(
self
,
restriction
):
pass
def
also_restrict_to
(
self
,
restriction
):
pass
def
subset
(
self
,
subset_pattern
):
pass
def
lift_restriction
(
self
):
pass
def
lift_also_restriction
(
self
):
pass
def
is_file
(
self
):
pass
def
basedir
(
self
):
pass
def
src
(
self
):
pass
def
playbook_basedir
(
self
):
pass
def
set_playbook_basedir
(
self
,
dir
):
pass
def
get_host_vars
(
self
,
host
,
new_pb_basedir
=
False
):
pass
def
get_group_vars
(
self
,
group
,
new_pb_basedir
=
False
):
pass
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