Commit Graph

265 Commits (89d682464b65af6d2f77a148fc6abb2c38b0e994)

Author SHA1 Message Date
James Cammarata ce3ef7f4c1 Making the switch to v2 11 years ago
Brian Coca d5a7cd0efc bad hack to maybe fix some corner cases with pbrun custom prompts 11 years ago
Toshio Kuratomi c024057e97 Fix assert to work with unicode values 11 years ago
Brian Coca a47c132695 slight changes to allow for checksum and other commands to work correctly with quoting 11 years ago
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
11 years ago
Toshio Kuratomi 8a5067d628 Adapt sanitize_output to log messages instead of assuming properly formatted key-value pairs
Fixes #10332
11 years ago
Brian Coca e41d48104f valutpass fix in password reorog 11 years ago
Cove Schneider 825654a2fa parse yaml using cparser if present 11 years ago
Brian Coca 932fd2eda2 fixed vault pass also 11 years ago
Brian Coca 0087816b13 fixed varname su_pass 11 years ago
Brian Coca 5f2d5abeea ensure proper strings/unicodestrings for passwords
updated to correct to_bytes function
removed old to_bytes/to_unicode and repointed clients to new location
fixed unicode test
11 years ago
Matt Martz 68358e31fb Allow ansible (ad-hoc) to support --extra-vars also 11 years ago
Brian Coca c966eb5d80 Merge pull request #10015 from bcoca/nicer_json_errors
handle json load errors as ansible error instead of ugly stacktrace
11 years ago
Toshio Kuratomi 4902c06304 Obfuscate passwords in more places where it is displayed 11 years ago
Toshio Kuratomi 1011959d88 Move the hashing util functions to their own file to mirror v2 11 years ago
Brian Coca 9d190c8d8d Revert "Support variable values with dashes" 11 years ago
Brian Coca 13bbf9bfbb Merge pull request #9834 from nathancahill/fix-variables-with-dashes
Support variable values with dashes
11 years ago
Brian Coca c09d27bca1 handle json load errors as ansible error instead of ugly stacktrace 11 years ago
Toshio Kuratomi 5ed7a55990 Restore json import for redis as well. Switch preference to simplejson for speed 11 years ago
Nathan Cahill 6d785ca081 support variables with dashes - fixes #9786 11 years ago
Brian Coca 97408fe5b2 Revert "Make listify respect the global setting for undefined variables."
This 'mostly' reverts commit 2769098fe7.

Conflicts:
	lib/ansible/utils/__init__.py
	test/units/TestUtils.py
11 years ago
Brian Coca 9a5cbf747a fine tuned lookup/templating errors 11 years ago
Brian Coca db145a368d now only flattened ignores failonundefined cause of it's special need 11 years ago
Brian Coca e3feb104c3 fixes issues with listyfing failing too often 11 years ago
Brian Coca 7d2937b1cc minor fixes to template function
- make sure it calls itself correctly, now passes same params as it recieves
- vars is reserved, changed for templatevars to avoid confustion
- forcing mustaches again since the removal broke 'listification' as per #9622
- fixes incorrectly successful tests using undefined var, now it is defined
- now returns empty list if items is None to avoid errors
11 years ago
Toshio Kuratomi c4c3cc315d Transform both values of a task name into a byte str prior to comparing
Fixes #9571
11 years ago
Toshio Kuratomi 9a7eb57718 Some changes to FIPS compat since SLES implements it differently 11 years ago
Toshio Kuratomi 6a85f3ebc7 Add comments/docstrings not to use md5 unless forced to by forces outside our control. 11 years ago
Toshio Kuratomi f1267c0b05 Move from md5 to sha1 to work on fips-140 enabled systems 11 years ago
Toshio Kuratomi 48a308a87c Allow both old-style and new-style role dependencies to be valid.
Fixes #9173
11 years ago
Toshio Kuratomi c75aeca435 Merge removal of complex_args_hack 11 years ago
Toshio Kuratomi a10d10f647 Workaround more python-2.6 shlex not being able to handle unicode strings 11 years ago
Rob Howard 2769098fe7 Make listify respect the global setting for undefined variables.
(Fixes #9008.)

With credit to jimi-c for the initial pass in this commit:
b18bd6b98e
11 years ago
Toshio Kuratomi cef2a8795f Make dynamic inventory return byte str, not unicode 11 years ago
James Cammarata d99e4f15c8 Merge pull request #9220 from jlaska/devel
Resolve issue where repo_path contains multiple '.git' strings
11 years ago
Toshio Kuratomi 0af750e3e5 Merge pull request #9182 from bbasleeper/feature_sudo_exe_from_inventory
Add a new inventory parameter (ansible_sudo_exe) to specify sudo command...
11 years ago
James Laska 684352926b Resolve issue where repo_path contains multiple '.git' strings
If the repo_path contained multiple '.git' strings, the _git_repo_info()
call resulted in a traceback.  This change removes the trailing '.git'
and resolves the traceback.
11 years ago
Michael DeHaan 1d17881960 Add module search path to --version output. 11 years ago
Michael DeHaan 21c3784a43 If submodules are not found, don't error out. 11 years ago
Will Thames 952a36920c Cater for uninitialized submodules
Output a useful message if `git submodule update --init --recursive` not
yet performed

```
$ ansible --version
ansible 1.8 (submodule_ansible_version 59ae596484) last updated 2014/09/28 13:20:51 (GMT +1000)
  lib/ansible/modules/core: (detached HEAD 617a52b20d) last updated 2014/09/28 13:15:25 (GMT +1000)
  lib/ansible/modules/extras:  not found - use git submodule update --init lib/ansible/modules/extras
```
11 years ago
Will Thames d1476aeb01 Updated version info to include submodule information
`ansible --version` etc. now include information about submodules

```
ansible 1.8 (submodule_ansible_version ffee9a8fe0) last updated 2014/09/28 11:03:14 (GMT +1000)
  lib/ansible/modules/core: (ec2_snapshot_remove 3a77c31ecb) last updated 2014/09/27 18:23:31 (GMT +1000)
  lib/ansible/modules/extras: (detached HEAD 110250d344) last updated 2014/09/27 14:33:42 (GMT +1000)
```

Also improved handling of detached HEAD when printing out version
information.
11 years ago
Bruno BAILLUET a25da4af05 Add a new inventory parameter (ansible_sudo_exe) to specify sudo command path. 11 years ago
James Cammarata 889dfc4374 Merge pull request #8959 from willthames/galaxy_ssh_clone
Allow fairly common ssh repo clone path to work
11 years ago
James Cammarata 9d45f3a65e Before decrypting check if vault password is set or error early
Fixes #8926
11 years ago
Michael DeHaan d6e6d2a6ca Remove regex related to baby-JSON parsing only. 11 years ago
Michael DeHaan 26cdddaebf Tracebacks are now catchable with ignore_errors and have streamlined output. Also removes 'baby-JSON' for bash modules. 11 years ago
Will Thames d6a725659e Allow github style ssh repo names 11 years ago
Will Thames 537472f42c Make ansible-galaxy work as expected
This change fixes hg galaxy roles
Roles also get installed if roles path is missing, which
the tests currently require (fixes #8950)
11 years ago
Niko Felger fa74a5c806 Fixing issue with symlinked vaults 11 years ago
James Cammarata 8cc3543918 Re-allow templating of complex_args, but count params to prevent injection
Fixes #8810
11 years ago