Chris Blumentritt
7813ffd719
Adding uptime_seconds fact for linux and darwin platforms
...
Adds ansible_uptime_seconds facts for linux and darwin platforms. BSD
platforms may also work.
2015-03-13 15:52:16 -05:00
James Cammarata
22304afd1d
More fixing of become stuff in v2
2015-03-13 15:31:20 -05:00
Toshio Kuratomi
70f56c135c
Port #10357 to v2
2015-03-13 11:44:58 -07:00
Toshio Kuratomi
8c3b5690e5
Merge pull request #10357 from htgoebel/devel
...
Fix detect of docker as virtualization_type.
2015-03-13 11:40:15 -07:00
Brian Coca
c2a87a20ee
Merge pull request #10459 from mrcrilly/patch-1
...
Correct version number.
2015-03-13 14:37:11 -04:00
Michael Crilly
8e346186b2
Correct version number.
...
1.8.4 is the latest stable now, I believe.
2015-03-13 18:07:18 +00:00
James Cammarata
070c7c319f
Started implementing become in v2
2015-03-13 11:58:00 -05:00
James Laska
f451974efe
Use correct URL for travis status badge
...
This uses the `devel` branch when displaying the travis-ci status badge.
2015-03-13 10:56:30 -04:00
Brian Coca
d65e1ee2cb
Merge pull request #10455 from jlaska/tox_and_travis
...
Add tox and travis-ci support
2015-03-13 10:15:59 -04:00
James Laska
60acdee0dc
Enable assert_raises_regexp on py26
2015-03-13 08:21:14 -04:00
James Laska
3d67e9e0c0
Add tox and travis-ci support
...
Add tox integration to run unittests in supported python releases.
Travis-CI is used for test execution.
Additionally, the unittest TestQuotePgIdentifier was updated to support
using assert_raises_regexp on python-2.6.
Sample travis-ci output available at
https://travis-ci.org/ansible/ansible/builds/54189977
2015-03-13 08:20:24 -04:00
Toshio Kuratomi
c8de03d516
Merge pull request #10448 from jhermann/add-test-requirements
...
added test requirements for pip
2015-03-12 13:57:10 -07:00
Toshio Kuratomi
f05cda6ffc
Comma is also dependent on position within the hash
2015-03-12 13:20:51 -07:00
jhermann
90886594fa
added test requirements for pip
2015-03-12 21:04:38 +01:00
Brian Coca
c94c3d134e
Merge pull request #10447 from bcoca/sync_test_fix
...
fixed and reintroduced syncronize test
2015-03-12 14:47:08 -04:00
Brian Coca
74bf59082d
fixed and reintroduced syncronize test, fakerunner object needed become_method to be it's default 'sudo'
2015-03-12 14:48:06 -04:00
Toshio Kuratomi
644e50fe34
Hash randomization makes one of the heuristic_log_sanitize checks not work.
...
Nothing we can do, when it sanitizes ssh_urls it's simply overzealous.
2015-03-12 11:39:47 -07:00
Brian Coca
b5d23543f0
fixed and reintroduced syncronize test, fakerunner object needed become_method to be it's default 'sudo'
2015-03-12 14:22:24 -04:00
James Cammarata
b1d78a61fc
Initial support for vault in v2
...
TODO:
* password prompting needs to be implemented, but is being worked on
as part of the become privilege escalation changes
2015-03-12 12:14:57 -05:00
James Cammarata
eb850bf81a
Fix issue with unarchive disabling pipelining mode
...
Was using persist_files=True when specifying the create paramater,
which breaks pipelining. Switched to use delete_remote_tmp=False instead,
which is the proper way to preserve the remove tmp dir when running
other modules from the action plugin.
2015-03-12 10:22:06 -05:00
Brian Coca
a675b10b3b
Merge pull request #10329 from bcoca/var_merge_combined
...
changed from hash_merge to combine vars which resets default to
2015-03-12 10:58:12 -04:00
Brian Coca
ac1493faae
fixed missed conversion of su to become
2015-03-12 10:01:31 -04:00
Toshio Kuratomi
ee831e1071
Fix v2 for #10426
...
Note: In v1 we fix this by transforming into unicode just before we use
it (when we send it to jinja2) because jinja2 cannot handle non-ascii
characters in str.
In v2 our model is that all text values need to be stored as unicode
type internally. So we transform this to unicode when we read it from
the inventory file and save it into the internal dict instead.
2015-03-11 21:28:45 -07:00
Toshio Kuratomi
4710a07fb0
Test case for #10426
2015-03-11 20:58:21 -07:00
Toshio Kuratomi
f5264414db
Merge pull request #10426 from shirou/fix-hostvar-unicode-error
...
use to_unicode() in _jinja2_vars if type is str.
2015-03-11 20:39:50 -07:00
Shirou WAKAYAMA
d92e8edf6e
set 'nonstring' arg to passthru.
2015-03-12 12:36:50 +09:00
Toshio Kuratomi
d633ad1022
Merge pull request #10438 from jhermann/patch-1
...
Generic package_dir mapping in setup.py (closes #10437 )
2015-03-11 19:15:59 -07:00
Toshio Kuratomi
e413dba3a6
Update the module pointers
2015-03-11 19:10:38 -07:00
Jürgen Hermann
597c0f48f5
Generic package_dir mapping in setup.py ( closes #10437 )
2015-03-12 02:28:33 +01:00
Brian Coca
f229b770b2
fixed missed su to become conversion
2015-03-11 19:23:02 -04:00
Brian Coca
eb69eb4108
Merge pull request #10435 from bcoca/ssh_password_become_fix
...
fixes password error detection for ssh connection plugin
2015-03-11 19:04:56 -04:00
Brian Coca
f803c1e1f8
fix tag test that broke with new tag info displayed in list tasks
2015-03-11 16:28:37 -04:00
Brian Coca
587ab17f10
fixes password error detection for ssh connection plugin
...
removes sycnronize test that does not work with current sudo setup
Fixes #10434
2015-03-11 16:11:27 -04:00
James Cammarata
5f0ed76f1c
Merge branch 'bcoca-become_fixes' into devel
2015-03-11 11:54:12 -05:00
Brian Coca
747c7aaffa
removed uneeded reference to su_user
2015-03-11 12:33:05 -04:00
Brian Coca
de5eae2007
fixed traceback when x_user implicitly sets the become method
...
Fixes #10430
Also removed redundant resolution of sudo/su for backwards compatibility which
confused the conflict detection code.
2015-03-11 12:18:53 -04:00
Brian Coca
1fd0a78b0e
fix issue with ask pass signature
2015-03-11 10:28:27 -04:00
Brian Coca
57aa40420f
Merge pull request #10427 from jeffwidman/patch-1
...
Typo: lead --> led
2015-03-11 09:47:00 -04:00
Brian Coca
a5f533e25d
fixed bad paren in connection plugin
2015-03-11 09:30:07 -04:00
Jeff Widman
f6d8e457ab
Typo: lead --> led
2015-03-11 01:20:17 -07:00
Shirou WAKAYAMA
2d73892acf
use to_unicode() in _jinja2_vars if type is str.
2015-03-11 14:50:27 +09:00
Brian Coca
ab45e5ee59
Merge pull request #10411 from bcoca/add_pbrun
...
preliminary privlege escalation unification + pbrun
2015-03-10 18:42:15 -04:00
Brian Coca
5f6db0e164
preliminary privlege escalation unification + pbrun
...
- become constants inherit existing sudo/su ones
- become command line options, marked sudo/su as deprecated and moved sudo/su passwords to runas group
- changed method signatures as privlege escalation is collapsed to become
- added tests for su and become, diabled su for lack of support in local.py
- updated playbook,play and task objects to become
- added become to runner
- added whoami test for become/sudo/su
- added home override dir for plugins
- removed useless method from ask pass
- forced become pass to always be string also uses to_bytes
- fixed fakerunner for tests
- corrected reference in synchronize action plugin
- added pfexec (needs testing)
- removed unused sudo/su in runner init
- removed deprecated info
- updated pe tests to allow to run under sudo and not need root
- normalized become options into a funciton to avoid duplication and inconsistencies
- pushed suppored list to connection classs property
- updated all connection plugins to latest 'become' pe
- includes fixes from feedback (including typos)
- added draft docs
- stub of become_exe, leaving for future v2 fixes
2015-03-10 18:42:36 -04:00
Brian Coca
17c710e713
Merge pull request #10420 from bmanojlovic/devel
...
add missing AIX network facts discovery
2015-03-10 15:59:34 -04:00
Boris Manojlovic
a59784a581
don't use full path to command instead use module.get_bin_path
2015-03-10 19:44:39 +01:00
Brian Coca
39a3d6f5ed
added version to ternary example
2015-03-10 12:42:55 -04:00
Brian Coca
cbfab13b89
Merge pull request #10421 from sivel/empty-error-msg
...
rax module ultis: Prevent an empty error message
2015-03-10 12:38:13 -04:00
Matt Martz
4990814901
Prevent an empty error message
2015-03-10 11:30:28 -05:00
Brian Coca
0ff77b3650
Merge pull request #10404 from maxalbert/doc_enhancement
...
Add note to section 'Loops' that the 'when:' statement is processed per-item
2015-03-10 10:51:47 -04:00
Brian Coca
a4c7aca419
Merge pull request #10395 from AndrewLorente/patch-2
...
Mention `view` in the ansible vault docs
2015-03-10 10:43:05 -04:00