Commit graph

21533 commits

Author SHA1 Message Date
James Cammarata
4f06a86161 Alternately track listening handlers by uuid if no name is set
Fixes #17846
2016-11-13 15:24:44 -06:00
Adrien Vergé
527d8307c1 Lint YAML files under test/
This commit extends YAML linting by enabling standard rules from the
`yamllint` tool [1]. Since syntax errors and key duplicates are already
checked since 4d48711, this change only adds detection for cosmetic
problems. It also narrows checks to the test/ dir only.

The main goal is to prevent future problems to enter the code base
without being noticed. While it would be a huge effort to be PEP8
compliant, it is relatively easy to have correct YAML style *now* and
prevent future errors by enabling linting.

Note: for those (like me) caring about code attribution: use `git blame
-w` to ignore whitespace-only changes.

Note: I disabled some linting checks (such as indentation), they can be
enforced in the future if needed. Similarly, current checks can also be
disabled. See the `.yamllint` file.

[1]: https://yamllint.readthedocs.io/
2016-11-11 14:50:57 -08:00
Adrien Vergé
0e834fc9e4 Fix cosmetic problems in YAML source
This change corrects problems reported by the `yamllint` linter.

Since key duplication problems were removed in 4d48711, this commit
mainly fixes trailing spaces and extra empty lines at beginning/end of
files.
2016-11-11 14:50:57 -08:00
Trond Hindenes
8874c1dc39 Improved Get-PendingRebootStatus 2016-11-11 14:49:01 -08:00
John R Barker
de13f91a50 Update docker-setup-rht.yml 2016-11-11 19:10:57 +00:00
Matt Davis
39dcafe23f bump submodule refs 2016-11-11 10:46:06 -08:00
James Cammarata
bd4f7fca27 Fixing incorrect use of version_compare in docker integration test 2016-11-11 12:18:11 -06:00
Tom Melendez
b9e07c8dd7 [GCE] updates to gce integration test (#18097)
* Added test for sequenced-name instance generation (num_instances)
* Added param-check tags to tests that only do argument checking
Should be merged AFTER ansible/ansible-modules-core#4276
2016-11-11 13:17:47 -05:00
Brian Coca
3fd03b764b removed core import template 2016-11-11 12:48:45 -05:00
John R Barker
3d428da445 ROADMAP updates (#18435)
* ROADMAP updates

* Formatting - Especially the first section
* Reno Release notes is out of scope (I believe?)
* Change "Speed up make webdocs to stretched Goal - As I don't believe we currently know *how* we can achieve this
* Removed the word `Hardening` as it implies security, which isn't something we are actively working on in 2.3
2016-11-11 16:45:16 +01:00
James Cammarata
5b87951d6c Don't copy the parent block of TaskIncludes when loading statically
When loading an include statically, we previously were simply doing a
copy() of the TaskInclude object, which recurses up the parents creating
a new lineage of objects. This caused problems when used inside load_list_of_blocks
as the new parent Block of the new TaskInclude was not actually in the list
of blocks being operated on. In most circumstances, this did not cause a
problem as the new parent block was a proper copy, however when used in
combination with PlaybookInclude (which copies conditionals to the list of
blocks loaded) this untracked parent was not being properly updated, leading
to tasks being run improperly.

Fixes #18206
2016-11-11 08:09:43 -06:00
Samuel Boucher
b17149f3bf Update ansible.1.asciidoc.in (#18464)
* Update ansible.1.asciidoc.in

fix typo to match ansible --help
--su-user and not --se-user

* Update ansible.1.asciidoc.in
2016-11-11 08:58:19 -05:00
René Moser
80af461178 cloudstack: add additional CLOUDSTACK_VPC env var (#18467) 2016-11-11 14:03:43 +01:00
Matt Clay
3f785ee173 Remove unnecessary file. 2016-11-11 00:10:06 -08:00
Matt Clay
c955688772 Move ansible ad-hoc tests to integration targets. 2016-11-10 23:58:32 -08:00
Brian Coca
c880c1a78d added sysv functions 2016-11-10 23:58:41 -05:00
Matt Clay
ac8842eee8 Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
jctanner
05f02371ce Add a check for type() instead of isinstance() (#18439) 2016-11-10 14:06:14 -08:00
Jason McKerr
e9b193d6ae Update ROADMAP_2_3.rst 2016-11-10 15:00:10 -05:00
Matt Clay
2ab2e709b0 Update submodule refs. 2016-11-10 11:55:37 -08:00
Abhijit Menon-Sen
be8dd049ee Merge pull request #18455 from agaffney/bare_variable_docs
Fix bare variable references in docs
2016-11-10 22:45:08 +05:30
Andrew Gaffney
a625bfc8db Fix bare variable references in docs 2016-11-10 10:00:38 -07:00
John R Barker
947e0f264e Network Tests - Extend examples (#18451) 2016-11-10 13:41:19 +01:00
scottb
abc9133cb6 Merge pull request #12712 from ananyacleetus/patch-1
Update DOCUMENTATION.yml
2016-11-10 01:08:51 -08:00
scottb
d3c44fa98f Merge pull request #17988 from samdoran/docs-fix
Change ie to i.e. and add a bit more clarity
2016-11-10 00:54:37 -08:00
scottb
73a5fa2ddd Update playbooks_roles.rst
Minor edit.
2016-11-10 00:31:50 -08:00
scottb
8681ae4224 Merge pull request #15673 from wenottingham/patch-11
Update faq.rst
2016-11-10 00:21:43 -08:00
scottb
1d8bb62c9f Merge pull request #18134 from gmella/devel
fix hosts.yml filename for inventory
2016-11-10 00:18:15 -08:00
scottb
ba757dc480 Merge pull request #18424 from dmsimard/patch-1
Update the link to the os-client-config repository
2016-11-10 00:15:45 -08:00
Abhijit Menon-Sen
3072d75bcc Fix doc typos and one entirely incorrect assertion 2016-11-10 12:34:05 +05:30
Rene Moser
1327230ebf changelog: add FreeIPA modules 2016-11-09 22:53:02 +01:00
Matt Clay
8552ad6bf1 Fix docker connection unit tests.
- Use assertRaisesRegexp to make sure correct exceptions are raised.
- Set docker_command to avoid docker dependency (skips find_executable).
- Use a fake path for docker_command to make sure mock.patch is working.
2016-11-09 10:23:35 -08:00
Matt Clay
65f019fe82 Fix handling of ReaderError in validate-modules. 2016-11-09 00:37:21 -08:00
scottb
d1b41d8f9c Merge pull request #18422 from evgeni/fix-dynamic_inventory_intro-rst
fix formating on the intro_dynamic_inventory page
2016-11-08 15:56:43 -08:00
scottb
94239141bc Merge pull request #18244 from Yannig/devel_doc_json_query
json_query documentation.
2016-11-08 14:09:30 -08:00
scottb
8e27dc49a7 Update playbooks_filters.rst
Edited for grammar, spelling, mechanical.
2016-11-08 13:45:56 -08:00
scottb
3f2dbea1df Merge pull request #18249 from bwlz/install_doc_updates
Installation document updates
2016-11-08 13:36:46 -08:00
scottb
c58d8dab05 Update intro_installation.rst
Minor edits for readability.
2016-11-08 13:36:28 -08:00
scottb
3afc15a013 Merge pull request #18306 from zerOnepal/HEAD
improving readme on dynamic inventory for ec2.ini options
2016-11-08 13:32:55 -08:00
Matt Davis
96158cc999 add connection var delegation/lookup fix to roadmap 2016-11-08 10:12:13 -08:00
John R Barker
e52ce12ba4 Update ROADMAP_2_3.rst (#18426) 2016-11-08 17:49:18 +01:00
Adrian Likins
51e3ef89a9 Add error info if tabs are found in the yaml (#18343)
If a yaml file fails to load because of tabs being used
for formatting, detect that and show a error message
with more details.
2016-11-08 11:43:08 -05:00
Jason McKerr
e8e09f3df6 Ansible Core 2.3 Roadmap (#18421)
* initial checkin. needs annotation at the top, dates, and review

* Update ROADMAP_2_3.rst

cleanup and add notes at the top

* Update ROADMAP_2_3.rst

fix indentation
2016-11-08 11:18:28 -05:00
Ievgen Khmelenko
619f2fd210 ansible-logstash-callback (#18282)
* ansible-logstash-callback

* GPL v3 license preamble, ImportError

* Update logstash.py
2016-11-08 11:17:05 -05:00
James Tanner
20fb74b1b1 ini lookup: add 'default' to the list of parsed keys
Fixes #18369
2016-11-08 11:07:33 -05:00
Brian Coca
5dd195b52f restore play_hosts variables to not show removed
Also adds ansible_play_hosts_all with original list of hosts the play targeted
2016-11-08 10:51:27 -05:00
David Moreau Simard
c53db300b8 Update the link to the os-client-config repository
This is a trivial change -- os-client-config has moved from /stackforge/ to /openstack/ a long time ago.
2016-11-08 10:41:38 -05:00
Evgeni Golov
de646243a2 fix formating on the intro_dynamic_inventory page
* don't mark `./ec2.py --refresh-cache` as a comment
* format `./openstack.py --refresh --list` as code
* format `--refresh` as code
2016-11-08 16:31:43 +01:00
Brian Coca
0b77942bbc clarified ansible_ssh_host to not imply removal 2016-11-08 09:07:19 -05:00
scottb
75459fb688 Update intro_dynamic_inventory.rst
Minor edits for readability.
2016-11-07 20:23:59 -08:00