Commit Graph

9804 Commits (e36e2d38fee397a0df06c7b848a4a01426764e14)
 

Author SHA1 Message Date
Serge van Ginderachter e36e2d38fe InventoryDir: another fix for the host.groups list
In some cases, where a host is mentioned in multiple groups, and those
groups are referenced in multiple ini files, a group could still contain
multiple instances of a group in its host,groups list, where only one of them
is the right group, that exists in the inventory.
11 years ago
Serge van Ginderachter d3eaa1b79e InventoryDir: refactor logic
Make sure all hosts and groups are unique objects
and that those are referenced uniquely everywhere.
Also fixes test_dir_inventory unit tests which were broken after previous
patches.

	modified:   lib/ansible/inventory/dir.py
11 years ago
Serge van Ginderachter 188375171e Inventory: raise error when adding a group that already exists.
The parsers check if a group already exists.
11 years ago
Serge van Ginderachter be58808fe4 inventory script parser: do not add all the groups to *all* group 11 years ago
Serge van Ginderachter 0ceefbbf29 inventory ini parser: do not add all the groups to *all* group
but only those with lowest depth, so we keep a proper tree structure
11 years ago
Serge van Ginderachter cc8efb4aab inventory groups: make sure group.depth is updated on all grandchildren 11 years ago
Serge van Ginderachter 1c86909875 inventory group: add groups to parent_groups only once 11 years ago
Serge van Ginderachter 36f55d3549 inventory directory parser: add host to group only once 11 years ago
Serge van Ginderachter 8b215149d4 inventory directory parser: add groups to parent_groups non-recursively 11 years ago
Serge van Ginderachter 262ba0460a inventory directory parser: add hosts to group non-recursively 11 years ago
James Tanner 605156c904 Fixes premature handler execution after adding force-handlers 11 years ago
James Cammarata d545b73ccb Merge branch 'file_fixes_agg' of https://github.com/bcoca/ansible into bcoca-file_fixes_agg 11 years ago
James Cammarata bc93732b1d Catch permissions errors related to opening a known_hosts file in modules
Fixes #6644
11 years ago
James Cammarata dc658eaa1c Check to make sure the host is in the inventory vars cache before clearing it
Fixes #6660
11 years ago
James Cammarata db345391e3 Fixing ownership when atomic_move is creating a file while sudo'ing
Fixes #6647
11 years ago
James Cammarata a4af31e511 Revert "add yum module downgrade support"
This reverts commit cbd1da6457.
11 years ago
James Cammarata bb723bedee Merge branch 'atomic_move_restore_owner_group_rebase' of https://github.com/tyll/ansible into tyll-atomic_move_restore_owner_group_rebase 11 years ago
James Tanner 8fce4ed7bf Update changelog for force-handlers 11 years ago
James Tanner 9169a11088 Fixes #4777 add --force-handlers option to run handlers even if tasks fail 11 years ago
Michael DeHaan 7a53862046 Merge pull request #6642 from sethwoodworth/patch-1
[docs] adds missing `'` to debconf examples
11 years ago
Michael DeHaan 3c97ac160c Update CONTRIBUTING.md
Some clarifications about workflow and the priority queue in GitHub
11 years ago
Seth Woodworth c28d3545fb adds missing `'` to debconf examples 11 years ago
Michael DeHaan 343702af4f Merge pull request #6631 from kavu/add_testing_deps_to_hacking_readme
Add tesing deps installation into hacking/README
11 years ago
Michael DeHaan 503327d53c Merge pull request #6640 from falloutdurham/ec2_count
ec2: Adding type int for count (in line with other cloud modules)
11 years ago
Michael DeHaan fba2f1f9a9 Merge pull request #6639 from fvieira/devel
Add missing sha1 import on known_hosts.py
11 years ago
Michael DeHaan ebc9ca9504 Merge pull request #6635 from pilou-/debconf
Fix ValueError when selection contains a colon
11 years ago
Michael DeHaan a24d3f78d9 Merge pull request #6634 from pilou-/fix
Remove print statements
11 years ago
James Cammarata 31628d86a1 Adding in a configurable option for the accelerate daemon timeout
This was apparently an oversite, as it has never been configurable
despite having a module parameter for the timeout.
11 years ago
James Cammarata 1fa0fab6cb Documentation updates for accelerate mode improvements 11 years ago
James Cammarata 3ea5d573aa Acclerate improvements
* Added capability to support multiple keys, so clients from different
  machines can connect to a single daemon instance
* Any activity on the daemon will cause the timeout to extend, so that the
  daemon must be idle for the full number of minutes before it will auto-
  shutdown
* Various other small fixes to remove some redundancy

Fixes #5171
11 years ago
Ian Pointer bebb11afeb Adding type int for count (in line with other cloud modules) 11 years ago
Francisco José Marques Vieira e9d7476c28 Add missing sha1 import on known_hosts.py 11 years ago
Pierre-Louis Bonicoli d3a470db0c Remove print statements
"print item" raises an exception when type of item is
jinja2.runtime.StrictUndefined
11 years ago
Pierre-Louis Bonicoli 1bb5b0f6bd Fix ValueError when selection contains a colon 11 years ago
Max Riveiro 9f7342d46d
Add tesing deps installation into hacking/README
Signed-off-by: Max Riveiro <kavu13@gmail.com>
11 years ago
Michael DeHaan f82ac9f8e9 Merge pull request #6620 from cmattson/apt-docs
Clarify documentation for apt pkg, state, install_recommends
11 years ago
Colin Mattson 3e6bf9640c Clarify documentation for apt pkg, state, install_recommends 11 years ago
Michael DeHaan 50aa3f6a09 Fix documentation for twilio module. 11 years ago
James Tanner 5b3b9ba267 Addresses #4407 Caculate failed percentage based on serial and number of hosts in play 11 years ago
Michael DeHaan d0cbb51170 Merge pull request #6615 from 8191/devel
Addresses #6591 Hide diff for lineinfile if file did not change.
11 years ago
Michael DeHaan 5b9b5fd00d Merge pull request #6612 from willthames/npm_fix_nonexistent_path
Allow npm to install to a directory that doesn't yet exist
11 years ago
Michael DeHaan b204419ad3 Merge pull request #6609 from joshuaconner/etcd_lookup_use_env_var_if_set
etcd lookup: use $ANSIBLE_ETCD_URL if it exists in the env
11 years ago
Manuel Faux b8158f5f6a Addresses #6591 Hide diff for lineinfile if file did not change. 11 years ago
willthames 7272877df6 Allow npm to install to a directory that doesn't yet exist
If path is specified but does not exist, create it.
Fail if path is specified but is not a directory
11 years ago
Joshua Conner 1c504eff68 etcd lookup: use $ANSIBLE_ETCD_URL if it exists in the env 11 years ago
James Tanner 14499e8bf3 Fixes #4325 allow async and poll parameters to be templated vars 11 years ago
James Tanner ea5186ca63 Fixes #6590 add set_remote_user parameter to synchronize
This allows usage of custom ssh configs for remote hosts where
the inventory user does not match the configured user.
11 years ago
Michael DeHaan c729bf209c Update documentation YAML syntax. 11 years ago
James Tanner 95c79ad483 Fixes #4239 merge injects with new vars loaded from files 11 years ago
James Tanner d327e3d11a Fixes #5622 included tasks in roles now inherit tags from the role 11 years ago