summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Clean up PlaybookExecutor logic for batches and errorsissue_15954James Cammarata2016-08-181-10/+7
| | | | | | | | | The calculation for max_fail_percentage was moved into the linear strategy a while back, and works better there in the stategy layer rather than at the PBE layer. This patch removes it from the PBE layer and tweaks the logic controlling whether or not the next batch is run. Fixes #15954
* Merge pull request #17140 from mattclay/roadmapJohn R Barker2016-08-181-0/+4
|\ | | | | Updated progress on roadmap items.
| * Updated progress on roadmap items.Matt Clay2016-08-181-0/+4
|/
* Update submodule refsToshio Kuratomi2016-08-182-14/+12
|
* moved from extras repo where it incorrectly exists (#17124)Brian Coca2016-08-182-1/+144
| | | | | | | | * moved from extras repo where it incorrectly exists * added to sanity exclusion for 2.4 * changed license with author's consent
* Fix facts.py for python3 (#17131)Toshio Kuratomi2016-08-182-32/+46
| | | | | | * Fix facts.py for python3 * Update facts unittest to account for filepaths being byte strings
* Merge pull request #17114 from skg-net/Dell_Ansible_RoadmapPeter Sprygada2016-08-181-0/+1
|\ | | | | Added Dell Networking Modules to the Roadmap
| * Added Dell Networking Modules to the RoadmapSenthil Kumar Ganesan2016-08-161-0/+1
| |
* | Merge pull request #17119 from sam-at-github/patch-3Sandra Wills2016-08-181-1/+1
|\ \ | | | | | | I think that is a better analogy.
| * | I think that is a better analogy.sam-at-github2016-08-171-1/+1
| | |
* | | Linux mount/fs (lsblk) facts fixes and tests. (#17036)Adrian Likins2016-08-172-52/+685
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10779 Refactor some of the block device, mount point, and mtab/fstab facts collection for linux for better performance on systems with lots of block devices. Instead of invoking 'lsblk' for every entry in mtab, invoke it once, then map the results to mtab entries. Change the args used for invoking 'findmnt' since the previous combination of args conflicts, so this would always fail on some systems depending on version. Add test cases for facts Hardware()/Network()/Virtual() classes __new__ method and verify they create the proper subclass based on the platform.system() results. Split out all the 'invoke some command and grab it's output' bits related to linux mount paths into their own methods so it is easier to mock them in unit tests. Fix the DragonFly* classes that did not defined a 'platform' class attribute. This caused FreeBSD systems to potentially get the DragonFly* subclasses incorrectly. In practice it didnt matter much since the DragonFly* subclasses duplicated the FreeBSD ones. Actual DragonFly systems would end up with the generic Hardware() etc instead of the DragonFly* classes. Fix Hardware.__new__() on PY3, passing args to __new__ would cause "object() takes no parameters" errors. So check for PY3 and just call __new__ without the args See https://hg.python.org/cpython/file/44ed0cd3dc6d/Objects/typeobject.c#l2818 for some explaination.
* | | bump extras submodule refnitzmahone2016-08-171-7/+6
| | |
* | | bump submodule refsnitzmahone2016-08-172-24/+14
| | |
* | | vmware inventory script enhancements (#17106)jctanner2016-08-172-2/+43
| | | | | | | | | | | | | | | | | | * Allow the user to disable certificate verification * Allow the user to find VMs only in specific clusters
* | | Don't use an unset playbook basedir when searching for hostgroup varsJames Cammarata2016-08-173-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flag new_pb_basedir is not being utilized in Inventory._get_hostgroup_vars, leading to the situation where an inventory with no playbook basedir set will read host/group vars from the $CWD, regardless of the inventory and/or playbook relative location. This patch corrects that by not using the playbook basedir if it is unset (None). This patch also corrects a bug in which the VariableManager would accumulate host/group vars files, which could lead to incorrect vars files being used when playbooks are run from different directories containing their own group/host vars directories. Fixes #16953
* | | Handlers are triggered at the play level, not playbook. (#17121)sam-at-github2016-08-171-1/+1
| | |
* | | Catch a missing include_vars filenameJames Cammarata2016-08-171-0/+4
|/ / | | | | | | Related to ansible/ansible-modules-core#4445
* | raw now returns changed: true (#17112)Matt Davis2016-08-165-7/+16
|/ | | | | for consistency w/ shell/command/script "non-idempotent" modules. Updated tests, changelog.
* force deletion of .pyc files (#17109)Josh Smift2016-08-171-2/+2
|
* Rework the way params are assigned to TaskIncludes when they're dynamicJames Cammarata2016-08-162-23/+20
| | | | | | | | | Copying the TaskInclude task (which is the parent) before loading the blocks makes the code much more simple and clean, and fixes a bug introduced during the performance improvement changes (and specifically the change which moved things to a single-parent model). Fixes #17064
* Relicense netcfg.py to BSD (#17110)Nathaniel Case2016-08-161-13/+22
| | | As with #17025. The caveat regarding machilde's (now obsoleted) commit has been addressed, so netcfg.py is able to be easily relicensed.
* s/shutdown/shut down/ (#17107)Olaf Alders2016-08-161-2/+2
| | | shutdown is a noun. In the task name you really want a verb.
* added bits and bytes arg types (#17102)Brian Coca2016-08-161-1/+49
| | | | | | | | * added bits and bytes arg types * changed function alias method as per feedback * use enumerate vs managing i myself
* fixed tests to accoutn for new parameterBrian Coca2016-08-161-6/+6
|
* make parsed param private and explicit (#17104)Brian Coca2016-08-162-3/+4
| | | | | | * make parsed param private and explicit * fixed missed parsed
* Pass keyword arguments from modules to _boto3_connRyan S. Brown2016-08-161-1/+1
|
* Added substitution definitions and references for version number, etcScott Butler2016-08-152-3/+18
|
* Update submodule refsJames Tanner2016-08-152-12/+23
|
* Merge pull request #17051 from ferrants/patch-2scottb2016-08-151-0/+18
|\ | | | | Update playbooks_lookups.rst
| * Update playbooks_lookups.rstMatt Ferrante2016-08-111-0/+18
| |
* | Allow notifies to be sent to the top level includes when they were staticJames Cammarata2016-08-151-4/+34
| | | | | | | | | | | | | | | | | | Since we introduced static includes in 2.1, this broke the functionality where a notify could be sent to a named include statement, triggering all handlers contained within the include. This patch fixes that by adding a search through the parents of a handler for any TaskIncludes which match. Fixes #15915
* | Merge pull request #16606 from ryansb/rds-cluster-inventory-aioueRyan Brown2016-08-153-1/+90
|\ \ | | | | | | Support RDS clusters in AWS dynamic inventory script
| * | Paginate DB cluster responses in AWS RDS dynamic inventoryRyan S. Brown2016-08-152-2/+8
| | |
| * | Respect profiles & credentials for boto3 inventoryRyan S. Brown2016-07-061-3/+6
| | | | | | | | | | | | | | | Using boto3 directly wasn't properly using profiles set in the `ec2.ini` file, this change uses the `module_utils` boto3_conn instead.
| * | Fail softly when boto3 is not installedTom Paine2016-07-061-2/+11
| | | | | | | | | | | | | | | | | | Updated as per @ryansb comments. The EC2 inventory script will now fail with a useful message when boto3 is not installed and the user is trying to read RDS cluster information.
| * | Add RDS cluster info to EC2 dynamic inventoryTom Paine2016-07-062-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add db_clusters to the ec2 inventory. Show tags. Only show clusters matching tags in the `.ini`. Set `include_rds_clusters = True` option to enable RDS cluster inventory collection. Example inventory output: ``` { "db_clusters": { "ryansb-cluster-test": { "AllocatedStorage": 1, "AvailabilityZones": [ "us-west-2a", "us-west-2b", "us-west-2c" ], "BackupRetentionPeriod": 1, "DBClusterIdentifier": "ryansb-cluster-test", "DBClusterMembers": [ { "DBClusterParameterGroupStatus": "in-sync", "DBInstanceIdentifier": "ryansb-test", "IsClusterWriter": true, "PromotionTier": 1 }, { "DBClusterParameterGroupStatus": "in-sync", "DBInstanceIdentifier": "ryansb-test-us-west-2b", "IsClusterWriter": false, "PromotionTier": 1 } ], "DBClusterParameterGroup": "default.aurora5.6", "DBSubnetGroup": "default", "DatabaseName": "mydb", "DbClusterResourceId": "cluster-OB6H7JQURFKFD4BYNHG5HSRLBA", "Endpoint": "ryansb-cluster-test.cluster-c9ntgaejgqln.us-west-2.rds.amazonaws.com", "Engine": "aurora", "EngineVersion": "5.6.10a", "MasterUsername": "admin", "Port": 3306, "PreferredBackupWindow": "06:09-06:39", "PreferredMaintenanceWindow": "mon:11:22-mon:11:52", "ReadReplicaIdentifiers": [], "Status": "available", "StorageEncrypted": false, "VpcSecurityGroups": [ { "Status": "active", "VpcSecurityGroupId": "sg-47eaea20" } ] } }, "rds": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "rds_aurora": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "rds_parameter_group_default_aurora5_6": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "ryansb-test": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "ryansb-test-us-west-2b": [ "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "type_db_r3_large": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "us-west-2": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "us-west-2a": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "us-west-2b": [ "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ], "vpc_id_vpc_3ca34459": [ "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com", "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com" ] } ```
| * | Make it possible to use boto3_conn outside modulesRyan S. Brown2016-07-061-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `boto3_conn` function requires a module argument, and calls `module.fail_json` if the connection doesn't receive enough arguments. In non-module settings like inventory scripts, there is no module to be passed. The `boto3_inventory_conn` function takes the same arguments except for `module`, and both call _boto3_conn which doesn't require a module be passed.
* | | Fix async logic when parsing fails (#17091)David Shrewsbury2016-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to NOT consider the async task as failed if the result is not parsed, which was the intent of: https://github.com/ansible/ansible/pull/16458 However, the logic doesn't actually do that because we default the 'parsed' value to True. It should default to False so that we continue waiting, as intended.
* | | Update submodule refsJames Tanner2016-08-152-11/+14
| | |
* | | Make sure includes for handlers in roles look in the correct subdirJames Cammarata2016-08-151-6/+6
| | |
* | | slightly better presentation docsBrian Coca2016-08-151-7/+6
| | | | | | | | | | | | | | | - description items are now separated - choices/defaults start at their own line
* | | Note that to_nice_yaml(indent=X) was new in 2.2 (#17085)Tim Whittington2016-08-151-1/+1
| | | | | | | | | The ability to pass indent parameter to to_nice_yaml was introduced in 2.2, but this is not noted in the docs.
* | | document what glob style is used (#17080)Ted Timmons2016-08-151-2/+2
| | | | | | | | | Took some digging to find that `with_fileglob` calls a method named `fileglob()`, which uses Python's `glob` library.
* | | updated container detection to new lxc (#17063)Brian Coca2016-08-151-0/+9
| | | | | | | | | fixes #17030
* | | Merge pull request #17077 from agaffney/junos_doc_fixPeter Sprygada2016-08-151-1/+1
|\ \ \ | | | | | | | | Update junos docs fragment to note the default port for transport=netconf
| * | | Update junos docs fragment to note the default port for transport=netconfAndrew Gaffney2016-08-131-1/+1
| | | |
* | | | 2.1 has been releasedJohn R Barker2016-08-151-2/+2
| | | | | | | | | | | | | | | | | | | | Also link to new feature documentation - We need to do more of this Thanks to kustodian for suggesting this
* | | | Changing license on module_utils/splitter.py to BSDJames Cammarata2016-08-131-12/+23
|/ / /
* | | Don't immediately return failed for any_errors_fatal tasksJames Cammarata2016-08-125-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of immediately returning a failed code (indicating a break in the play execution), we internally 'or' that failure code with the result (now an integer flag instead of a boolean) so that we can properly handle the rescue/always portions of blocks and still remember that the break condition was hit. Fixes #16937
* | | Update ansible-core-ci endpoint. (#17071)Matt Clay2016-08-121-1/+1
| | |