Commit graph

13540 commits

Author SHA1 Message Date
Brian Coca
c92c4e7376 readded absolute_import 2015-02-19 07:39:45 -05:00
Brian Coca
8872bba21f rearranged math filters 2015-02-18 20:03:05 -05:00
Mihir Joshi
58a5f8dfaf Pulls machine id in ansible facts
- Fix #10221
2015-02-18 17:10:36 -05:00
Brian Coca
94aca71546 Merge pull request #9475 from jhawkesworth/simple_timer_plugin
Add simple plugin that times ansible-playbook runs.
2015-02-18 15:43:06 -05:00
Brian Coca
a94d78181d Merge pull request #10280 from bcoca/jsonify_test_nospace
changed jsonify test to ignore whitespace
2015-02-18 13:08:14 -05:00
Brian Coca
2642738646 changed jsonify test to ignore whitespace 2015-02-18 12:09:22 -05:00
Toshio Kuratomi
77731440f3 Optimize the plugin loader.
We have been caching the paths to the plugins but before we would only
cache the specific plugin that we were looking for.  This meant that we
might search through all of the plugin directories before finding the
specific module we were interested in.  The next plugin we needed we
might again search through all the plugin directories before finding the
plugin we wanted.

This new code will cache all the potential plugins in each directory
searched.  For a play that only uses one plugin we'll only search
through directories until we encounter the directory that has the proper
plugin.  For a large playbook with many plugins used we'll search
through each directory at most once each.

From v1: 68e86de26f
         730c2ba403
2015-02-18 08:12:01 -08:00
Toshio Kuratomi
55e26db290 Support nested modules with ANSIBLE_LIBRARY env var
From v1: 4c2d06d2fe
2015-02-18 08:07:57 -08:00
Dagobert Michelsen
81f55ff8ff Adjust leftovers from chroot 2015-02-18 16:52:44 +01:00
Toshio Kuratomi
cf82e57379 Merge pull request #10275 from jensdepuydt/optimize-plugin-loader-10165
Optimize plugin loader update
2015-02-18 07:25:12 -08:00
jensdepuydt
730c2ba403 minor change to not search in non-existing paths 2015-02-18 12:07:35 +01:00
jensdepuydt
adc0e8be97 Merge branch 'optimize-plugin-loader-10165' of github.com:ansible/ansible into optimize-plugin-loader-10165 2015-02-18 12:04:54 +01:00
Toshio Kuratomi
9bb8e60ed1 Merge pull request #10269 from danrue/unarchive_creates_behavior
Make behavior consistent when using 'creates' option with modules
2015-02-17 23:04:26 -08:00
Toshio Kuratomi
f1f176d86b Merge pull request #10266 from sivel/rax-cbs-test-size-fix
rax_cbs: Remove explicit msg match for invalid size in integration tests
2015-02-17 17:05:13 -08:00
Brian Coca
fdb36b4ea6 Merge pull request #10270 from bcoca/make_clean_pyc
added cleaning pyc files
2015-02-17 17:15:42 -05:00
Brian Coca
24766bdfa0 added cleaning pyc files 2015-02-17 16:41:34 -05:00
Toshio Kuratomi
68e86de26f Optimize the plugin loader.
We have been caching the paths to the plugins but before we would only
cache the specific plugin that we were looking for.  This meant that we
might search through all of the plugin directories before finding the
specific module we were interested in.  The next plugin we needed we
might again search through all the plugin directories before finding the
plugin we wanted.

This new code will cache all the potential plugins in each directory
searched.  For a play that only uses one plugin we'll only search
through directories until we encounter the directory that has the proper
plugin.  For a large playbook with many plugins used we'll search
through each directory at most once each.

