diff --git a/v2/ansible/inventory/__init__.py b/v2/ansible/inventory/__init__.py new file mode 100644 index 0000000000..82da01f68c --- /dev/null +++ b/v2/ansible/inventory/__init__.py @@ -0,0 +1,75 @@ +# (c) 2012-2014, Michael DeHaan +# +# 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 . + +############################################# + +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 +