tedder
be7a568b33
New module s3_sync
: boto3-powered s3 synchronization
...
Syncs groups of files faster than the `s3` module and support content
type detection/overriding and globbing.
2016-12-16 09:26:30 -05:00
Fabio Alessandro Locati
f1b5dde4cb
Improve YAML examples - packaging/kibana_plugin.py ( #19409 )
2016-12-16 09:08:38 +00:00
Dag Wieers
2f90091f0a
Add an important example for SSHd
...
Sudoers is a great example to show how you can prevent shutting yourself
out. But SSHd is at least as important to avoid syntax errors causing a
lot of grieve. So I think it deserves a spot in this list :-)
2016-12-15 20:42:51 -05:00
Fabio Alessandro Locati
fb0779f657
Improve YAML examples - windows/win_regedit.py ( #19400 )
2016-12-15 15:05:18 -08:00
Fabio Alessandro Locati
b6f2565d60
Improve YAML examples - windows/win_template.py ( #19408 )
2016-12-15 15:04:49 -08:00
Fabio Alessandro Locati
beb6ed08cd
Improve YAML examples - windows/win_owner.py ( #19406 )
2016-12-15 15:00:28 -08:00
Fabio Alessandro Locati
12205598c3
Improve YAML examples - windows/win_acl_inheritance.py ( #19405 )
2016-12-15 15:00:03 -08:00
Fabio Alessandro Locati
5a87f26658
Improve YAML examples - windows/win_get_url.py ( #19404 )
2016-12-15 14:59:07 -08:00
Fabio Alessandro Locati
5f8f1fa782
Improve YAML examples - windows/win_iis_webapppool.py ( #19403 )
2016-12-15 14:57:26 -08:00
Fabio Alessandro Locati
83d0f621da
Improve YAML examples - windows/win_iis_webapplication.py ( #19402 )
2016-12-15 14:56:29 -08:00
Fabio Alessandro Locati
f57418c2c1
Improve YAML examples - windows/win_user.py ( #19401 )
2016-12-15 14:56:04 -08:00
Fabio Alessandro Locati
9b3d9e1780
Improve YAML examples - windows/win_file_version.py ( #19399 )
2016-12-15 14:54:12 -08:00
Fabio Alessandro Locati
0aa16b36b7
Make the example in proper yaml format - windows/win_iis_virtualdirectory.py ( #18829 )
...
* Make the example in proper yaml format
* Add r
2016-12-15 14:53:30 -08:00
Fabio Alessandro Locati
75bcec0ef5
Fix conflict and typos ( #18831 )
2016-12-15 14:50:22 -08:00
Nathaniel Case
2405c0bbef
Hopefully clear up some junos issues. ( #17616 )
2016-12-15 17:07:19 -05:00
Eric Beahan
dce8f3899e
Modify an initial value causing exception when vlan_range param is present ( #19019 )
2016-12-15 16:31:34 -05:00
Tim Rupp
e0e1d3b561
Adds description parameter to pools ( #19362 )
...
This patch adds the description parameter as a supported param of
the bigip_pool module.
Tests for this change are available here
https://github.com/F5Networks/f5-ansible/blob/master/roles/bigip_pool/tasks/main.yaml#L732
2016-12-15 16:28:30 -05:00
Nathaniel Case
7900319fc3
Assorted python3 fixes for network code. ( #18777 )
2016-12-15 16:25:03 -05:00
ikelos
c49eac5645
Fix the junos zeroize function ( #19142 )
...
Currently this function directs to the standard NetworkModule,
whose run_commands function takes no arguments (other than self).
This directs the call to the connection's cli method to run the command
directly on the device.
2016-12-15 16:23:04 -05:00
Ganesh Nalawade
ee5d5c3e84
Fix #4103 Support json format in junos_command module ( #19045 )
2016-12-15 16:01:23 -05:00
Peter Sprygada
ad99d52679
adds feature to allow connection to set action plugin ( #18762 )
...
Connection plugin can define default action plugin to use by providing
action_handler instance variable. This will override the default
action plugin normal
2016-12-15 15:47:39 -05:00
Peter Sprygada
0cef38cf02
adds feature to all modules to be run locally ( #18763 )
...
* adds new error AnsibleModuleExit to handle module returns
* adds new action plugin network for attaching connection to network modules
* adds new shared module local to receive connection
* splits out function to update task_args with common updates
This commit provides a mechansim for running local modules that require
a connection object for interative commands tyically implemented for
network devices. It provides a way to locally import modules (post fork)
and run them using exception handling to exit.
2016-12-15 15:47:29 -05:00
Fabio Alessandro Locati
066872cdc6
Improve examples ( #18830 )
2016-12-15 10:43:50 -08:00
Fabio Alessandro Locati
8dc3b60d0f
Remove unneeded quotes - windows/win_uri.py ( #18828 )
2016-12-15 10:38:02 -08:00
Fabio Alessandro Locati
cf5449c5d9
Remove unneeded quotes - windows/win_unzip.py ( #18827 )
2016-12-15 10:37:02 -08:00
Fabio Alessandro Locati
439f98005f
Highly rewrite and fix the examples - windows/win_iis_webbinding.py ( #18823 )
2016-12-15 10:34:20 -08:00
Artur Molchanov
a8d5358d7f
systemd module: Allow to stop activating service ( #19383 )
...
* systemd module: Allow to stop activating service
Allow to stop service with ActiveState=activating.
* systemd: Fix incompatibility with Python 2.4
2016-12-15 11:14:33 -05:00
John R Barker
7dc86648c4
Docs typo ( #19380 )
2016-12-15 13:32:28 +00:00
Ryan S. Brown
197658aff4
Handle when the AMI launch permissions are unset.
...
Use an empty list to avoid a TypeError because `'NoneType' is not iterable``
2016-12-14 19:45:14 -05:00
Michael Gugino
250f862573
Fix bug #5328 apache module loading ( #19355 )
...
* Fix bug #5328 apache module loading
Currently, the apache2_module module parses apache configs
for correctness when enabling or disabling apache2 modules.
This behavior introduced a conflict condition when transitioning
between mpm modules, such as mpm_worker and mpm_event.
This change accounts for the specific error condition raised
by ``apachectl -M``:
``AH00534: apache2: Configuration error: No MPM loaded.``
When loading or unloading a module with a name that contains 'mpm_',
apache2_module will ignore the error raised by apachectl if stderr
contains 'AH00534'.
Fixes #5328
* Add AH00534 warning
* Added changes from PR #5629
* Modified ignore_configcheck behavior
2016-12-14 13:18:19 -08:00
Toshio Kuratomi
0b440a9289
Code smell test for iteritems and itervalues ( #19292 )
...
* Code smell test for iteritems and itervalues
* Change the keydict object in authorized_keys so it doesn't throw a false postive
keydict is a bad data structure anyway. We don't use the iteritems and
itervalues methods so just disable them so that the code-smell tests do
not trigger on it.
* Change release templates so they work with py3
2016-12-14 12:16:16 -08:00
Brian Coca
f550b4541f
bad/missing fact plugin is a warning ( #19350 )
2016-12-14 14:25:19 -05:00
Steve Kuznetsov
d5324c11a0
Factored polling std{out,err} reads into a function
...
The process to poll for data in the stdout and/or stderr pipes during a
low-level command execution was repetitive. Factoring this out into a
function DRYs out the code.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2016-12-14 10:14:31 -08:00
Tim Rupp
362c86d323
Fixes map call usage
...
For the comparisions that need to be done, this map call needs
to convert to a list because the six import in ansible changes
the behavior of map to return an iterator instead of a list
2016-12-14 10:00:47 -08:00
Ondra Machacek
f84f97d035
cloud: ovirt: Add support to upload/copy/move disks ( #19337 )
2016-12-14 12:43:25 -05:00
Brian Coca
ed933421fe
correct template lookup path
...
now all paths get 'templates/'
2016-12-14 12:25:08 -05:00
Ondra Machacek
5400a06ac4
cloud: ovirt: Various fixes for oVirt modules ( #19141 )
...
* cloud: ovirt: fix various issues in ovirt modules
* cloud: ovirt: add support for nfs version
* cloud: ovirt: Fix facts documentation
* Add proper documentation fragmet
* Add proper argument_spec
* Fix return values
* cloud: ovirt: fix pep8
2016-12-14 11:42:15 -05:00
Robin Roth
afca957396
Fix UnboundLocalError remote_head in git ( #19057 )
...
* Fix UnboundLocalError remote_head in git
Fixes #5505
The use of remote_head was a leftover of #4562 .
remote_head is not necessary, since the repo is unchanged anyway and
after is set correctly.
Further changes:
* Set changed=True and msg once local_mods are detected and reset.
* Remove need_fetch that is always True (due to previous if) to improve
clarity
* Don't exit early for local_mods but run submodules update and
switch_version
* Add test for git with local modifications
2016-12-14 08:36:15 -08:00
Ondra Machacek
fa96438f4c
cloud: ovirt: Add support to list nested entities parameters ( #19300 )
2016-12-14 11:15:50 -05:00
Andrea Tartaglia
59227d8c31
Removed dict.iteritems() in several other files.
...
This is for py3 compatibility #18506
2016-12-14 08:01:45 -08:00
Dag Wieers
7c71c678fa
Fix regression in search path behaviour
...
This PR fixes a few issues:
- Missing role parent directory for relative paths
- Fix integration tests (add missing stage)
- Redesign integration tests
- Incorrect order with tasks-lookups
- Duplicate paths are listed
- Repetitive tasks/tasks or files/files were possible
==== using copy with test.txt
Before:
```
491 1481281038.29393: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
/home/dag/home-made/ansible.testing/test.txt
```
After:
```
32505 1481280963.22418: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
/home/dag/home-made/ansible.testing/test.txt
```
==== Using copy with files/test.txt
Before:
```
31523 1481280499.63052: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt
/home/dag/home-made/ansible.testing/files/files/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
```
After:
```
31110 1481280299.38778: search_path:
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
/home/dag/home-made/ansible.testing/files/test.txt
```
==== Using template with files/test.txt.j2
Before:
```
30074 1481280064.15191: search_path:
/home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/files/test.txt.j2
```
After:
```
29201 1481279823.52752: search_path:
/home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
/home/dag/home-made/ansible.testing/templates/files/test.txt.j2
/home/dag/home-made/ansible.testing/files/test.txt.j2
```
This fixes #19048
2016-12-14 10:33:14 -05:00
René Moser
18b7852940
cloudstack: utils: fail friendlier if no zones available ( #19332 )
2016-12-14 11:37:26 +01:00
Toshio Kuratomi
c6b42028c4
Fixes for uri under python3 and local (non-httptester) testing
2016-12-13 15:46:07 -08:00
Ken Evensen
6b62b9f48c
Adding pamd module for Ansible ( #19029 )
2016-12-13 15:34:44 -05:00
Adrian Likins
08a5d506bb
Fix errors on 'ansible-playbook --flush-cache' ( #18754 )
...
Add a unit test, and split out the flush cache logic to
it's own method.
Fixes #18708
2016-12-13 14:35:15 -05:00
Adrian Likins
6c4f554f5a
Provide slightly better msg on fact cache error ( #18759 )
...
If the configured fact_cache plugin (fact_caching config)
fails, raise a fatal error instead of failing mysteriously
later.
Fixes #18751
2016-12-13 14:34:58 -05:00
Carlos E. Garcia
0b8011436d
minor spelling changes
2016-12-13 13:51:13 -05:00
Michael Scherer
054a3fccf8
Cleanup import for sysctl module
2016-12-13 13:26:54 -05:00
Michael Scherer
f9460f3c80
Use type='path' instead of 'str' for deploy_helper
2016-12-13 13:25:45 -05:00
Michael Scherer
db8719cf8b
Add support for NetBSD
...
While I only checked on NetBSD 7.0, it seems to use the same
rc system as FreeBSD so it should be working for now.
2016-12-13 13:24:34 -05:00