This should alleviate #10165
2015-02-17 13:24:46 -08:00
Brian Coca
2b037400ad Merge pull request #10264 from bcoca/jsonify_test_fix
fixed jsonify test
2015-02-17 16:19:03 -05:00
Dan Rue
67eb9f301d Do not mark "skipped" when changed is false
When using the "creates" option with the script module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
2015-02-17 15:14:21 -06:00
Dan Rue
787388ac30 Do not mark "skipped" when changed is false
When using the "creates" option with the unarchive module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
2015-02-17 15:02:08 -06:00
Matt Martz
1d0ceb37a4 Remove explicit msg match for invalid size 2015-02-17 12:32:22 -06:00
Brian Coca
bc5d0a8cd4 fixed jsonify test 2015-02-17 08:58:52 -05:00
Brian Coca
50379d59ba Merge pull request #10263 from shamrin/fix-ansible-devel-links
fix links to ansible-devel in documentation pages
2015-02-17 08:36:22 -05:00
Alexey Shamrin
b950a38e30 fix links to ansible-devel in documentation pages 2015-02-17 14:30:31 +03:00
Toshio Kuratomi
5738ee1cb3 Update core modules to fix new integration tests 2015-02-16 22:08:53 -08:00
Brian Coca
1861be8f31 Merge pull request #9957 from hfinucane/apt-deb-tests
Add tests for using .deb files
2015-02-16 19:15:34 -05:00
Brian Coca
6f6c6fb32a Merge pull request #10259 from sivel/rax-boot-vol-v2
Add new rax_find_bootable_volume to assist with boot from volume
2015-02-16 18:04:16 -05:00
Toshio Kuratomi
8f9b761f3a Merge pull request #10128 from alxgu/fix_facts_for_sles
Fix wrong distribution facts on SLES/openSUSE
2015-02-16 13:24:12 -08:00
Brian Coca
5416a99442 Merge pull request #10258 from stratoukos/issue_10257
Fix umask calculation on file creation. Fixes #10257
2015-02-16 15:02:48 -05:00
Stratos Moros
6caeded74e Fix umask calculation on file creation. Fixes #10257 2015-02-16 21:16:26 +02:00
Brian Coca
6a29251292 Merge pull request #10248 from hfinucane/gh-9888
Add `groups` back into inline templates
2015-02-16 13:56:20 -05:00
Brian Coca
54cf8f1138 Merge pull request #10256 from kstrauser/kerberos-docs
Added winrm/kerberos configuration information
2015-02-16 12:48:21 -05:00
Kirk Strauser
1b67aa94e8 Added winrm/kerberos configuration information 2015-02-16 09:36:39 -08:00
Brian Coca
79c809edcc Merge pull request #10255 from bcoca/vaultpass_fix
valutpass fix in password reorg
2015-02-16 12:25:28 -05:00
Brian Coca
e41d48104f valutpass fix in password reorog 2015-02-16 12:24:43 -05:00
Brian Coca
b2d5919d6d Merge pull request #10250 from cove/cyaml
improve yaml parsing performance by ~25% by using PyYAML's CParser loader
2015-02-16 12:11:58 -05:00
Brian Coca
2da35a55a5 Merge pull request #10247 from lorin/redis-docfix
Document redis_kv Python package dependency
2015-02-16 11:33:39 -05:00
Brian Coca
a022aed43d Merge pull request #10229 from bcoca/patch_not_require_dest
patch action plugin does not require dest
2015-02-16 11:18:27 -05:00
Toshio Kuratomi
d0556885ff Update modules 2015-02-16 07:14:11 -08:00
Toshio Kuratomi
8f05e4eaaf Tests for: https://github.com/ansible/ansible-modules-core/issues/778 2015-02-16 07:12:18 -08:00
Toshio Kuratomi
c9fb97cc86 Be careful not to set the permissions of the destination of a symlink.
It's up to the module using the set_fs_attributes*/set_mode* methods to
specify the filename of the destination of the symlink if that's really
the file that should be modified.

Half of the fix for:
https://github.com/ansible/ansible-modules-core/issues/778
2015-02-16 07:07:58 -08:00
Alexander Gubin
d291dae582 Exit loop after detecting os-release 2015-02-16 13:18:11 +01:00
Cove Schneider
825654a2fa parse yaml using cparser if present 2015-02-16 00:26:35 -08:00
Henry Finucane
2e4191c013 Add groups back into inline templates 2015-02-15 20:16:41 -08:00
Lorin Hochstein
639f06e0e8 Document redis_kv Python package dependency
Mention in docs that the redis_kv lookup requires that the redis Python package
is installed.
2015-02-15 22:37:58 -05:00
Toshio Kuratomi
1e867b0b8e Fix the to_nice_yaml filter to always return unicode strings
Fixes #10243
2015-02-14 22:25:56 -08:00
Matt Martz
cfd05ceafc Add new rax_find_bootable_volume to assist with boot from volume 2015-02-13 15:25:42 -06:00
Brian Coca
f6a6df2169 removed unused method 2015-02-13 08:27:35 -05:00
Brian Coca
af573db47a documented new tag behaviour 2015-02-13 08:27:07 -05:00
Brian Coca
65c08d1364 added tests
refactored task selection into method
list-tasks now uses common method of task selection
always is now skippable if specified in --skip-tags
2015-02-13 08:27:07 -05:00